Exemplo n.º 1
0
 public PreCommandTrigger(IrcBotPlugin plugin, PreCommandAttribute attribute)
     : base(plugin)
 {
     Attribute = attribute;
 }
Exemplo n.º 2
0
 public PropertyPreCommandTrigger(IrcBotPlugin plugin, PreCommandAttribute attribute, PropertyInfo property)
     : base(plugin, attribute)
 {
     Property = property;
 }
Exemplo n.º 3
0
 public MethodPreCommandTrigger(IrcBotPlugin plugin, PreCommandAttribute attribute, MethodInfo method)
     : base(plugin, attribute)
 {
     Method = method;
       if (method.ReturnType == typeof(bool)) {
     ReturnsBool = true;
       } else if (method.ReturnType != typeof(void)) {
     throw new Exception("method has to return either void or bool");
       }
 }