public Room(Enums.RoomType roomType) { this.RoomType = roomType; GenerateRoom(); GenerateItem(); GenerateEnemies(); }
public Room( int houseId, string title, string description, Enums.RoomType roomType, Enums.LeaseType leaseType, decimal rentalFee) { this.HouseId = houseId; this.Title = title; this.Description = description; this.RoomType = roomType; this.LeaseType = leaseType; this.RentalFee = rentalFee; _roomImages = new List <RoomImage>(); }
public Room AddRoom( string title, string description, Enums.RoomType roomType, Enums.LeaseType leaseType, decimal rentalFee) { var room = new Room( this.Id, title, description, roomType, leaseType, rentalFee); _rooms.Add(room); return(room); }
public RoomData GetRandomRoomByTyoe(Enums.RoomType type) { List <RoomData> rooms = new List <RoomData> (); foreach (KeyValuePair <string, RoomData> entry in roomList) { if (EnumUtility.StringToRoomType(entry.Value.type) == type && !entry.Value.is_boss) { rooms.Add(entry.Value); } } if (rooms.Count > 0) { return(rooms [Random.Range(0, rooms.Count)]); } else { return(null); } }
public Stairs(Enums.RoomType roomType) { this.RoomType = roomType; }
public Node(Enums.RoomType roomType) { this.room = new Room(roomType); }
public Room(int id, string roomLabel, Enums.RoomType roomType) { Id = id; RoomLabel = roomLabel; RoomType = roomType; }