Example #1
0
 public static Response CreateResponse(ReceivedRequest req, global::Generated.Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse payload)
 {
     return(new Response
     {
         RequestId = req.RequestId,
         Payload = payload,
         FailureMessage = null,
     });
 }
Example #2
0
        public static global::Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse ToSpatial(global::Generated.Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse nativeType)
        {
            var spatialType = new global::Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse();

            spatialType.response = nativeType.Response;
            return(spatialType);
        }
Example #3
0
 public void SendFirstCommandResponse(global::Generated.Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse response)
 {
     Translation.FirstCommandResponses.Add(
         new OutgoingResponse(RequestId, response));
 }
Example #4
0
 internal OutgoingResponse(uint requestId,
                           global::Generated.Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse response)
 {
     this.RequestId   = requestId;
     this.RawResponse = response;
 }
 public static Response CreateResponse(ReceivedRequest req, global::Generated.Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse payload)
 {
     return(new Response(req, payload, null));
 }
Example #6
0
 public void SendResponse(global::Generated.Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse payload)
 {
     entityManager.GetComponentData <CommandResponders.FirstCommand>(entity).ResponsesToSend
     .Add(FirstCommand.CreateResponse(Request, payload));
 }