/// <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; } }
/// <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); }
/// <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)); }