Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE3:GameStatsDatabase (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> GameStatsDatabase
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 database

AllSessions

Type: Object.Map_Mirror{TMap<FString, struct FGameSessionEntry>}

Modifiers: const, private, native, transient

Mapping of all session query indices by session ID

DamageClassesBySessionID

Type: Object.Map_Mirror{TMap<FString, TArray<struct FDamageClassEventData> >}

Modifiers: const, private, native, transient

Mapping of recorded damage class metadata by session id

GameStatsFileReaderClassname

Type: string

Modifiers: config

Name of the class responsible for parsing stats file on disk

Default value: "UnrealEd.GameStatsFileReader"

MapNameToFilenameMapping

Type: Object.MultiMap_Mirror{TMultiMap<FString, FString>}

Modifiers: const, private, native, transient

Cached mapping of all files found on editor load to the maps they represent

PawnClassesBySessionID

Type: Object.Map_Mirror{TMap<FString, TArray<struct FPawnClassEventData> >}

Modifiers: const, private, native, transient

Mapping of recorded pawn class metadata by session id

PlayerListBySessionID

Type: Object.Map_Mirror{TMap<FString, TArray<struct FPlayerInformationNew> >}

Modifiers: const, private, native, transient

Mapping of recorded player metadata by session id

ProjectileClassesBySessionID

Type: Object.Map_Mirror{TMap<FString, TArray<struct FProjectileClassEventData> >}

Modifiers: const, private, native, transient

Mapping of recorded projectile class metadata by session id

RemoteDB

Type: pointer{struct FGameStatsRemoteDB}

Modifiers: const, private, native, transient

Pointer to the remote database interface

SessionFilenamesBySessionID

Type: Object.Map_Mirror{TMap<FString, FString>}

Modifiers: const, private, native, transient

Mapping of session id to local filename

SessionInfoBySessionID

Type: Object.Map_Mirror{TMap<FString, struct FGameSessionInformation>}

Modifiers: const, private, native, transient

Mapping of session metadata by session id

SupportedEventsBySessionID

Type: Object.Map_Mirror{TMap<FString, TArray<struct FGameplayEventMetaData> >}

Modifiers: const, private, native, transient

Mapping of recorded event metadata by session id

TeamListBySessionID

Type: Object.Map_Mirror{TMap<FString, TArray<struct FTeamInformation> >}

Modifiers: const, private, native, transient

Mapping of recorded team metadata by session id

WeaponClassesBySessionID

Type: Object.Map_Mirror{TMap<FString, TArray<struct FWeaponClassEventData> >}

Modifiers: const, private, native, transient

Mapping of recorded weapon class metadata by session id

Structs

GameSessionEntry

Modifiers: native

Organizational notion of a stats session

array<int> AllEvents 
Mapping of session ID to events recorded
Object.MultiMap_Mirror{TMultiMap<INT, INT>} EventsByPlayer 
Mapping of player index to events recorded
Object.MultiMap_Mirror{TMultiMap<INT, INT>} EventsByRound 
Mapping of round index to events recorded
Object.MultiMap_Mirror{TMultiMap<INT, INT>} EventsByType 
Mapping of event index to events of that type
Object.MultiMap_Mirror{TMultiMap<INT, INT>} EventsByTeam 
Mapping of team index to events recorded

GameStatsRecordSet

Modifiers: native

Implementation of a query result set

array<int> LocalRecordSet 
array<int> RemoteRecordSet 

GameStatsSearchQuery

Modifiers: native

The struct containing the current notion of a game stats database query

int StartTime 
Min time in query
int EndTime 
Max time in query
array<string> SessionIDs 
Array of relevant session IDs
array<int> EventIDs 
Array of relevant event IDs
array<SessionIndexPair> TeamIndices 
Array of relevant team indices
array<SessionIndexPair> PlayerIndices 
Array of relevant player indices

IGameStatEntry

Modifiers: native

Base implementation of a "database" entry

string EventName 
int EventID 
float EventTime 

SessionIndexPair

Modifiers: native

Representation of some session/value pair for database queries

string SessionId 
The session this index is relevant for
int Index 
The index we're searching for

Native functions

CacheLocalFilenames

native function CacheLocalFilenames ()


ClearDatabase

native function ClearDatabase ()


GetDamageListBySessionID

native function GetDamageListBySessionID (const string SessionID, out array<GameplayEvents.DamageClassEventDataOutDamageList)

Get a list of the recorded damage types by session ID

Parameters:

  • SessionID - session ID to get the list for
  • PlayerList - output array of damage types

GetEventCountByType

native function int GetEventCountByType (const string SessionID, int EventID)


GetEventsListBySessionID

native function GetEventsListBySessionID (const string SessionID, out array<GameplayEvents.GameplayEventMetaDataOutGameplayEvents)

Get a list of the recorded events by session ID

Parameters:

  • SessionID - session ID to get the list for
  • PlayerList - output array of events

GetPawnListBySessionID

native function GetPawnListBySessionID (const string SessionID, out array<GameplayEvents.PawnClassEventDataOutPawnList)

Get a list of the recorded pawn types by session ID

Parameters:

  • SessionID - session ID to get the list for
  • PlayerList - output array of pawn types

GetPlayersListBySessionID

native function GetPlayersListBySessionID (const string SessionID, out array<GameplayEvents.PlayerInformationNewOutPlayerList)

Get a list of the players by session ID

Parameters:

  • SessionID - session ID to get the list for
  • PlayerList - output array of players

GetProjectileListBySessionID

native function GetProjectileListBySessionID (const string SessionID, out array<GameplayEvents.ProjectileClassEventDataOutProjectileList)

Get a list of the recorded projectiles by session ID

Parameters:

  • SessionID - session ID to get the list for
  • PlayerList - output array of projectiles

GetSessionIDs

native function GetSessionIDs (out array<stringSessionIDs)


GetSessionInfoBySessionID

native function GetSessionInfoBySessionID (const string SessionID, out GameplayEvents.GameSessionInformation OutSessionInfo)

Get a list of the players by session ID

Parameters:

  • SessionID - session ID to get the list for
  • PlayerList - output array of players

GetTeamListBySessionID

native function GetTeamListBySessionID (const string SessionID, out array<GameplayEvents.TeamInformationOutTeamList)

Get a list of the teams by session ID

Parameters:

  • SessionID - session ID to get the list for
  • PlayerList - output array of teams

GetWeaponListBySessionID

native function GetWeaponListBySessionID (const string SessionID, out array<GameplayEvents.WeaponClassEventDataOutWeaponList)

Get a list of the recorded weapons by session ID

Parameters:

  • SessionID - session ID to get the list for
  • PlayerList - output array of weapons

Init

native function Init (const string MapName)


UploadSession

native function bool UploadSession (const string SessionID)