Difference between revisions of "TGame"

From Soldat Community Wiki
Jump to: navigation, search
m (Members: Removed duplicate entry `GameStyle`)
 
(7 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
Represents a game state and configuration.
 
Represents a game state and configuration.
  
  '''This class is assigned to global variable "Game"'''
+
  '''This class is assigned to global variable "[[Global_Variables.Game|Game]]"'''
  
 
  user constructable: '''NO'''
 
  user constructable: '''NO'''
Line 13: Line 13:
 
{| class="wikitable"  
 
{| class="wikitable"  
 
|-
 
|-
! Member declaration !! Access mode
+
! Member declaration !! Access mode !! SS Version
 
|-
 
|-
 
| procedure [[TGame.Shutdown|Shutdown]]
 
| procedure [[TGame.Shutdown|Shutdown]]
Line 109: Line 109:
 
| property [[TGame.Password|Password]]: string
 
| property [[TGame.Password|Password]]: string
 
| align="center" | RW
 
| align="center" | RW
 +
|-
 +
| property [[TGame.AdminPassword|AdminPassword]]: string
 +
| align="center" | RW || 2.7.9
 
|-
 
|-
 
| property [[TGame.VotePercent|VotePercent]]: Single
 
| property [[TGame.VotePercent|VotePercent]]: Single
Line 127: Line 130:
 
| property [[TGame.TickThreshold|TickThreshold]]: LongInt
 
| property [[TGame.TickThreshold|TickThreshold]]: LongInt
 
| align="center" | RW
 
| align="center" | RW
 +
|-
 +
| property [[TGame.TickCount|TickCount]]: LongInt
 +
| align="center" | R
 +
| 2.8.0.rc1
 
|-
 
|-
 
| property [[TGame.Teams|Teams]][ID: Byte]: [[TTeam]]
 
| property [[TGame.Teams|Teams]][ID: Byte]: [[TTeam]]
 
| align="center" | R
 
| align="center" | R
 +
|-
 +
| property [[TGame.CurrentMap|CurrentMap]]: string
 +
| align="center" | R
 +
| 2.7.8.b1
 +
|-align="center" | R
 +
|-
 +
| property [[TGame.MapsList|MapsList]]: [[TMapsList]]
 +
| align="center" | R
 +
| 2.7.8.b1
 +
|-
 +
| property [[TGame.BanLists|BanLists]]: [[TBanLists]]
 +
| align="center" | R
 +
| 2.7.9
 
|-
 
|-
 
| property [[TGame.OnClockTick|OnClockTick]]: [[TOnClockTickEvent]]
 
| property [[TGame.OnClockTick|OnClockTick]]: [[TOnClockTickEvent]]
Line 142: Line 162:
 
| property [[TGame.OnRequest|OnRequest]]: [[TOnRequestEvent]]
 
| property [[TGame.OnRequest|OnRequest]]: [[TOnRequestEvent]]
 
| align="center" | RW
 
| align="center" | RW
 +
|-
 +
| property [[TGame.OnAdminCommand|OnAdminCommand]]: [[TOnAdminCommandEvent]]
 +
| align="center" | RW
 +
| 2.7.8.b1
 +
|-
 +
| property [[TGame.OnTCPMessage|OnTCPMessage]]: [[TOnTCPMessageEvent]]
 +
| align="center" | RW
 +
| 2.7.8.b1
 +
|-
 +
| property [[TGame.OnAdminConnect|OnAdminConnect]]: [[TOnAdminConnectEvent]]
 +
| align="center" | RW
 +
| 2.7.8.b1
 +
|-
 +
| property [[TGame.OnAdminDisconnect|OnAdminDisconnect]]: [[TOnAdminDisconnectEvent]]
 +
| align="center" | RW
 +
| 2.7.8.b1
 +
|-
 +
| property [[TGame.OnSteamAuth|OnSteamAuth]]: [[TOnSteamAuthEvent]]
 +
| align="center" | RW
 +
| 2.8.2 steam version
 +
|-
 
|}
 
|}
  
 
[[Category:Classes]][[Category:TGame]]
 
[[Category:Classes]][[Category:TGame]]

Latest revision as of 23:39, 6 May 2020

Inheritance

Description

Represents a game state and configuration.

This class is assigned to global variable "Game"
user constructable: NO
user destructable: NO

Members

Member declaration Access mode SS Version
procedure Shutdown
procedure StartVoteKick(ID: Byte; Reason: string)
procedure StartVoteMap(Name: string)
procedure Restart
function LoadWeap(WeaponMod: string): Boolean
function LoadCon(ConfigFile: string): Boolean
function LoadList(MapsList: string): Boolean
procedure LobbyRegister
property GameStyle: Byte RW
property MaxPlayers: Byte RW
property NextMap: string R
property NumBots: Byte R
property NumPlayers: Byte R
property Spectators: Byte R
property ScoreLimit: Byte RW
property ServerIP: string R
property ServerName: string R
property ServerPort: Word R
property ServerVersion: string R
property ServerInfo: string R
property Gravity: Single RW
property Paused: Boolean RW
property RespawnTime: LongInt RW
property MinRespawnTime: LongInt RW
property MaxRespawnTime: LongInt RW
property MaxGrenades: Byte RW
property Bonus: Byte RW
property TimeLimit: LongInt RW
property TimeLeft: LongInt R
property FriendlyFire: Boolean RW
property Password: string RW
property AdminPassword: string RW 2.7.9
property VotePercent: Single RW
property Realistic: Boolean RW
property Survival: Boolean RW
property Advance: Boolean RW
property Balance: Boolean RW
property TickThreshold: LongInt RW
property TickCount: LongInt R 2.8.0.rc1
property Teams[ID: Byte]: TTeam R
property CurrentMap: string R 2.7.8.b1
property MapsList: TMapsList R 2.7.8.b1
property BanLists: TBanLists R 2.7.9
property OnClockTick: TOnClockTickEvent RW
property OnJoin: TOnJoinGameEvent RW
property OnLeave: TOnLeaveGameEvent RW
property OnRequest: TOnRequestEvent RW
property OnAdminCommand: TOnAdminCommandEvent RW 2.7.8.b1
property OnTCPMessage: TOnTCPMessageEvent RW 2.7.8.b1
property OnAdminConnect: TOnAdminConnectEvent RW 2.7.8.b1
property OnAdminDisconnect: TOnAdminDisconnectEvent RW 2.7.8.b1
property OnSteamAuth: TOnSteamAuthEvent RW 2.8.2 steam version