Esempio n. 1
0
		/// <summary>
		/// Default constructor.
		/// </summary>
		/// <param name="roleName">the name of the role</param>
		/// <param name="gm">whether or not this role makes you a GM</param>
		/// <param name="qa">whether or not this role makes you a QA</param>
		/// <param name="inherits">the other roles this role inherits from</param>
		public RoleGroupInfo(string roleName,
			int rank, RoleStatus status, bool gm, bool qa, bool canCommandOthers, bool canHandleTickets,
			bool maySkipAuthQueue, bool scrambleChat,
			string[] inherits, string[] commands)
		{
			Name = roleName;
			Rank = rank;
			Status = status;
			AppearAsGM = gm;
			AppearAsQA = qa;
			InheritanceList = inherits;
			CommandNames = commands;
			CanUseCommandsOnOthers = canCommandOthers;
			CanHandleTickets = canHandleTickets;
			MaySkipAuthQueue = maySkipAuthQueue;
			ScrambleChat = scrambleChat;

			if (HighestRole == null || HighestRole.Rank < rank)
			{
				HighestRole = this;
			}

			if (LowestRole == null || LowestRole.Rank > m_rank)
			{
				LowestRole = this;
			}
		}