SwiftlyS2

IGameService

Interface IGameService

Namespace: SwiftlyS2.Shared.Services

Assembly: SwiftlyS2.CS2.dll

public interface IGameService

Properties

MatchData

Gets a read-only reference to the current match data.

ref readonly CCSMatch MatchData { get; }
Property Value

Methods

AddCTBonusPoints(int)

Adds bonus points to the Counter-Terrorist team.

void AddCTBonusPoints(int points)
Parameters
  • points int — Bonus points to add.

AddCTScore(int)

Adds score to the Counter-Terrorist team.

void AddCTScore(int score)
Parameters
  • score int — Score to add.

AddCTWins(int)

Adds wins to the Counter-Terrorist team.

void AddCTWins(int numWins)
Parameters
  • numWins int — Number of wins to add.

AddTerroristBonusPoints(int)

Adds bonus points to the Terrorist team.

void AddTerroristBonusPoints(int points)
Parameters
  • points int — Bonus points to add.

AddTerroristScore(int)

Adds score to the Terrorist team.

void AddTerroristScore(int score)
Parameters
  • score int — Score to add.

AddTerroristWins(int)

Adds wins to the Terrorist team.

void AddTerroristWins(int numWins)
Parameters
  • numWins int — Number of wins to add.

GetWinningTeam()

Gets the winning team ID.

int GetWinningTeam()
Returns
  • int — Team ID of the winner, or 0 if tie.

GoToOvertime(int)

Enters overtime mode.

void GoToOvertime(int numOvertimesToAdd = 1)
Parameters
  • numOvertimesToAdd int — Number of overtime periods to add.

IncrementRound(int)

Increments the round count.

void IncrementRound(int numRounds = 1)
Parameters
  • numRounds int — Number of rounds to increment.

Reset()

Resets all match data to initial state.

void Reset()

SetPhase(GamePhase)

Sets the current game phase.

void SetPhase(GamePhase phase)
Parameters

SwapTeamScores()

Swaps the team scores between Terrorist and Counter-Terrorist.

void SwapTeamScores()

On this page