public void Read(AssetReader reader) { TextureImportInstructions.Read(reader); SourceTextureInformation.Read(reader); if (HasImportInspectorWarnings(reader.Version)) { ImportInspectorWarnings = reader.ReadString(); } }
public void Write(AssetWriter writer) { TextureImportInstructions.Write(writer); SourceTextureInformation.Write(writer); if (HasImportInspectorWarnings(writer.Version)) { writer.Write(ImportInspectorWarnings); } }
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); }
public TextureImportOutput(Version version) { TextureImportInstructions = new TextureImportInstructions(version); SourceTextureInformation = new SourceTextureInformation(version); ImportInspectorWarnings = string.Empty; }
public TextureImportOutput(AssetLayout layout) { TextureImportInstructions = new TextureImportInstructions(layout); SourceTextureInformation = new SourceTextureInformation(layout); ImportInspectorWarnings = string.Empty; }