Пример #1
0
 internal OutgoingRequest(long targetEntityId, long senderEntityId,
                          global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest request)
 {
     this.TargetEntityId = targetEntityId;
     this.SenderEntityId = senderEntityId;
     this.RawRequest     = request;
 }
Пример #2
0
        public static void SendFirstCommandRequest(this CommandRequestSender <SpatialOSNonBlittableComponent> commandRequestSender,
                                                   long targetEntityId, global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest request)
        {
            var translation = NonBlittableComponent.Translation.GetTranslation(commandRequestSender.InternalHandleToTranslation);

            translation.FirstCommandRequests.Add(new NonBlittableComponent.FirstCommand.OutgoingRequest(targetEntityId,
                                                                                                        commandRequestSender.EntityId, request));
        }
 public ReceivedRequest(uint requestId,
                        string callerWorkerId,
                        List <string> callerAttributeSet,
                        global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest request)
 {
     RequestId          = requestId;
     CallerWorkerId     = callerWorkerId;
     CallerAttributeSet = callerAttributeSet;
     Payload            = request;
 }
 public Request(EntityId targetEntityId,
                global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest 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.NonblittableTypes.FirstCommandResponse?response,
                         global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest request)
 {
     EntityId        = entityId;
     Message         = message;
     StatusCode      = statusCode;
     ResponsePayload = response;
     RequestPayload  = request;
 }
Пример #6
0
 internal Request(uint requestId,
                  Translation translation,
                  string callerWorkerId,
                  List <string> callerAttributeSet,
                  global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest request)
 {
     this.RequestId          = requestId;
     this.Translation        = translation;
     this.CallerWorkerId     = callerWorkerId;
     this.CallerAttributeSet = callerAttributeSet;
     this.RawRequest         = request;
 }
Пример #7
0
 internal Response(long entityId,
                   string message,
                   CommandStatusCode statusCode,
                   global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandResponse?response,
                   global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest request)
 {
     this.EntityId    = entityId;
     this.Message     = message;
     this.StatusCode  = statusCode;
     this.RawResponse = response;
     this.RawRequest  = request;
 }
 public static Request CreateRequest(EntityId targetEntityId,
                                     global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest 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.NonblittableTypes.FirstCommandResponse?response,
                         global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest request,
                         System.Object context,
                         long requestId)
 {
     EntityId        = entityId;
     Message         = message;
     StatusCode      = statusCode;
     ResponsePayload = response;
     RequestPayload  = request;
     Context         = context;
     RequestId       = requestId;
 }
Пример #10
0
        public static global::Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest ToSpatial(global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest nativeType)
        {
            var spatialType = new global::Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest();

            spatialType.field = nativeType.Field;
            return(spatialType);
        }
Пример #11
0
                public void SendFirstCommandRequest(EntityId entityId, global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest request)
                {
                    var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.FirstCommand>(entity);

                    ecsCommandRequestSender.RequestsToSend.Add(FirstCommand.CreateRequest(entityId, request));
                }