コード例 #1
0
        /// <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));
        }
コード例 #2
0
 /// <summary>
 /// Add a feature to the room
 /// </summary>
 /// <param name="feature"></param>
 public void AddFeature(RoomFeature feature)
 {
     Features.Add(feature.Name, feature);
 }