Exemple #1
0
 public void Write(BinaryWriterEx output)
 {
     output.WriteAsciiz(FileName);
     output.Write(CompressedMagic);
     output.Write(UncompressedSize);
     output.Write(StartOffset);
     output.Write(TimeStamp);
     output.Write(DataSize);
 }
Exemple #2
0
        private static void WriteProperties(BinaryWriterEx output, IEnumerable <string> properties)
        {
            //create starting entry
            VersionEntry.Write(output);

            foreach (var e in properties)
            {
                output.WriteAsciiz(e);
            }
            output.Write((byte)0); //empty string
        }
Exemple #3
0
        public void Write(BinaryWriterEx output)
        {
            output.Write(VertexCount);
            for (int i = 0; i < 4; ++i)
            {
                if (i < Vertices.Length && Vertices[i] != null)
                {
                    Vertices[i].Write(output);
                }
                else
                {
                    output.Write(0);
                    output.Write(0);
                    output.Write(0);
                    output.Write(0);
                }
            }

            output.Write((int)Flags);
            output.WriteAsciiz(Texture);
            output.WriteAsciiz(Material);
        }
Exemple #4
0
 protected void WriteHeader(BinaryWriterEx output)
 {
     output.Write(true);
     output.WriteAsciiz(Name);
     output.Write(DataSize);
 }