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