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.

28 lines
758B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Harmony;
  7. using RobocraftX;
  8. using Svelto.ECS;
  9. using GamecraftModdingAPI.Utility;
  10. namespace GamecraftModdingAPI.Events
  11. {
  12. /// <summary>
  13. /// Patch of RobocraftX.FullGameCompositionRoot.ReloadGame()
  14. /// </summary>
  15. [HarmonyPatch(typeof(FullGameCompositionRoot), "ReloadGame")]
  16. class GameReloadedPatch
  17. {
  18. public static void Postfix()
  19. {
  20. // Event emitters and handlers should already be registered by GameActivatedPatch
  21. Logging.Log("Dispatching Game Reloaded event");
  22. Manager.GetEventEmitter("GamecraftModdingAPIGameReloadedEventEmitter").Emit();
  23. }
  24. }
  25. }