Esempio n. 1
0
        public Command(
            String word,
            String shortInfo,
            String longInfo,
            RunLogic logic,
            List<String> argNames = null,
            int security = 0,
            String alias = null,
            String subdomainTitle = null
            )
            : base(word, shortInfo, longInfo, security, alias, 
            subdomainTitle)
        {
            //Log.Trace("Running constructor for command", "ctr");
            if (argNames == null) argNames = new List<String>();

            ArgNames = argNames;
            Logic = logic;
            ArgCount = argNames.Count;

            ArgsErrorNotice = new ChatNotification() {
                Text = "Expected " + ArgCount + " arguments."
            };

            InvokeErrorNotice = new ChatNotification() {
                Text = "Error invoking command.",
                Sender = "Server"
            };

            //Log.Trace("Finished running constructor for command", "ctr");
        }
Esempio n. 2
0
        public Command(
            String word,
            String shortInfo,
            String longInfo,
            RunLogic logic,
            List <String> argNames = null,
            int security           = 0,
            String alias           = null,
            String subdomainTitle  = null
            )
            : base(word, shortInfo, longInfo, security, alias,
                   subdomainTitle)
        {
            //Log.Trace("Running constructor for command", "ctr");
            if (argNames == null)
            {
                argNames = new List <String>();
            }

            ArgNames = argNames;
            Logic    = logic;
            ArgCount = argNames.Count;

            ArgsErrorNotice = new ChatNotification()
            {
                Text = "Expected " + ArgCount + " arguments."
            };

            InvokeErrorNotice = new ChatNotification()
            {
                Text   = "Error invoking command.",
                Sender = "Server"
            };

            //Log.Trace("Finished running constructor for command", "ctr");
        }