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.

23 lines
533B

  1. using System;
  2. using RobocraftX.SaveAndLoad;
  3. using Svelto.ECS;
  4. using HarmonyLib;
  5. using RobocraftX.StateSync;
  6. namespace TechbloxModdingAPI.Persistence
  7. {
  8. [HarmonyPatch(typeof(SaveAndLoadCompositionRoot), "ClientComposeTimeStopped")]
  9. class SaveAndLoadCompositionRootPatch
  10. {
  11. public static EnginesRoot currentEnginesRoot;
  12. public static void Prefix(StateSyncRegistrationHelper stateSyncHelper)
  13. {
  14. currentEnginesRoot = stateSyncHelper.enginesRoot;
  15. //SerializerManager.RegisterSerializers(enginesRoot);
  16. }
  17. }
  18. }