示例#1
0
 /// <summary>
 /// Set a property
 /// </summary>
 /// <param name="key">key</param>
 /// <param name="val">value</param>
 public void setProperty(object key, object val)
 {
     if (val == null)
     {
         object dummy;
         _props.TryRemove(key, out dummy);
     }
     else
     {
         _props[key] = val;
     }
 }
示例#2
0
        /// <summary>
        /// Removes a player from the looking for group list
        /// </summary>
        /// <param name="member">player to remove from the list</param>
        public static void RemovePlayerLooking(GamePlayer member)
        {
            member.LookingForGroup = false;
            bool dummy;

            m_lfgPlayers.TryRemove(member, out dummy);
        }
示例#3
0
        /// <summary>
        /// Removes a group from the manager
        /// </summary>
        /// <param name="group"></param>
        /// <returns></returns>
        public static bool RemoveGroup(Group group)
        {
            bool dummy;

            return(m_groups.TryRemove(group, out dummy));
        }