Esempio n. 1
0
 public CheatCommandMethod(MethodInfo InMethod, CheatCommandEntryAttribute InEntryAttr, CheatCommandEntryMethodAttribute InMethodAttr)
 {
     this.Method      = InMethod;
     this.CommandName = new MethodCheatCommandName(string.Format("{0}/{1}", InEntryAttr.group, InMethodAttr.comment), InMethod.Name);
     this.MethodAttr  = InMethodAttr;
     char[]   separator = new char[] { '/' };
     string[] strArray  = this.MethodAttr.comment.Split(separator);
     this.Comment = ((strArray == null) || (strArray.Length <= 0)) ? this.Method.Name : strArray[strArray.Length - 1];
     this.CacheArgumentDescriptions();
     base.ValidateArgumentsBuffer();
 }
Esempio n. 2
0
 public CheatCommandMethod(MethodInfo InMethod, CheatCommandEntryAttribute InEntryAttr, CheatCommandEntryMethodAttribute InMethodAttr)
 {
     this.Method      = InMethod;
     this.CommandName = new CheatCommandMethod.MethodCheatCommandName(string.Format("{0}/{1}", InEntryAttr.group, InMethodAttr.comment), InMethod.get_Name());
     this.MethodAttr  = InMethodAttr;
     string[] array = this.MethodAttr.comment.Split(new char[]
     {
         '/'
     });
     this.Comment = ((array == null || array.Length <= 0) ? this.Method.get_Name() : array[array.Length - 1]);
     this.CacheArgumentDescriptions();
     base.ValidateArgumentsBuffer();
 }