public Handler(Platform.Kernel.ECS.ClientEntitySystem.Impl.EventPhase eventPhase, Type eventType, MethodInfo method, MethodHandle methodHandle, Platform.Kernel.ECS.ClientEntitySystem.Impl.HandlerArgumentsDescription handlerArgumentsDescription) { this.EventPhase = eventPhase; this.EventType = eventType; this.Method = method; this._methodHandle = methodHandle; this.HandlerArgumentsDescription = handlerArgumentsDescription; this.Mandatory = IsMandatory(method); this.SkipInfo = IsSkipInfo(method); this.ProjectName = this.GetProjectName(); this.Name = this.GetHandlerName(); bool flag = true; this.ContextArguments = new List <HandlerArgument>(); foreach (HandlerArgument argument in this.HandlerArgumentsDescription.HandlerArguments) { if (argument.Context) { this.ContextArguments.Add(argument); } if (argument.JoinType.IsPresent()) { flag = false; } } this.IsContextOnlyArguments = flag; this.IsEventOnlyArguments = this.HandlerArgumentsDescription.HandlerArguments.Count == 0; this.HandlerInvokeGraph = new Platform.Kernel.ECS.ClientEntitySystem.Impl.HandlerInvokeGraph(this); }
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);
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) { }
public UpdateEventFireHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(UpdateEvent), method, methodHandle, handlerArgumentsDescription) { }
public EventCompleteHandler(Type eventType, MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(EventPhase.Complete, eventType, method, methodHandle, handlerArgumentsDescription) { }
protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) => new UpdateEventFireHandler(method, methodHandle, handlerArgumentsDescription);
protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) => new EventFireHandler(method.GetParameters()[0].ParameterType, method, methodHandle, handlerArgumentsDescription);
protected abstract Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription);
public EarlyUpdateCompleteHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(EarlyUpdateEvent), method, methodHandle, handlerArgumentsDescription) { }
public NodeAddedFireHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(NodeAddedEvent), method, methodHandle, handlerArgumentsDescription) { }