> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maddergames.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](madder-manager#registermaddercontroller) `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](madder-stat) objects.
In the MadderStat dictionary, the key is the name of the stat, and the value is the stat object.

```csharp MadderPlayer.cs theme={null}
[System.Serializable]
public class MadderPlayer
{
    public string name;

    public Dictionary<string, IMadderStat> stats;

}
```

## 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](madder-messager#updatemadderplayerstats)
`UpdateMadderPlayerStats` method.
