A stable modding interface between Techblox and mods https://mod.exmods.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GameSwitchedToPatch.cs 709B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Reflection;
  7. using HarmonyLib;
  8. using RobocraftX;
  9. using RobocraftX.CR.MainGame;
  10. using Svelto.ECS;
  11. using GamecraftModdingAPI.Utility;
  12. namespace GamecraftModdingAPI.Events
  13. {
  14. /// <summary>
  15. /// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
  16. /// (scheduled for execution during RobocraftX.FullGameCompositionRoot.SwitchToGame())
  17. /// </summary>
  18. [HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToGame")]
  19. class GameSwitchedToPatch
  20. {
  21. public static void Prefix()
  22. {
  23. GameActivatedComposePatch.IsGameSwitching = true;
  24. }
  25. }
  26. }