Esempio n. 1
0
 public void Read(AssetReader reader)
 {
     TextureImportInstructions.Read(reader);
     SourceTextureInformation.Read(reader);
     if (HasImportInspectorWarnings(reader.Version))
     {
         ImportInspectorWarnings = reader.ReadString();
     }
 }
Esempio n. 2
0
 public void Write(AssetWriter writer)
 {
     TextureImportInstructions.Write(writer);
     SourceTextureInformation.Write(writer);
     if (HasImportInspectorWarnings(writer.Version))
     {
         writer.Write(ImportInspectorWarnings);
     }
 }
Esempio n. 3
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add(TextureImportInstructionsName, TextureImportInstructions.ExportYAML(container));
            node.Add(SourceTextureInformationName, SourceTextureInformation.ExportYAML(container));
            if (HasImportInspectorWarnings(container.ExportVersion))
            {
                node.Add(ImportInspectorWarningsName, ImportInspectorWarnings);
            }
            return(node);
        }
Esempio n. 4
0
 public TextureImportOutput(Version version)
 {
     TextureImportInstructions = new TextureImportInstructions(version);
     SourceTextureInformation  = new SourceTextureInformation(version);
     ImportInspectorWarnings   = string.Empty;
 }
Esempio n. 5
0
 public TextureImportOutput(AssetLayout layout)
 {
     TextureImportInstructions = new TextureImportInstructions(layout);
     SourceTextureInformation  = new SourceTextureInformation(layout);
     ImportInspectorWarnings   = string.Empty;
 }