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); }
public AuroraCommandManager(GmCommandManager original) { OriginalManager = original; GlobalNamespace = new CommandNamespace("Global", "Root Namespace") { new HelpCommand(), new CommandNamespace("char", "Commands relating to characters") }; }