public long SendSecondCommandRequest(EntityId entityId, global::Improbable.Gdk.Tests.NonblittableTypes.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 long SendSecondCommandRequest(EntityId entityId, global::Improbable.Gdk.Tests.NonblittableTypes.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); }