public static Response CreateResponse(ReceivedRequest req, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload) { return(new Response { RequestId = req.RequestId, Payload = payload, FailureMessage = null, }); }
public ReceivedRequest(long requestId, string callerWorkerId, List <string> callerAttributeSet, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request) { RequestId = requestId; CallerWorkerId = callerWorkerId; CallerAttributeSet = callerAttributeSet; Payload = request; }
public void SendEvt(global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload) { if (!IsValid()) { return; } var sender = EntityManager.GetComponentData <EventSender.Evt>(Entity); sender.Events.Add(payload); }
public Request( EntityId targetEntityId, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request, uint?timeoutMillis = null, bool allowShortCircuiting = false, object context = null) { TargetEntityId = targetEntityId; Payload = request; TimeoutMillis = timeoutMillis; AllowShortCircuiting = allowShortCircuiting; Context = context; }
public long SendCmdRequest(EntityId entityId, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload, Action <Cmd.ReceivedResponse> callback, uint?timeoutMillis = null, bool allowShortCircuiting = false) { if (!IsValid()) { return(-1); } var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.Cmd>(entity); var request = Cmd.CreateRequest(entityId, payload, timeoutMillis, allowShortCircuiting, callback); ecsCommandRequestSender.RequestsToSend.Add(request); return(request.RequestId); }
public long SendCmdRequest(EntityId entityId, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload, uint?timeoutMillis = null, bool allowShortCircuiting = false, object context = null) { if (!VerifyNotDisposed()) { return(-1); } var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.Cmd>(entity); var request = Cmd.CreateRequest(entityId, payload, timeoutMillis, allowShortCircuiting, context); ecsCommandRequestSender.RequestsToSend.Add(request); return(request.RequestId); }
public static Request CreateRequest(EntityId targetEntityId, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request, uint?timeoutMillis = null, bool allowShortCircuiting = false, System.Object context = null) { return(new Request { TargetEntityId = targetEntityId, Payload = request, TimeoutMillis = timeoutMillis, AllowShortCircuiting = allowShortCircuiting, Context = context, RequestId = global::Improbable.Gdk.Core.CommandRequestIdGenerator.GetNext(), }); }
public ReceivedResponse(EntityId entityId, string message, StatusCode statusCode, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty?response, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request, System.Object context, long requestId) { EntityId = entityId; Message = message; StatusCode = statusCode; ResponsePayload = response; RequestPayload = request; Context = context; RequestId = requestId; }
public void SendResponse(global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload) { entityManager.GetComponentData <CommandResponders.Cmd>(entity).ResponsesToSend .Add(Cmd.CreateResponse(Request, payload)); }
public void OnEvtEvent(global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload) { GameObjectDelegates.DispatchWithErrorHandling(payload, EvtDelegates, LogDispatcher); }
public Response(long requestId, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload) { RequestId = requestId; Payload = payload; FailureMessage = null; }
public void SendCmdResponse(long requestId, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty response) { commandSystem.SendResponse(new global::Improbable.Gdk.Tests.ComponentsWithNoFields.ComponentWithNoFieldsWithCommands.Cmd.Response(requestId, response)); }
public void SendCmdCommand(EntityId targetEntityId, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request, Action <global::Improbable.Gdk.Tests.ComponentsWithNoFields.ComponentWithNoFieldsWithCommands.Cmd.ReceivedResponse> callback = null) { var commandRequest = new ComponentWithNoFieldsWithCommands.Cmd.Request(targetEntityId, request); SendCmdCommand(commandRequest, callback); }
public Event(global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload) { Payload = payload; }
public void SendEvtEvent(global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty evt) { var eventToSend = new ComponentWithNoFieldsWithEvents.Evt.Event(evt); ComponentUpdateSystem.SendEvent(eventToSend, EntityId); }