private void ProcessPlatformStructure(GameStructureProcessor processor, PlatformGameStructure structure) { foreach (KeyValuePair <string, string> file in structure.Files) { processor.AddScheme(file.Value, file.Key); } }
private void ProcessGameStructure(Processor processor, PlatformGameStructure structure) { SetScriptingBackend(structure); foreach (KeyValuePair <string, string> file in structure.Files) { processor.ProcessFile(file.Key, file.Value); } }
private SerializedFileScheme GetPrimaryFile() { foreach (FileScheme scheme in EnumerateSchemes(m_schemes)) { if (scheme.SchemeType == FileEntryType.Serialized) { if (PlatformGameStructure.IsPrimaryEngineFile(scheme.NameOrigin)) { return((SerializedFileScheme)scheme); } } } return(null); }
private void SetScriptingBackend(PlatformGameStructure structure) { ScriptingBackend backend = structure.GetScriptingBackend(); if (backend == ScriptingBackend.Unknown) { return; } if (FileCollection.AssemblyManager.ScriptingBackend == backend) { return; } if (FileCollection.AssemblyManager.ScriptingBackend == ScriptingBackend.Unknown) { FileCollection.AssemblyManager.ScriptingBackend = backend; } else { throw new Exception("Scripting backend is already set"); } }