Ejemplo n.º 1
0
 public void Save(BinaryWriter writer, PSDLFile parent)
 {
     writer.Write((ushort)parent.GetFloatIndex(Height));
     writer.Write((ushort)parent.GetFloatIndex(TextureScale));
     writer.Write((ushort)parent.GetVertexIndex(Vertices[0]));
     writer.Write((ushort)parent.GetVertexIndex(Vertices[1]));
 }
Ejemplo n.º 2
0
 public void Save(BinaryWriter writer, PSDLFile parent)
 {
     writer.Write((ushort)parent.GetFloatIndex(BottomHeight));
     writer.Write((ushort)parent.GetFloatIndex(TopHeight));
     writer.Write(UTiling);
     writer.Write(VTiling);
     writer.Write((ushort)parent.GetVertexIndex(Vertices[0]));
     writer.Write((ushort)parent.GetVertexIndex(Vertices[1]));
 }
Ejemplo n.º 3
0
        public void Save(BinaryWriter writer, PSDLFile parent)
        {
            //write count if applicable
            var subtype = Subtype;

            if (subtype == 0)
            {
                writer.Write((ushort)(Vertices.Count - 1));
            }

            writer.Write((ushort)parent.GetFloatIndex(Height));
            //write indices
            for (var i = 0; i < Vertices.Count; i++)
            {
                writer.Write((ushort)parent.GetVertexIndex(Vertices[i]));
            }
        }