MCLawl.CommandList.Add C# (CSharp) Method

Add() public method

public Add ( Command cmd ) : void
cmd Command
return void
        public void Add(Command cmd)
        {
            commands.Add(cmd);
        }

Usage Example

コード例 #1
0
ファイル: Group.cs プロジェクト: DireatClassicube/MCLawl
        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));
                }
            }
        }
All Usage Examples Of MCLawl.CommandList::Add