Beispiel #1
0
 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);
     }
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
		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");
			}
		}