public long SendFirstCommandRequest(EntityId entityId, global::Improbable.Gdk.Tests.NonblittableTypes.FirstCommandRequest payload, uint?timeoutMillis = null, bool allowShortCircuiting = false, object context = null) { if (!VerifyNotDisposed()) { return(-1); } var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.FirstCommand>(entity); var request = FirstCommand.CreateRequest(entityId, payload, timeoutMillis, allowShortCircuiting, context); ecsCommandRequestSender.RequestsToSend.Add(request); return(request.RequestId); }
public long SendFirstCommandRequest(EntityId entityId, global::Improbable.Gdk.Tests.BlittableTypes.FirstCommandRequest payload, Action <FirstCommand.ReceivedResponse> callback, uint?timeoutMillis = null, bool allowShortCircuiting = false) { if (!IsValid()) { return(-1); } var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.FirstCommand>(entity); var request = FirstCommand.CreateRequest(entityId, payload, timeoutMillis, allowShortCircuiting, callback); ecsCommandRequestSender.RequestsToSend.Add(request); return(request.RequestId); }
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)); }