public YAMLNode ExportYAML() { YAMLMappingNode node = new YAMLMappingNode(); node.Add("m_Min", IsVector3 ? Min3.ExportYAML() : Min4.ExportYAML3()); node.Add("m_Max", IsVector3 ? Max3.ExportYAML() : Max4.ExportYAML3()); return(node); }
public void Read(EndianStream stream) { if (IsVector3) { Min3.Read(stream); Max3.Read(stream); } else { Min4.Read(stream); Max4.Read(stream); } }
public void Read(AssetReader reader) { if (IsVector3(reader.Version)) { Min = reader.ReadAsset <Vector3f>(); Max = reader.ReadAsset <Vector3f>(); } else { Min4.Read(reader); Max4.Read(reader); } }