UE3:GameStatsFileReader (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
UDK Object >> GameplayEvents >> GameplayEventsReader >> GameStatsFileReader
Package:
UnrealEd

Streams gameplay events recorded during a session to disk

Properties

AllEvents

Type: array<pointer{FIGameStatEntry}>

Modifiers: const, private, native, transient

All events in the file

EventsOffset

Type: int


SessionData

Type: GameStatsDatabase.GameSessionEntry


TheGameState

Type: GameState

Modifiers: private


Structs

GameState

Modifiers: native

Contains some notion of game state while parsing the data

bool bIsMatchStarted
Has the match started
bool bIsRoundStarted
Has the round started
int RoundNumber
Current round number
array<TeamState> TeamStates
array<PlayerState> PlayerStates

PlayerState

Modifiers: native

Contains the notion of player state while parsing the data

int PlayerIndex
Player index related to player metadata array
int CurrentTeamIndex
Current team index (changes with TEAM_CHANGE event)

TeamState

Modifiers: native

int TeamIndex
Team Index related to team metadata array
array<int> PlayerIndices
Array of player indices that were ever on a given team

Native functions

CloseStatsFile

native function CloseStatsFile ()

Overrides: GameplayEventsReader.CloseStatsFile

Closes and deletes the archive that was being read from clearing all data stored within

OpenStatsFile

native function bool OpenStatsFile (string Filename)

Overrides: GameplayEventsReader.OpenStatsFile

Open a game stats file for reading

Parameters:

  • Filename - name of the file that will be open for serialization

Returns:

TRUE if successful, else FALSE