im using the packaged TNetServer.zip as an authentication server. works great!
after the player connects to the server and is authenticated, i would like to populate the player.data variable with player specific data.
i created a new packet that deals with this task nicely:
//TNGameServer.cs
case Packet.RequestLogin:
{
//login verified
//sync mysql data to player.data here
//gold = 500;
//profession = "Wizard";
//etc
}
the end goal would be to access the data via:
(or the preferred method)
TNManager.playerDataNode.GetChild<int>("gold");
my question is, how do i set the player.data variable on the server? and then, sync it to the player?