示例#1
0
 /// <summary>
 /// Initialize the plugin. If it returns false, then the plugin is disabled.
 /// </summary>
 /// <returns></returns>
 virtual public bool Init(ICocBot theBotServiceProvider)
 {
     MainBot = theBotServiceProvider;
     theBotServiceProvider.WriteToOutput("Hello from BasePlugin");
     return(true);
 }
示例#2
0
 abstract public bool Init(ICocBot theBotServiceProvider);
示例#3
0
 /// <summary>
 /// Initialize the plugin. If it returns false, then the plugin is disabled.
 /// </summary>
 /// <returns></returns>
 public override bool Init(ICocBot theBotServiceProvider)
 {
     base.Init(theBotServiceProvider);
     theBotServiceProvider.WriteToOutput("Hello from the plugin");
     return(true);
 }