2020-04-28 21:56:34 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
using RobocraftX.SaveAndLoad;
|
|
|
|
|
using Svelto.ECS;
|
|
|
|
|
|
2020-05-03 15:31:09 -04:00
|
|
|
|
using HarmonyLib;
|
2020-04-28 21:56:34 -04:00
|
|
|
|
|
|
|
|
|
namespace GamecraftModdingAPI.Persistence
|
|
|
|
|
{
|
|
|
|
|
[HarmonyPatch(typeof(SaveAndLoadCompositionRoot), "Compose")]
|
|
|
|
|
class SaveAndLoadCompositionRootPatch
|
|
|
|
|
{
|
2020-05-21 19:40:46 -04:00
|
|
|
|
public static EnginesRoot currentEnginesRoot;
|
|
|
|
|
|
2020-04-28 21:56:34 -04:00
|
|
|
|
public static void Prefix(EnginesRoot enginesRoot)
|
|
|
|
|
{
|
2020-05-21 19:40:46 -04:00
|
|
|
|
currentEnginesRoot = enginesRoot;
|
|
|
|
|
//SerializerManager.RegisterSerializers(enginesRoot);
|
2020-04-28 21:56:34 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|