Exemple #1
0
        public static void AddCommands(out CommandList commands, LevelPermission perm)
        {
            commands = new CommandList();

            foreach (rankAllowance aV in allowedCommands.Where(aV => (aV.lowestRank <= perm && !aV.disallow.Contains(perm)) || aV.allow.Contains(perm)))
                commands.Add(Command.all.Find(aV.commandName));
        }
Exemple #2
0
 /// <summary>
 /// Fill the commands that this group can use
 /// </summary>
 public void fillCommands()
 {
     CommandList _commands = new CommandList();
     GrpCommands.AddCommands(out _commands, Permission);
     commands = _commands;
 }