Beispiel #1
0
        public void Add(CommandNamespace ns)
        {
            if (ns.Parent != null)
                throw new InvalidOperationException("Namespace has already been inserted into the hierarchy!");

            ns.Parent = this;
            Namespaces.Add(ns);
        }
Beispiel #2
0
        public AuroraCommandManager(GmCommandManager original)
        {
            OriginalManager = original;

            GlobalNamespace = new CommandNamespace("Global", "Root Namespace")
            {
                new HelpCommand(),
                new CommandNamespace("char", "Commands relating to characters")
            };
        }