/// <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
     });
 }
Exemple #3
0
 /// <inheritdoc />
 public void ChangeAuthority(ChangeAuthorityPipelineOp changeAuthorityOp)
 {
 }
 /// <inheritdoc />
 public virtual void ChangeAuthority(ChangeAuthorityPipelineOp changeAuthorityOp)
 {
     NextEntityBlock.ChangeAuthority(changeAuthorityOp);
 }