Example #1
0
        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);
        }
Example #2
0
 public void Read(EndianStream stream)
 {
     if (IsVector3)
     {
         Min3.Read(stream);
         Max3.Read(stream);
     }
     else
     {
         Min4.Read(stream);
         Max4.Read(stream);
     }
 }
Example #3
0
 public void Read(AssetReader reader)
 {
     if (IsVector3(reader.Version))
     {
         Min = reader.ReadAsset <Vector3f>();
         Max = reader.ReadAsset <Vector3f>();
     }
     else
     {
         Min4.Read(reader);
         Max4.Read(reader);
     }
 }