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); }
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); }