public static SecondCommandRequest ToNative(global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest spatialType) { var nativeType = new SecondCommandRequest(); nativeType.Field = spatialType.field; return(nativeType); }
public static global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest ToSpatial(global::Generated.Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest nativeType) { var spatialType = new global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest(); spatialType.field = nativeType.Field; return(spatialType); }
public ReceivedRequest(long requestId, string callerWorkerId, List <string> callerAttributeSet, global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest request) { RequestId = requestId; CallerWorkerId = callerWorkerId; CallerAttributeSet = callerAttributeSet; Payload = request; }
public Request( EntityId targetEntityId, global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest request, uint?timeoutMillis = null, bool allowShortCircuiting = false, object context = null) { TargetEntityId = targetEntityId; Payload = request; TimeoutMillis = timeoutMillis; AllowShortCircuiting = allowShortCircuiting; Context = context; }
public long SendSecondCommandRequest(EntityId entityId, global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest payload, Action <SecondCommand.ReceivedResponse> callback, uint?timeoutMillis = null, bool allowShortCircuiting = false) { if (!IsValid()) { return(-1); } var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.SecondCommand>(entity); var request = SecondCommand.CreateRequest(entityId, payload, timeoutMillis, allowShortCircuiting, callback); ecsCommandRequestSender.RequestsToSend.Add(request); return(request.RequestId); }
public long SendSecondCommandRequest(EntityId entityId, global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest payload, uint?timeoutMillis = null, bool allowShortCircuiting = false, object context = null) { if (!VerifyNotDisposed()) { return(-1); } var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.SecondCommand>(entity); var request = SecondCommand.CreateRequest(entityId, payload, timeoutMillis, allowShortCircuiting, context); ecsCommandRequestSender.RequestsToSend.Add(request); return(request.RequestId); }
public ReceivedResponse(EntityId entityId, string message, StatusCode statusCode, global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandResponse?response, global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest request, System.Object context, long requestId) { EntityId = entityId; Message = message; StatusCode = statusCode; ResponsePayload = response; RequestPayload = request; Context = context; RequestId = requestId; }
public static Request CreateRequest(EntityId targetEntityId, global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest 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 void SendSecondCommandCommand(EntityId targetEntityId, global::Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest request, Action <global::Improbable.Gdk.Tests.BlittableTypes.BlittableComponent.SecondCommand.ReceivedResponse> callback = null) { var commandRequest = new BlittableComponent.SecondCommand.Request(targetEntityId, request); SendSecondCommandCommand(commandRequest, callback); }