Beispiel #1
0
        internal void InitJoin()
        {
            Scheduler.Of(this._botBitsClient).InitScheduler(false);

            if (this._argsAsync == null)
            {
                this._argsAsync = LoginUtils.GetPlayerDataAsync(this.Database);
            }
        }
 public static Task <T> WithArmorGamesAsync <T>(this IPlayerIOGame <T> playerIOGame, string userId, string token)
 {
     return(LoginUtils.ArmorGamesRoomLoginAsync(playerIOGame.GameId, userId, token)
            .Then(task => playerIOGame.Login.WithClient(task.Result))
            .ToSafeTask());
 }
 public static Task <T> AsGuestAsync <T>(this IPlayerIOGame <T> playerIOGame)
 {
     return(LoginUtils.GuestLoginAsync(playerIOGame.GameId)
            .Then(task => playerIOGame.Login.WithClient(task.Result))
            .ToSafeTask());
 }
Beispiel #4
0
 public virtual Task <VersionLoginClient> WithAutomaticVersionAsync()
 {
     return(LoginUtils.GetVersionAsync(this.Client)
            .Then(task => this.WithVersion(task.Result))
            .ToSafeTask());
 }
Beispiel #5
0
 internal LoginClient([NotNull] IConnectionManager connectionManager, [NotNull] Client client)
     : this(connectionManager, client, LoginUtils.GetConnectionArgsAsync(client))
 {
 }