Madder Classes
Madder Player
Class used for deserialization and interaction with the player’s account to store stats
Overview
The Madder Player class is sent to the Unity game from the Madder server to register a Madder controller with the game
in the Madder Manager’s RegisterMadderController
method.
The Madder Player class is also used to update the player’s account with stats.
This class contains the player’s gamername and a dictionary of MadderStat objects.
In the MadderStat dictionary, the key is the name of the stat, and the value is the stat object.
MadderPlayer.cs
Usage
The Madder Manager does not keep a list of MadderPlayer
objects that have joined the game.
To update a player’s stats, you will need to call the Madder Messager’s
UpdateMadderPlayerStats
method.
Was this page helpful?