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.
|
- using System;
- using System.Reflection;
-
- using RobocraftX.CR.MainGame;
- using RobocraftX.StateSync;
-
- using HarmonyLib;
-
- namespace GamecraftModdingAPI.App
- {
- [HarmonyPatch]
- class StateSyncRegPatch
- {
- public static void Postfix(StateSyncRegistrationHelper stateSyncReg)
- {
- // register sim/build events engines
- Game.InitDeterministic(stateSyncReg);
- }
-
- [HarmonyTargetMethod]
- public static MethodBase Target()
- {
- return AccessTools.Method(typeof(MainGameCompositionRoot), "DeterministicCompose").MakeGenericMethod(typeof(object));
- }
- }
- }
|