MCLawl.CommandList.Add C# (CSharp) 메소드

Add() 공개 메소드

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

Usage Example

예제 #1
0
        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