public CheatCommandAttribute( string InExpression, string InComment, int InMessageID = 0 ) { command = new CheatCommandName(InExpression); comment = InComment; messageID = InMessageID; }
public CheatCommandMethod( MethodInfo InMethod, CheatCommandEntryAttribute InEntryAttr, CheatCommandEntryMethodAttribute InMethodAttr) { Method = InMethod; CommandName = new MethodCheatCommandName( string.Format("{0}/{1}", InEntryAttr.group, InMethodAttr.comment), InMethod.Name ); MethodAttr = InMethodAttr; String[] Comments = MethodAttr.comment.Split('/'); Comment = Comments != null && Comments.Length > 0 ? Comments[Comments.Length - 1] : Method.Name; CacheArgumentDescriptions(); ValidateArgumentsBuffer(); }