Пример #1
0
 public static WADFile ReadWADFile(this BinaryReader br)
 {
     return new WADFile(br.BReadUInt32(), br.BReadUInt32(), br.BReadUInt32(), br.ReadByte(),
                        br.ReadByte(), br.ReadByte(), br.ReadByte(),
                        Encoding.ASCII.GetString(br.ReadBytes(16)).TrimEnd(new char[] { '\0' })
                        );
 }
Пример #2
0
 public static FaceTextureInfo BReadFaceTextureInfo(this BinaryReader br)
 {
     return new FaceTextureInfo(br.ReadVector3f(),br.BReadFloat(),
                                br.ReadVector3f(), br.BReadFloat(),
                                br.BReadUInt32(), br.BReadUInt32());
 }
Пример #3
0
 public static Face BReadFace(this BinaryReader br)
 {
     return new Face(br.BReadUInt16(), br.BReadUInt16(), br.BReadUInt32(), br.BReadUInt16(),
                     br.BReadUInt16(), br.ReadByte(), br.ReadByte(), br.ReadByte(), br.ReadByte(),
                     br.ReadInt32());
 }
Пример #4
0
 public static ClipNode BReadClipNode(this BinaryReader br)
 {
     return new ClipNode(br.BReadUInt32(), br.BReadInt16(), br.BReadInt16());
 }