Retrieve players actorID when they join the room

Options
I want to create a dictionary and store the players by their ActorID or other unique identifier right after they connect to the server room.

private Dictionary<string/number, Player> playersInGame = new Dictionary<string/number, Player>();
public override void Connected (BoltConnection connection) {
// insert the player into the dictionary
}

How do I retrieve their ActorID?

Is this the correct method?


Comments