I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX
UE3:CurrentGameDataStore (UDK)
Object >> UIRoot >> UIDataProvider >> UIDataStore >> UIDataStore_GameState >> CurrentGameDataStore |
Contents
- 1 Properties
- 2 Structs
- 3 Delegates
- 4 Instance functions
- 4.1 AddPlayerDataProvider
- 4.2 AddTeamDataProvider
- 4.3 ClearDataProviders
- 4.4 CreateGameDataProvider
- 4.5 FindPlayerDataProviderIndex
- 4.6 FindTeamDataProviderIndex
- 4.7 GetPlayerDataProvider
- 4.8 GetTeamDataProvider
- 4.9 NotifyGameSessionEnded
- 4.10 NotifyPlayersChanged
- 4.11 NotifyTeamChange
- 4.12 PlayerDataProviderPropertyChange
- 4.13 RefreshPlayerDataProviders
- 4.14 RefreshTeamDataProviders
- 4.15 RemovePlayerDataProvider
- 4.16 RemoveTeamDataProvider
- 4.17 TeamDataProviderPropertyChange
- 4.18 Timer
- Package:
- Engine
- Implemented interfaces:
- UIListElementProvider
- This class in other games:
- UT3
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.
Properties[edit]
bRefreshPlayerDataProviders[edit]
Type: bool
Modifiers: protected, transient
Indicates that one or more players have changed or been updated.
bRefreshTeamDataProviders[edit]
Type: bool
Modifiers: protected, transient
Indicates that one or more player's teams have changed.
GameData[edit]
Type: GameInfoDataProvider
Modifiers: protected
The GameInfoDataProvider that manages access to the current gameinfo's exposed data.
PlayerData[edit]
Type: array<PlayerDataProvider>
Modifiers: protected
The data providers for all players in the current match
ProviderTypes[edit]
Type: GameDataProviderTypes
Modifiers: const
Default value:
Member | Value |
---|---|
GameDataProviderClass | Class'Engine.GameInfoDataProvider' |
PlayerDataProviderClass | Class'Engine.PlayerDataProvider' |
TeamDataProviderClass | Class'Engine.TeamDataProvider' |
TeamData[edit]
Type: array<TeamDataProvider>
Modifiers: protected
The data providers for all teams in the current match.
Default values[edit]
Property | Value |
---|---|
Tag | 'CurrentGame' |
Structs[edit]
GameDataProviderTypes[edit]
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.
Delegates[edit]
OnAddTeamProvider[edit]
Instance functions[edit]
AddPlayerDataProvider[edit]
Creates a PlayerDataProvider for the specified PlayerReplicationInfo, and adds it to the PlayerData array.
Parameters:
- PRI - the PlayerReplicationInfo to create the PlayerDataProvider for.
AddTeamDataProvider[edit]
Creates a TeamDataProvider for the specified TeamInfo, and adds it to the TeamData array.
Parameters:
- TI - the TeamInfo to create the TeamDataProvider for.
ClearDataProviders[edit]
Clears all data provider references.
CreateGameDataProvider[edit]
Creates the GameInfoDataProvider that will track all game info state data
FindPlayerDataProviderIndex[edit]
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[edit]
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[edit]
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[edit]
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[edit]
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.
NotifyPlayersChanged[edit]
Sets a flag indicating that the array of PlayerDataProviders has changed and subscribers should be notified
Note: not yet implemented
NotifyTeamChange[edit]
Called whenever a player changes team or something affecting the team. Issues a request for the TeamDataProviders to update their cached lists of players.
PlayerDataProviderPropertyChange[edit]
Handler for the PlayerDataProvider's OnDataProviderPropertyChange delegate. Forwards the notification to the data store's notification delegates.
Parameters:
- SourceProvider - the data provider that generated the notification
- PropTag - the property that changed
RefreshPlayerDataProviders[edit]
Refreshes any subscribers bound to the array of PlayerDataProviders.
Note: not yet implemented.
RefreshTeamDataProviders[edit]
Instructs the team data providers to update their cached lists of players.
RemovePlayerDataProvider[edit]
Removes the PlayerDataProvider associated with the specified PlayerReplicationInfo.
Parameters:
- PRI - the PlayerReplicationInfo to remove the data provider for.
RemoveTeamDataProvider[edit]
Removes the TeamDataProvider associated with the specified TeamInfo.
Parameters:
- TI - the TeamInfo to remove the data provider for.
TeamDataProviderPropertyChange[edit]
Handler for the TeamDataProvider's OnDataProviderPropertyChange delegate. Forwards the notification to the data store's notification delegates.
Parameters:
- SourceProvider - the data provider that generated the notification
- PropTag - the property that changed
Timer[edit]
Called by the GameReplicationInfo each time it receives a call to Timer()