Esempio n. 1
0
 private LinedefSpecial(LinedefSpecialHandler handler,LinedefActivationType activationtype,bool repeatable)
 {
     if (handler == null)
         throw new ArgumentNullException("handler");
     this.handler = handler;
     this.activationtype = activationtype;
     this.repeatable = repeatable;
 }
Esempio n. 2
0
 private static void RegisterMethod(MethodInfo method)
 {
     foreach (LinedefSpecialAttribute attribute in method.GetCustomAttributes(typeof(LinedefSpecialAttribute), false))
     {
         LinedefSpecialHandler handler = (LinedefSpecialHandler)Delegate.CreateDelegate(typeof(LinedefSpecialHandler), method);
         specials[attribute.Number] = new LinedefSpecial(handler, attribute.ActivationType, attribute.Repeatable);
     }
 }
Esempio n. 3
0
 private LinedefSpecial(LinedefSpecialHandler handler, LinedefActivationType activationtype, bool repeatable)
 {
     if (handler == null)
     {
         throw new ArgumentNullException("handler");
     }
     this.handler        = handler;
     this.activationtype = activationtype;
     this.repeatable     = repeatable;
 }