21 lines
453 B
C#
21 lines
453 B
C#
using System;
|
|
|
|
using RobocraftX.SaveAndLoad;
|
|
using Svelto.ECS;
|
|
|
|
using HarmonyLib;
|
|
|
|
namespace GamecraftModdingAPI.Persistence
|
|
{
|
|
[HarmonyPatch(typeof(SaveAndLoadCompositionRoot), "Compose")]
|
|
class SaveAndLoadCompositionRootPatch
|
|
{
|
|
public static EnginesRoot currentEnginesRoot;
|
|
|
|
public static void Prefix(EnginesRoot enginesRoot)
|
|
{
|
|
currentEnginesRoot = enginesRoot;
|
|
//SerializerManager.RegisterSerializers(enginesRoot);
|
|
}
|
|
}
|
|
}
|