Example #1
0
        public static Node Read(BinaryReader br)
        {
            Node node = new Node();

            node.plane_id = br.ReadInt32();
            node.front    = br.ReadInt16();
            node.back     = br.ReadInt16();
            node.box      = BBoxshort.Read(br);
            node.face_id  = br.ReadUInt16();
            node.face_num = br.ReadUInt16();
            return(node);
        }
Example #2
0
        public static BBoxshort Read(BinaryReader br)
        {
            BBoxshort box = new BBoxshort();

            box.minX = br.ReadInt16();
            box.minY = br.ReadInt16();
            box.minZ = br.ReadInt16();
            box.maxX = br.ReadInt16();
            box.maxY = br.ReadInt16();
            box.maxZ = br.ReadInt16();
            return(box);
        }
Example #3
0
        public static Leaf Read(BinaryReader br)
        {
            Leaf leaf = new Leaf();

            leaf.type      = br.ReadInt32();
            leaf.visOffset = br.ReadInt32();
            leaf.bound     = BBoxshort.Read(br);
            leaf.lface_id  = br.ReadUInt16();
            leaf.lface_num = br.ReadUInt16();
            leaf.sndwater  = br.ReadByte();
            leaf.sndsky    = br.ReadByte();
            leaf.sndslime  = br.ReadByte();
            leaf.sndlava   = br.ReadByte();
            return(leaf);
        }