Exemple #1
0
 public NetworkCommand(int permissionLevelRequired, NetworkCommandDelegate method, params string[] names)
 {
     this.Names           = new List <string>(names);
     this.Names           = this.Names.ConvertAll((string d) => d.ToLower());
     this.CommandDelegate = method;
     this.permission      = permissionLevelRequired;
 }
Exemple #2
0
 public static void add(NetworkCommandDelegate method, int permissionLvl, params string[] names)
 {
     commands.Add(new NetworkCommand(permissionLvl, method, names));
 }