public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.Add("renderer", Renderer.ExportYAML(container)); node.Add("dynamicLightmapSTInSystem", DynamicLightmapSTInSystem.ExportYAML(container)); node.Add("systemId", SystemId); node.Add("instanceHash", InstanceHash.ExportYAML(container)); node.Add("geometryHash", GeometryHash.ExportYAML(container)); return(node); }
public void Read(AssetReader reader) { Renderer.Read(reader); DynamicLightmapSTInSystem.Read(reader); SystemId = reader.ReadInt32(); InstanceHash.Read(reader); if (IsReadGeometryHash(reader.Flags)) { GeometryHash.Read(reader); } }
public void Read(AssetStream stream) { Renderer.Read(stream); DynamicLightmapSTInSystem.Read(stream); SystemId = stream.ReadInt32(); InstanceHash.Read(stream); if (IsReadGeometryHash(stream.Flags)) { GeometryHash.Read(stream); } }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.Add(RendererName, Renderer.ExportYAML(container)); node.Add(DynamicLightmapSTInSystemName, DynamicLightmapSTInSystem.ExportYAML(container)); node.Add(SystemIdName, SystemId); node.Add(InstanceHashName, InstanceHash.ExportYAML(container)); node.Add(GeometryHashName, GeometryHash.ExportYAML(container)); return(node); }
public void Write(AssetWriter writer) { Renderer.Write(writer); DynamicLightmapSTInSystem.Write(writer); writer.Write(SystemId); InstanceHash.Write(writer); if (HasGeometryHash(writer.Flags)) { GeometryHash.Write(writer); } }