Пример #1
0
        public RoomTableEntryNode(FourCC fourCC, WWorld world) : base(fourCC, world)
        {
            LoadedRoomEntries = new AdvancedBindingList <RoomTableRoomSettings>();

            var room_entry = new RoomTableRoomSettings();

            room_entry.ActivateRoomWhenLoaded = true;
            room_entry.Unk2 = true;
            LoadedRoomEntries.Add(room_entry);
        }
Пример #2
0
        public RoomTableEntryNode(FourCC fourCC, WWorld world, EndianBinaryReader reader) : base(fourCC, world)
        {
            LoadedRoomEntries = new AdvancedBindingList <RoomTableRoomSettings>();

            byte RoomCount = reader.ReadByte();

            ReverbAmount = reader.ReadByte();
            TimePasses   = Convert.ToBoolean(reader.ReadByte());

            reader.SkipByte(); // Padding byte

            int table_offset = reader.ReadInt32();

            reader.BaseStream.Seek(table_offset, System.IO.SeekOrigin.Begin);

            for (int i = 0; i < RoomCount; i++)
            {
                LoadedRoomEntries.AddNew(new object[] { reader });
            }
        }