internal OutgoingRequest(long targetEntityId, long senderEntityId, global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest request) { this.TargetEntityId = targetEntityId; this.SenderEntityId = senderEntityId; this.RawRequest = request; }
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; }
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; }
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; }
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); }
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)); }