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 RobocraftX.StateSync;
- using Svelto.ECS;
-
- using HarmonyLib;
-
- namespace GamecraftModdingAPI.Utility
- {
- [HarmonyPatch(typeof(DeterministicStepCompositionRoot), "ResetWorld")]
- public static class DeterministicStepCompositionRootPatch
- {
- private static SimpleEntitiesSubmissionScheduler engineRootScheduler;
- public static void Postfix(SimpleEntitiesSubmissionScheduler scheduler)
- {
- engineRootScheduler = scheduler;
- }
-
- internal static void SubmitEntitiesNow()
- {
- if (engineRootScheduler != null)
- engineRootScheduler.SubmitEntities();
- }
- }
- }
|