|
|
@@ -6,6 +6,7 @@ using Unity.Entities; |
|
|
|
using RobocraftX; |
|
|
|
using RobocraftX.GUI.CommandLine; |
|
|
|
using RobocraftX.Multiplayer; |
|
|
|
using RobocraftX.StateSync; |
|
|
|
using Svelto.ECS; |
|
|
|
using Svelto.Context; |
|
|
|
|
|
|
@@ -43,10 +44,12 @@ namespace ExtraCommands |
|
|
|
|
|
|
|
static MethodBase TargetMethod(HarmonyInstance instance) |
|
|
|
{ |
|
|
|
return _ComposeMethodInfo(CommandLineCompositionRoot.Compose<UnityContext<FullGameCompositionRoot>>); |
|
|
|
return _ComposeMethodInfo(CommandLineCompositionRoot.Compose); |
|
|
|
} |
|
|
|
|
|
|
|
private static MethodInfo _ComposeMethodInfo(Action<UnityContext<FullGameCompositionRoot>, EnginesRoot, World, Action, MultiplayerInitParameters> a) |
|
|
|
private delegate void ComposeAction(UnityContext<FullGameCompositionRoot> c, EnginesRoot r, World w, Action a, |
|
|
|
MultiplayerInitParameters mip, ref StateSyncRegistrationHelper ssrh); //Ref params can't be used with Actions |
|
|
|
private static MethodInfo _ComposeMethodInfo(ComposeAction a) |
|
|
|
{ |
|
|
|
return a.Method; |
|
|
|
} |
|
|
|