The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE3:CurrentGameDataStore (UT3)
Object >> UIRoot >> UIDataProvider >> UIDataStore >> UIDataStore_GameState >> CurrentGameDataStore |
Contents
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Provides data about the current game.
Copyright 1998-2007 Epic Games, Inc. All Rights Reserved
Properties
GameData
Type: GameInfoDataProvider
Modifiers: protected
The GameInfoDataProvider that manages access to the current gameinfo's exposed data.
PlayerData
Type: array<PlayerDataProvider>
Modifiers: protected
The data providers for all players in the current match
ProviderTypes
Type: GameDataProviderTypes
Modifiers: const
Default value:
Member | Value |
---|---|
GameDataProviderClass | Class'Engine.GameInfoDataProvider' |
PlayerDataProviderClass | Class'Engine.PlayerDataProvider' |
TeamDataProviderClass | Class'Engine.TeamDataProvider' |
TeamData
Type: array<TeamDataProvider>
Modifiers: protected
The data providers for all teams in the current match.
Default values
Property | Value |
---|---|
Tag | 'CurrentGame' |
Structs
GameDataProviderTypes
Modifiers: native
Contains the classes which should be used for instancing data providers.
- class<GameInfoDataProvider> GameDataProviderClass
- the class to use for the game info data provider
- class<PlayerDataProvider> PlayerDataProviderClass
- the class to use for the player data providers
- class<TeamDataProvider> TeamDataProviderClass
- the class to use for the team data provider.
Instance functions
AddPlayerDataProvider
Creates a PlayerDataProvider for the specified PlayerReplicationInfo, and adds it to the PlayerData array.
Parameters:
- PRI - the PlayerReplicationInfo to create the PlayerDataProvider for.
AddTeamDataProvider
Creates a TeamDataProvider for the specified TeamInfo, and adds it to the TeamData array.
Parameters:
- TI - the TeamInfo to create the TeamDataProvider for.
ClearDataProviders
Clears all data provider references.
CreateGameDataProvider
Creates the GameInfoDataProvider that will track all game info state data
FindPlayerDataProviderIndex
Returns the index into the PlayerData array for the PlayerDataProvider associated with the specified PlayerReplicationInfo.
Parameters:
- PRI - the PlayerReplicationInfo to search for
Returns:
- an index into the PlayerData array for the PlayerDataProvider associated with the specified PlayerReplicationInfo, or INDEX_NONE if no associated PlayerDataProvider was found
FindTeamDataProviderIndex
Returns the index into the TeamData array for the TeamDataProvider associated with the specified TeamInfo.
Parameters:
- TI - the TeamInfo to search for
Returns:
- an index into the TeamData array for the TeamDataProvider associated with the specified TeamInfo, or INDEX_NONE if no associated TeamDataProvider was found
GetPlayerDataProvider
Returns a reference to the PlayerDataProvider associated with the PRI specified.
Parameters:
- PRI - the PlayerReplicationInfo to search for
Returns:
- the PlayerDataProvider associated with the PRI specified, or None if there was no PlayerDataProvider for the PRI specified.
GetTeamDataProvider
Returns a reference to the TeamDataProvider associated with the TI specified.
Parameters:
- TI - the TeamInfo to search for
Returns:
- the TeamDataProvider associated with the TeamInfo specified, or None if there was no TeamDataProvider for the TeamInfo specified.
NotifyGameSessionEnded
Overrides: UIDataStore_GameState.NotifyGameSessionEnded
Called when the current map is being unloaded. Cleans up any references which would prevent garbage collection.
Returns:
- TRUE indicates that this data store should be automatically unregistered when this game session ends.
RemovePlayerDataProvider
Removes the PlayerDataProvider associated with the specified PlayerReplicationInfo.
Parameters:
- PRI - the PlayerReplicationInfo to remove the data provider for.
RemoveTeamDataProvider
Removes the TeamDataProvider associated with the specified TeamInfo.
Parameters:
- TI - the TeamInfo to remove the data provider for.