public static Response CreateResponse(ReceivedRequest req, global::Generated.Improbable.Gdk.Tests.NonblittableTypes.SecondCommandResponse payload)
 {
     return(new Response
     {
         RequestId = req.RequestId,
         Payload = payload,
         FailureMessage = null,
     });
 }
 public static Response CreateResponse(ReceivedRequest req, global::Generated.Improbable.Gdk.Tests.NonblittableTypes.SecondCommandResponse payload)
 {
     return(new Response(req, payload, null));
 }
Пример #3
0
 public void SendResponse(global::Generated.Improbable.Gdk.Tests.NonblittableTypes.SecondCommandResponse payload)
 {
     entityManager.GetComponentData <CommandResponders.SecondCommand>(entity).ResponsesToSend
     .Add(SecondCommand.CreateResponse(Request, payload));
 }
Пример #4
0
        public static global::Improbable.Gdk.Tests.NonblittableTypes.SecondCommandResponse ToSpatial(global::Generated.Improbable.Gdk.Tests.NonblittableTypes.SecondCommandResponse nativeType)
        {
            var spatialType = new global::Improbable.Gdk.Tests.NonblittableTypes.SecondCommandResponse();

            spatialType.response = nativeType.Response;
            return(spatialType);
        }
Пример #5
0
 internal OutgoingResponse(uint requestId,
                           global::Generated.Improbable.Gdk.Tests.NonblittableTypes.SecondCommandResponse response)
 {
     this.RequestId   = requestId;
     this.RawResponse = response;
 }
Пример #6
0
 public void SendSecondCommandResponse(global::Generated.Improbable.Gdk.Tests.NonblittableTypes.SecondCommandResponse response)
 {
     Translation.SecondCommandResponses.Add(
         new OutgoingResponse(RequestId, response));
 }