示例#1
0
文件: Group.cs 项目: Herocane/Evolve
        public static void AddCommands(out CommandList commands, LevelPermission perm)
        {
            commands = new CommandList();

            foreach (rankAllowance aV in allowedCommands)
                if ((aV.lowestRank <= perm && !aV.disallow.Contains(perm)) || aV.allow.Contains(perm)) commands.Add(Command.all.Find(aV.commandName));
        }
示例#2
0
文件: Group.cs 项目: Herocane/Evolve
 public void fillCommands()
 {
     CommandList _commands = new CommandList();
     GrpCommands.AddCommands(out _commands, Permission);
     commands = _commands;
 }