using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace ProxyCore.Input { internal class InputEntry { internal string Command; internal CmdFunction Func; internal CMDFlags Flags; internal InputEntry Parent; internal int CustomArg; internal Regex ArgumentsPattern; internal ulong AuthMask; internal string Plugin; internal int MinLength; internal SortedDictionary Subcommands; } /// /// Function for handling input. Return true if we handled the command (no need to send to MUD) and false /// if we didn't and we must send it to MUD. /// /// Input data. /// public delegate bool CmdFunction(InputData cmd); [Flags] public enum CMDFlags { None = 0, /// /// Hidden from normal commands menu. /// Hidden = 2, /// /// Command is currently disabled and will be excluded in the list of valid commands. /// Disabled = 4, /// /// Dummy command, player can't type it but it will be redirected from elsewhere. /// Dummy = 8, /// /// Internal - this will be assigned automatically for commands that have subcommands. /// IsParent = 0x10, } }