protected override void Validate(MethodInfo method, HandlerArgumentsDescription argumentsDescription)
        {
            base.Validate(method, argumentsDescription);
            int num = 0;

            foreach (HandlerArgument argument in argumentsDescription.HandlerArguments)
            {
                if (argument.Context)
                {
                    num++;
                }
            }
            if (num > 1)
            {
                throw new MultipleContextNodesNotSupportedException(method);
            }
        }
 protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) =>
 new NodeRemovedCompleteHandler(method, methodHandle, handlerArgumentsDescription);
 protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) =>
 new AfterFixedUpdateEventCompleteHandler(method, methodHandle, handlerArgumentsDescription);
Пример #4
0
 public AfterFixedUpdateEventCompleteHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(AfterFixedUpdateEvent), method, methodHandle, handlerArgumentsDescription)
 {
 }
 public NodeRemovedCompleteHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(NodeRemoveEvent), method, methodHandle, handlerArgumentsDescription)
 {
 }
Пример #6
0
 public EventCompleteHandler(Type eventType, MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(EventPhase.Complete, eventType, method, methodHandle, handlerArgumentsDescription)
 {
 }
Пример #7
0
 public UpdateEventFireHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(UpdateEvent), method, methodHandle, handlerArgumentsDescription)
 {
 }
 protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) =>
 new UpdateEventFireHandler(method, methodHandle, handlerArgumentsDescription);
Пример #9
0
 protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) =>
 new EventFireHandler(method.GetParameters()[0].ParameterType, method, methodHandle, handlerArgumentsDescription);
Пример #10
0
 protected virtual void Validate(MethodInfo method, HandlerArgumentsDescription argumentsDescription)
 {
 }
Пример #11
0
 protected abstract Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription);
 public EarlyUpdateCompleteHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(EarlyUpdateEvent), method, methodHandle, handlerArgumentsDescription)
 {
 }
Пример #13
0
 public NodeAddedFireHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(NodeAddedEvent), method, methodHandle, handlerArgumentsDescription)
 {
 }