示例#1
0
            public void AddRequestToDiff(CommandRequestOp op, ViewDiff diff)
            {
                var deserializedRequest = global::Improbable.Gdk.Tests.NonblittableTypes.SecondCommandRequest.Serialization.Deserialize(op.Request.SchemaData.Value.GetObject());

                var request = new SecondCommand.ReceivedRequest(
                    new EntityId(op.EntityId),
                    op.RequestId,
                    op.CallerWorkerId,
                    op.CallerAttributeSet,
                    deserializedRequest);

                diff.AddCommandRequest(request, ComponentId, 2);
            }
 internal RequestResponder(EntityManager entityManager, Entity entity, SecondCommand.ReceivedRequest request)
 {
     this.entity        = entity;
     this.entityManager = entityManager;
     Request            = request;
 }
 internal void OnSecondCommandRequestInternal(SecondCommand.ReceivedRequest request)
 {
     GameObjectDelegates.DispatchWithErrorHandling(new SecondCommand.RequestResponder(entityManager, entity, request), secondCommandDelegates, logger);
 }