コード例 #1
0
 private void ProcessPlatformStructure(GameStructureProcessor processor, PlatformGameStructure structure)
 {
     foreach (KeyValuePair <string, string> file in structure.Files)
     {
         processor.AddScheme(file.Value, file.Key);
     }
 }
コード例 #2
0
 private void ProcessGameStructure(Processor processor, PlatformGameStructure structure)
 {
     SetScriptingBackend(structure);
     foreach (KeyValuePair <string, string> file in structure.Files)
     {
         processor.ProcessFile(file.Key, file.Value);
     }
 }
コード例 #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);
 }
コード例 #4
0
ファイル: GameStructure.cs プロジェクト: lego13/UtinyRipper
		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");
			}
		}