コード例 #1
0
ファイル: CommandNamespace.cs プロジェクト: Xcelled/aurora
        public void Add(Command c)
        {
            var ch = c as CommandHeirarchyElement;

            if (ch.Parent != null)
                throw new InvalidOperationException("Command has already been inserted into the hierarchy!");

            c.Parent = this;
            Commands.Add(c);
        }
コード例 #2
0
ファイル: Command.cs プロジェクト: Xcelled/aurora
 protected Command(string name, Command other)
     : this(name, other.Description, other._defaultSelfAuth, other._defaultTargetAuth, other.Hide)
 {
 }
コード例 #3
0
ファイル: CommandAlias.cs プロジェクト: Xcelled/aurora
 public CommandAlias(string name, Command other)
     : base(name, other)
 {
     _other = other;
 }