#include <MultiplayerStatSystemInterface.h>
Inherited by Multiplayer::MultiplayerStatSystemComponent.
Provides a high level stat system for Multiplayer gem and projects.
◆ DeclareStat()
virtual void Multiplayer::IMultiplayerStatSystem::DeclareStat |
( |
int |
uniqueGroupId, |
|
|
int |
uniqueStatId, |
|
|
const char * |
statName |
|
) |
| |
|
pure virtual |
Declares a stat belonging to an existing group.
- Parameters
-
uniqueGroupId | a group id already declared with DECLARE_PERFORMANCE_STAT_GROUP |
uniqueStatId | a stat id already declared with DECLARE_PERFORMANCE_STAT |
statName | name of the stat, this does NOT take the ownership of the string |
Implemented in Multiplayer::MultiplayerStatSystemComponent.
◆ DeclareStatGroup()
virtual void Multiplayer::IMultiplayerStatSystem::DeclareStatGroup |
( |
int |
uniqueGroupId, |
|
|
const char * |
groupName |
|
) |
| |
|
pure virtual |
Declares a stat group with a name using a unique id. It's recommended to use DECLARE_PERFORMANCE_STAT_GROUP macro instead.
- Parameters
-
uniqueGroupId | a unique id for a group of stats |
groupName | a name for the group |
Implemented in Multiplayer::MultiplayerStatSystemComponent.
◆ IncrementStat()
virtual void Multiplayer::IMultiplayerStatSystem::IncrementStat |
( |
int |
uniqueStatId | ) |
|
|
pure virtual |
It's recommended to use INCREASE_PERFORMANCE_STAT macro instead. Increments the value of a given stat by one (1) that has been already declared with DECLARE_PERFORMANCE_STAT Note: metrics will take the average value of a stat within the period configured with @SetReportPeriod and reset to back to zero each time.
- Parameters
-
uniqueStatId | a unique stat id |
Implemented in Multiplayer::MultiplayerStatSystemComponent.
◆ SetReportPeriod()
virtual void Multiplayer::IMultiplayerStatSystem::SetReportPeriod |
( |
AZ::TimeMs |
period | ) |
|
|
pure virtual |
◆ SetStat()
virtual void Multiplayer::IMultiplayerStatSystem::SetStat |
( |
int |
uniqueStatId, |
|
|
double |
value |
|
) |
| |
|
pure virtual |
It's recommended to use SET_PERFORMANCE_STAT macro instead. Updates the value of a given stat already declared with DECLARE_PERFORMANCE_STAT Note: metrics will take the average value of a stat within the period configured with @SetReportPeriod
- Parameters
-
uniqueStatId | a unique stat id |
value | current value |
Implemented in Multiplayer::MultiplayerStatSystemComponent.
The documentation for this class was generated from the following file:
- Gems/Multiplayer/Code/Include/Multiplayer/MultiplayerStatSystemInterface.h