Inheritance: IrcShark.Extensions.Extension
Esempio n. 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;
 }
Esempio n. 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);
 }
Esempio n. 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;
 }
Esempio n. 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;
 }