Available in the Gaming / Industries Circle
quantum | v2 switch to V1  

API-TournamentMatch

Namespace: Gimmebreak.Backbone.Tournaments

Inheritance: Object → TournamentMatch

Tournament match represents series of games with same opponents within a tournament round. Considering 1v1 scenarion playing a best of three then match would contain minimum 2 games and maximum 3 to determine a winner. Tournament match contains information about all users that should be present in a match along with score, points, etc.

public class TournamentMatch

內容

Constructors

TournamentMatch()

Create an instance of tournament match.

public TournamentMatch()

回到首頁
 

Properties

CheckedInUserCount

Current number of checked in users.

public int CheckedInUserCount
{
    get;
    set;
}

回到首頁
 

CurrentGameCount

Current number of games that have been already played (this includes also auto win games).

public int CurrentGameCount
{
    get;
    set;
}

回到首頁
 

Deadline

This is total series deadline after which winner has to be determined.

public DateTime Deadline
{
    get;
    set;
}

回到首頁
 

FullyCheckedInTeamCount

Current number of fully checked in teams (all party memebers have checked in for match).

public int FullyCheckedInTeamCount
{
    get;
    set;
}

回到首頁
 

GameSessions

List of finished game sessions. List has to be loaded on demand. To populate game sessions use LoadTournamentMatchGameSessions(TournamentMatch) on backbone client.

public List<GameSession> GameSessions
{
    get;
    set;
}

回到首頁
 

GroupId

Determine match group id (Only used in tournament phases with groups).

public int GroupId
{
    get;
    set;
}

回到首頁
 

Id

Unique match id.

public long Id
{
    get;
    set;
}

回到首頁
 

MatchId

Match id is used for brackets, Id is only unique for each round.

public int MatchId
{
    get;
    set;
}

回到首頁
 

MaxGameCount

Maximum number of games that can be played for this match.

public int MaxGameCount
{
    get;
    set;
}

回到首頁
 

MinCheckinsPerTeam

Determine minimum number of checkins per team to consider team as partially checked in.

public int MinCheckinsPerTeam
{
    get;
    set;
}

回到首頁
 

PartiallyCheckedInTeamCount

Current number of partially checked in teams (minimum number of party memebers have checked in for match).

public int PartiallyCheckedInTeamCount
{
    get;
    set;
}

回到首頁
 

PhaseId

Determine phase id of this match.

public int PhaseId
{
    get;
    set;
}

回到首頁
 

RoundId

Determine round id of this match.

public int RoundId
{
    get;
    set;
}

回到首頁
 

Secret

Random 16 char value, only users allowed to join match (players/admins) get this value otherwise null (Can be used as a password for match room).

public string Secret
{
    get;
    set;
}

回到首頁
 

Status

Determine current match status.

public TournamentMatchStatus Status
{
    get;
    set;
}

回到首頁
 

Users

List of match users.

public List<TournamentMatch.User> Users
{
    get;
    set;
}

回到首頁
 

WinScore

Required win score for this match.

public int WinScore
{
    get;
    set;
}

回到首頁
 

Methods

GetCheckInTeamUsers()

Get only users of teams who at least partially checked in.

public System.Collections.Generic.IEnumerable<Gimmebreak.Backbone.Tournaments.TournamentMatch.User> GetCheckInTeamUsers()

Returns

Checked in users.

回到首頁
 

GetMatchUserById(long)

Get match user by id.

public Gimmebreak.Backbone.Tournaments.TournamentMatch.User GetMatchUserById(long userId)

Parameters

  • userId: User id.

Returns

Match user.

回到首頁
 

IsTeamFullyCheckedIn(TournamentMatch.User)

Check if whole team is checked in.

public bool IsTeamFullyCheckedIn(Gimmebreak.Backbone.Tournaments.TournamentMatch.User teamMember)

Parameters

  • teamMember: Team member.

Returns

True if whole team is checked in, othwrwise false.

回到首頁
 

IsTeamFullyCheckedIn(byte)

Check if whole team is checked in.

public bool IsTeamFullyCheckedIn(byte teamId)

Parameters

  • teamId: Team id

Returns

True if whole team is checked in, othwrwise false.

回到首頁
 

IsTeamPartiallyCheckedIn(TournamentMatch.User)

Check if team is partially checked in.

public bool IsTeamPartiallyCheckedIn(Gimmebreak.Backbone.Tournaments.TournamentMatch.User teamMember)

Parameters

  • teamMember: Team member.

Returns

True if team is partially checked in, othwrwise false.

回到首頁
 

IsTeamPartiallyCheckedIn(byte)

Check if team is partially checked in.

public bool IsTeamPartiallyCheckedIn(byte teamId)

Parameters

  • teamId: Team id

Returns

True if team is partially checked in, othwrwise false.


To Document Top