Update
This commit is contained in:
parent
08279b9bc1
commit
f1a3031ea4
2 changed files with 3 additions and 15 deletions
|
@ -47,7 +47,7 @@ namespace GCMC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEntitiesDB entitiesDB { get; set; }
|
public EntitiesDB entitiesDB { get; set; }
|
||||||
|
|
||||||
private void ImportWorld(string name)
|
private void ImportWorld(string name)
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,20 +29,8 @@ namespace GCMC
|
||||||
|
|
||||||
static MethodBase TargetMethod(HarmonyInstance instance)
|
static MethodBase TargetMethod(HarmonyInstance instance)
|
||||||
{
|
{
|
||||||
return _ComposeMethodInfo(MachineEditingCompositionRoot.StateSyncCompose);
|
return typeof(MachineEditingCompositionRoot).GetMethod("StateSyncCompose",
|
||||||
}
|
BindingFlags.Public | BindingFlags.Static);
|
||||||
|
|
||||||
private delegate void ComposeAction(EnginesRoot enginesRoot,
|
|
||||||
IDataDB dataDB,
|
|
||||||
RCXMode currentMode,
|
|
||||||
World physicsWorld,
|
|
||||||
ref StateSyncRegistrationHelper stateSyncReg,
|
|
||||||
bool isAuthoritative,
|
|
||||||
LabelResourceManager textBlockLabelResourceManager,
|
|
||||||
MainGameOptions.Options mainGameOptions);
|
|
||||||
private static MethodInfo _ComposeMethodInfo(ComposeAction a)
|
|
||||||
{
|
|
||||||
return a.Method;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue