Example #1
0
        public void AddCommand(String i_Name, String i_Help)
        {
            OneSystemCommand NewCommand = new OneSystemCommand
            {
                Opcode = i_Name,
                Help   = i_Help
            };

            ALLCommandsList.Add(NewCommand);
        }
Example #2
0
        public List <OneSystemCommand> DeSerializeStringListToCommandsList(List <String> i_InputList)
        {
            List <OneSystemCommand> ret = new List <OneSystemCommand>();

            if (i_InputList != null)
            {
                foreach (String cmd in i_InputList)
                {
                    string[]         Output = cmd.Split(new string[] { "|||" }, StringSplitOptions.None);
                    OneSystemCommand NewCmd = new OneSystemCommand
                    {
                        Opcode = Output[1],
                        Help   = Output[2]
                    };
                    ret.Add(NewCmd);
                }
            }
            return(ret);
        }
Example #3
0
 public void AddCommand(OneSystemCommand i_NewCommand)
 {
     ALLCommandsList.Add(i_NewCommand);
 }