Stats
#
Read more about the Stats system in Hiro here.
Get all stats
#
Get all stats.
1
2
| const statList = await hiroClient.statsGet(session);
console.log(statList);
|
Update stats for the player
#
Update stats.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| const request : StatUpdateRequest = {
public: [{
name: "public_stat_1",
value: 100,
operator: StatUpdateOperator.Set
}],
private: [{
name: "private_stat_1",
value: 100,
operator: StatUpdateOperator.Set
}]
};
const statList = await hiroClient.statsUpdate(session, request);
console.log(statList);
|