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.

22 lines
458B

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