Пример #1
0
                public long SendCmdRequest(EntityId entityId, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload,
                                           uint?timeoutMillis = null, bool allowShortCircuiting = false, object context = null)
                {
                    if (!VerifyNotDisposed())
                    {
                        return(-1);
                    }

                    var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.Cmd>(entity);
                    var request = Cmd.CreateRequest(entityId, payload, timeoutMillis, allowShortCircuiting, context);

                    ecsCommandRequestSender.RequestsToSend.Add(request);
                    return(request.RequestId);
                }
                public long SendCmdRequest(EntityId entityId, global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty payload,
                                           Action <Cmd.ReceivedResponse> callback, uint?timeoutMillis = null, bool allowShortCircuiting = false)
                {
                    if (!IsValid())
                    {
                        return(-1);
                    }

                    var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.Cmd>(entity);
                    var request = Cmd.CreateRequest(entityId, payload, timeoutMillis, allowShortCircuiting, callback);

                    ecsCommandRequestSender.RequestsToSend.Add(request);
                    return(request.RequestId);
                }
Пример #3
0
                public void SendCmdRequest(EntityId entityId, global::Generated.Improbable.Gdk.Tests.ComponentsWithNoFields.Empty request)
                {
                    var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.Cmd>(entity);

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