private LinedefSpecial(LinedefSpecialHandler handler,LinedefActivationType activationtype,bool repeatable) { if (handler == null) throw new ArgumentNullException("handler"); this.handler = handler; this.activationtype = activationtype; this.repeatable = repeatable; }
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); } }
private LinedefSpecial(LinedefSpecialHandler handler, LinedefActivationType activationtype, bool repeatable) { if (handler == null) { throw new ArgumentNullException("handler"); } this.handler = handler; this.activationtype = activationtype; this.repeatable = repeatable; }