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

            if (this._argsAsync == null)
            {
                this._argsAsync = LoginUtils.GetPlayerDataAsync(this.Database);
            }
        }
예제 #2
0
 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());
 }
예제 #3
0
 public static Task <T> AsGuestAsync <T>(this IPlayerIOGame <T> playerIOGame)
 {
     return(LoginUtils.GuestLoginAsync(playerIOGame.GameId)
            .Then(task => playerIOGame.Login.WithClient(task.Result))
            .ToSafeTask());
 }
예제 #4
0
 public virtual Task <VersionLoginClient> WithAutomaticVersionAsync()
 {
     return(LoginUtils.GetVersionAsync(this.Client)
            .Then(task => this.WithVersion(task.Result))
            .ToSafeTask());
 }
예제 #5
0
 internal LoginClient([NotNull] IConnectionManager connectionManager, [NotNull] Client client)
     : this(connectionManager, client, LoginUtils.GetConnectionArgsAsync(client))
 {
 }