Наследование: IrcShark.Extensions.Extension
Пример #1
0
 /// <summary>
 /// Initializes the ServerCommand.
 /// </summary>
 /// <param name="terminal">The terminal to create the command for.</param>
 public override void Init(TerminalExtension terminal)
 {
     base.Init(terminal);
     this.chatting = Terminal.Context.Application.Extensions["IrcShark.Extensions.Chatting.ChatManagerExtension"] as ChatManagerExtension;
     if (chatting == null)
         Active = false;
 }
Пример #2
0
 /// <summary>
 /// Gets the delegate of this method.
 /// </summary>
 /// <param name="scripting">The ScriptingExtension instance.</param>
 public Delegate GetMethodDelegat(ScriptingExtension scripting)
 {
     terminal = scripting.Context.Application.Extensions["IrcShark.Extensions.Terminal.TerminalExtension"] as TerminalExtension;
     return new EchoDelegate(Echo);
 }
Пример #3
0
 /// <summary>
 /// Initializes the ExtensionCommand.
 /// </summary>
 /// <param name="extension">The instance of the TerminalExtension.</param>        
 public override void Init(TerminalExtension terminal)
 {
     base.Init(terminal);
     extManager = Terminal.Context.Application.Extensions;
 }
Пример #4
0
 /// <summary>
 /// Gives the current TerminalExtension instance to the TerminalCommand instance.
 /// </summary>
 /// <param name="terminal">The currently activ TerminalExtension instance.</param>
 public virtual void Init(TerminalExtension terminal)
 {
     extension = terminal;
 }