/// <summary> /// Check if the room has a feature /// </summary> /// <param name="feature"></param> /// <returns></returns> public bool HasFeature(RoomFeature feature) { if (feature == null) { return(false); } return(Features.ContainsValue(feature)); }
/// <summary> /// Add a feature to the room /// </summary> /// <param name="feature"></param> public void AddFeature(RoomFeature feature) { Features.Add(feature.Name, feature); }