예제 #1
0
 public bool Add(CustomCvar newCvar)
 {
     newCvar.Command = newCvar.Command.ToLower().Trim();
     foreach (var cvar in Cvars)
     {
         if (cvar.Command == newCvar.Command)
         {
             return(false);
         }
     }
     Cvars.Add(newCvar);
     return(true);
 }
예제 #2
0
 public CustomCvar(CustomCvar cvarToCopy)
 {
     this.RequiredRole = cvarToCopy.RequiredRole;
     this.Command      = cvarToCopy.Command;
     this.CvarResponse = cvarToCopy.CvarResponse;
 }