示例#1
0
文件: WADParser.cs 项目: txdv/iron
 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
文件: BSPParser.cs 项目: txdv/hltools
 public static FaceTextureInfo BReadFaceTextureInfo(this BinaryReader br)
 {
     return new FaceTextureInfo(br.ReadVector3f(),br.BReadFloat(),
                                br.ReadVector3f(), br.BReadFloat(),
                                br.BReadUInt32(), br.BReadUInt32());
 }
示例#3
0
文件: BSPParser.cs 项目: txdv/hltools
 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
文件: BSPParser.cs 项目: txdv/hltools
 public static ClipNode BReadClipNode(this BinaryReader br)
 {
     return new ClipNode(br.BReadUInt32(), br.BReadInt16(), br.BReadInt16());
 }