11 #include "RNPlatform/Inc/MemoryTracking.h"
12 #ifndef _STATSERVER_STAT_H_
13 #define _STATSERVER_STAT_H_
14 #include "RNLobby/Inc/UserClient.h"
16 namespace RNReplicaNet
22 namespace StatServerSession
26 extern void ProcessPlayer(
const int loginID );
28 extern void ProcessGame(
void );
32 extern int GetResult(
const int loginID ,
const char *name ,
const int defaultValue );
33 extern float GetResult(
const int loginID ,
const char *name ,
const float defaultValue );
35 extern int GetVariable(
const int loginID ,
const int section ,
const UserClient::VariableAccess access ,
const char *name ,
const int defaultValue );
36 extern float GetVariable(
const int loginID ,
const int section ,
const UserClient::VariableAccess access ,
const char *name ,
const float defaultValue );
38 extern void SetVariable(
const int loginID ,
const int section ,
const UserClient::VariableAccess access ,
const char *name ,
const int value );
39 extern void SetVariable(
const int loginID ,
const int section ,
const UserClient::VariableAccess access ,
const char *name ,
const float value );
41 extern void ShiftVariables(
const int loginID ,
const int startSection ,
const UserClient::VariableAccess access ,
const char *name ,
const int numItems ,
const int sectionOffset);
43 extern int GetTimeAsSeconds(
void );
45 extern int CalcStatVariable(
const int loginID ,
const int section ,
const UserClient::VariableAccess access ,
const char *name ,
const int defaultValue );
46 extern float CalcStatVariable(
const int loginID ,
const int section ,
const UserClient::VariableAccess access ,
const char *name ,
const float defaultValue );
48 extern int CalcStatVariableResult(
const int loginID ,
const int section ,
const UserClient::VariableAccess access ,
const char *name ,
const int defaultValue );
49 extern float CalcStatVariableResult(
const int loginID ,
const int section ,
const UserClient::VariableAccess access ,
const char *name ,
const float defaultValue );