Ejemplo n.º 1
0
        /// <inheritdoc />
        public void OnAuthorityChangePipelineOp(ChangeAuthorityPipelineOp op)
        {
            if (op.EntityId != EntityId)
            {
                Debug.LogError(string.Format("EntityObject::OnAuthorityChangePipelineOp: Entity {0} received pipeline op for wrong entity id {1}.", EntityId, op.EntityId));
                return;
            }

            var componentId = op.ComponentMetaClass.ComponentId;

            if (!Components.RegisteredComponents.ContainsKey(componentId))
            {
                return;
            }

            Components.RegisteredComponents[componentId].OnAuthorityChangePipelineOp(op);
        }
 /// <inheritdoc />
 public void OnAuthorityChangePipelineOp(ChangeAuthorityPipelineOp op)
 {
     OnAuthorityChangeDispatcherCallback(new AuthorityChangeOp {
         EntityId = entityId, Authority = op.Authority
     });
 }
Ejemplo n.º 3
0
 /// <inheritdoc />
 public void ChangeAuthority(ChangeAuthorityPipelineOp changeAuthorityOp)
 {
 }
Ejemplo n.º 4
0
 /// <inheritdoc />
 public virtual void ChangeAuthority(ChangeAuthorityPipelineOp changeAuthorityOp)
 {
     NextEntityBlock.ChangeAuthority(changeAuthorityOp);
 }