public static Response CreateResponse(ReceivedRequest req, global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload)
 {
     return(new Response
     {
         RequestId = req.RequestId,
         Payload = payload,
         FailureMessage = null,
     });
 }
 public ReceivedRequest(uint requestId,
                        string callerWorkerId,
                        List <string> callerAttributeSet,
                        global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request)
 {
     RequestId          = requestId;
     CallerWorkerId     = callerWorkerId;
     CallerAttributeSet = callerAttributeSet;
     Payload            = request;
 }
 public Request(EntityId targetEntityId,
                global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request,
                uint?timeoutMillis        = null,
                bool allowShortCircuiting = false)
 {
     TargetEntityId       = targetEntityId;
     Payload              = request;
     TimeoutMillis        = timeoutMillis;
     AllowShortCircuiting = allowShortCircuiting;
 }
 public ReceivedResponse(EntityId entityId,
                         string message,
                         StatusCode statusCode,
                         global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty?response,
                         global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request)
 {
     EntityId        = entityId;
     Message         = message;
     StatusCode      = statusCode;
     ResponsePayload = response;
     RequestPayload  = request;
 }
 public static Request CreateRequest(EntityId targetEntityId,
                                     global::Generated.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::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty?response,
                         global::Generated.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 static Response CreateResponse(ReceivedRequest req, global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload)
 {
     return(new Response(req, payload, null));
 }
                public void SendEvt(global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload)
                {
                    var sender = EntityManager.GetComponentData <EventSender.Evt>(Entity);

                    sender.Events.Add(payload);
                }
 public void OnEvtEvent(global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload)
 {
     GameObjectDelegates.DispatchWithErrorHandling(payload, EvtDelegates, logDispatcher);
 }
Exemplo n.º 10
0
                public void SendCmdRequest(EntityId entityId, global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request)
                {
                    var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.Cmd>(entity);

                    ecsCommandRequestSender.RequestsToSend.Add(Cmd.CreateRequest(entityId, request));
                }
Exemplo n.º 11
0
 public void SendResponse(global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload)
 {
     entityManager.GetComponentData <CommandResponders.Cmd>(entity).ResponsesToSend
     .Add(Cmd.CreateResponse(Request, payload));
 }