public void AddResponseToDiff(CommandResponseOp op, ViewDiff diff, CommandMetaDataAggregate commandMetaData) { global::Improbable.Gdk.Tests.NonblittableTypes.FirstCommandResponse?rawResponse = null; if (op.StatusCode == StatusCode.Success) { rawResponse = global::Improbable.Gdk.Tests.NonblittableTypes.FirstCommandResponse.Serialization.Deserialize(op.Response.SchemaData.Value.GetObject()); } var commandContext = commandMetaData.GetContext <global::Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest>(ComponentId, 1, op.RequestId); commandMetaData.MarkIdForRemoval(ComponentId, 1, op.RequestId); var response = new FirstCommand.ReceivedResponse( commandContext.SendingEntity, new EntityId(op.EntityId), op.Message, op.StatusCode, rawResponse, commandContext.Request, commandContext.Context, commandContext.RequestId); diff.AddCommandResponse(response, ComponentId, 1); }
internal void OnFirstCommandResponseInternal(FirstCommand.ReceivedResponse response) { GameObjectDelegates.DispatchWithErrorHandling(response, firstCommandDelegates, logger); }
public void AddResponse(FirstCommand.ReceivedResponse response) { responseStorage.Add(response); }