public override void Read() { var br = Chunk.GetReader(); ofsGroupName = br.ReadUInt32(); ofsDescriptiveGroupName = br.ReadUInt32(); Flags = (MOGPFlags)br.ReadUInt32(); BoundingBox1 = br.ReadVector3(); BoundingBox2 = br.ReadVector3(); PortalIndex = br.ReadUInt16(); nPortals = br.ReadUInt16(); Batches = new ushort[4]; for (int i = 0; i < 4; i++) { Batches[i] = br.ReadUInt16(); } FogIndices = new byte[4]; for (int i = 0; i < 4; i++) { FogIndices[i] = br.ReadByte(); } LiquidType = br.ReadUInt32(); GroupId = br.ReadUInt32(); unk0 = br.ReadUInt32(); unk1 = br.ReadUInt32(); }
public override void Read() { var br = Chunk.GetReader(); ofsGroupName = br.ReadUInt32(); ofsDescriptiveGroupName = br.ReadUInt32(); Flags = (MOGPFlags)br.ReadUInt32(); BoundingBox1 = br.ReadVector3(); BoundingBox2 = br.ReadVector3(); PortalIndex = br.ReadUInt16(); nPortals = br.ReadUInt16(); Batches = new ushort[4]; for (int i = 0; i < 4; i++) Batches[i] = br.ReadUInt16(); FogIndices = new byte[4]; for (int i = 0; i < 4; i++) FogIndices[i] = br.ReadByte(); LiquidType = br.ReadUInt32(); GroupId = br.ReadUInt32(); unk0 = br.ReadUInt32(); unk1 = br.ReadUInt32(); }