Esempio n. 1
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);
        }
Esempio n. 2
0
        public static FirstCommandResponse ToNative(global::Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse spatialType)
        {
            var nativeType = new FirstCommandResponse();

            nativeType.Response = spatialType.response;
            return(nativeType);
        }
Esempio n. 3
0
 public static Response CreateResponse(ReceivedRequest req, global::Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse payload)
 {
     return(new Response
     {
         RequestId = req.RequestId,
         Payload = payload,
         FailureMessage = null,
     });
 }
Esempio n. 4
0
 public void SendFirstCommandResponse(long requestId, global::Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse response)
 {
     commandSystem.SendResponse(new global::Improbable.Gdk.Tests.BlittableTypes.BlittableComponent.FirstCommand.Response(requestId, response));
 }
 public Response(long requestId, global::Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse payload)
 {
     RequestId      = requestId;
     Payload        = payload;
     FailureMessage = null;
 }
 public void SendResponse(global::Improbable.Gdk.Tests.BlittableTypes.FirstCommandResponse payload)
 {
     entityManager.GetComponentData <CommandResponders.FirstCommand>(entity).ResponsesToSend
     .Add(FirstCommand.CreateResponse(Request, payload));
 }