コード例 #1
0
 public void SendResponse(global::Generated.Improbable.Gdk.Tests.BlittableTypes.SecondCommandResponse payload)
 {
     entityManager.GetComponentData <CommandResponders.SecondCommand>(entity).ResponsesToSend
     .Add(SecondCommand.CreateResponse(Request, payload));
 }
コード例 #2
0
 public void SendResponseFailure(string message)
 {
     entityManager.GetComponentData <CommandResponders.SecondCommand>(entity).ResponsesToSend
     .Add(SecondCommand.CreateResponseFailure(Request, message));
 }
コード例 #3
0
                public void SendSecondCommandRequest(EntityId entityId, global::Generated.Improbable.Gdk.Tests.BlittableTypes.SecondCommandRequest request)
                {
                    var ecsCommandRequestSender = entityManager.GetComponentData <CommandSenders.SecondCommand>(entity);

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