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