Beispiel #1
0
    void onTournamentSelected(TournamentInfoField sender)
    {
        OnlineTournamentHandler.Initialize(sender.Data);
        RequestCaller.RequestJoinToutnament(sender.Data.Alias);

        disableEvents();
        GetTree().ChangeScene("Scenes/ChooseGameModeScene.tscn");
    }
Beispiel #2
0
    void onConfirmButtonPressed()
    {
        if (!controlInputCorrectness())
        {
            return;
        }

        string alias       = aliasField.Text;
        int    maxRate     = (int)maxRateField.Value;
        int    memberCount = (int)memberCountField.Value;
        string schemeName  = getSelectedSchemeName();

        Tournament data = new Tournament(alias, maxRate, memberCount, schemeName);

        OnlineTournamentHandler.Initialize(data);
        RequestCaller.RequestCreateTournament(data);
        RequestCaller.RequestJoinToutnament(data.Alias);

        disableEvents();
        GetTree().ChangeScene("Scenes/CreateTeamScene.tscn");
    }