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.

31 lines
724B

  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. [Obsolete]
  19. [HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToGame")]
  20. class GameSwitchedToPatch
  21. {
  22. public static void Prefix()
  23. {
  24. GameActivatedComposePatch.IsGameSwitching = true;
  25. }
  26. }
  27. }