Ejemplo n.º 1
0
        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);
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 6
0
 public UpdateEventFireHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(UpdateEvent), method, methodHandle, handlerArgumentsDescription)
 {
 }
Ejemplo n.º 7
0
 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);
Ejemplo n.º 9
0
 protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) =>
 new EventFireHandler(method.GetParameters()[0].ParameterType, method, methodHandle, handlerArgumentsDescription);
Ejemplo n.º 10
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)
 {
 }
Ejemplo n.º 12
0
 public NodeAddedFireHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(NodeAddedEvent), method, methodHandle, handlerArgumentsDescription)
 {
 }