示例#1
0
        /// <summary>
        /// Call this to build the hotel.
        /// Only call this after the room builder components have been registered.
        /// </summary>
        public void BuildHotel()
        {
            // Build the hotel.
            Rooms = HotelBuilder.BuildHotel();

            // Create the staff for the hotel.
            _cleaners = ServiceLocator.Get <ConfigLoader>().GetConfig().NumberOfCleaners;

            CreateStaff();
        }
示例#2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Hotel()
        {
            Staff  = new List <Person>();
            Guests = new Dictionary <string, Person>();

            Rooms        = new List <Room>();
            HotelBuilder = new HotelBuilder();

            Evacuating = false;
        }