public void RequestPlayerCreation(byte[] serializedArguments = null)
        {
            serializedArgumentsCache = serializedArguments;
            var request             = new CreatePlayerRequestType(serializedArguments);
            var createPlayerRequest = new PlayerCreator.CreatePlayer.Request(playerCreatorEntityId, request);

            commandSystem.SendCommand(createPlayerRequest);
        }
Exemplo n.º 2
0
        public void SendCreatePlayerCommand(EntityId targetEntityId, global::Improbable.Gdk.PlayerLifecycle.CreatePlayerRequest request, Action <global::Improbable.Gdk.PlayerLifecycle.PlayerCreator.CreatePlayer.ReceivedResponse> callback = null)
        {
            var commandRequest = new PlayerCreator.CreatePlayer.Request(targetEntityId, request);

            SendCreatePlayerCommand(commandRequest, callback);
        }