This commit is contained in:
Norbi Peti 2020-03-13 01:55:19 +01:00
parent 08279b9bc1
commit f1a3031ea4
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
2 changed files with 3 additions and 15 deletions

View file

@ -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)
{ {

View file

@ -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;
} }
} }
} }