Пример #1
0
        public void EnterRoom(World.Room room)
        {
            m_currentRoom = room;

            m_interactionManager = new Interaction.InteractionManager(m_currentRoom);

            m_currentRoom.Describe();
        }
Пример #2
0
        /// <summary>
        /// Initialises a new instance of the <see cref="Room"/> class.
        /// </summary>
        /// <param name="room">The <see cref="World.Room"/> being interfaced.</param>
        /// <param name="floorPlan">The <see cref="FloorPlan"/> this <see cref="Room"/> exists on.</param>
        internal Room(World.Room room, FloorPlan floorPlan)
        {
            this.room      = room;
            this.FloorPlan = floorPlan;

            Doors = new ReadOnlyDictionary <string, DoorFace>(doors);

            floorPlan.rooms.Add(Id, this);
        }