Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

Where should I store the player's game specific data for that specific room

$
0
0
I was looking at the loadbalancing server code and found a class named, PlayerCache. It has an array for all the players. I want to store player's health for that instance of room. So here's a scenario.

1. Client send an attack request to the server.
2. OperationHandlerDefault will handle that operation
3. PlayerCache or I dunno where to store.. but on that I will update the player health of the receiver of that attack.
4. Profit

Any, am I looking at the right file?

Thanks

Viewing all articles
Browse latest Browse all 1557

Trending Articles