I’ve been thinking about some things I want to do with players, and someone else was talking about saving player states. I have a few questions/suggestions:
do entity snapshots already work with players?
is it possible to ‘apply’ snapshots to entities
If possible, I was thinking of a PlayerSnapshot class that can be serialized, as well as easily applied to/ set to a player. That means you could, at any point in time, grab the players state, save it, and then arbitrarily re-apply it whenever we want.
EntitySnapshot is already designed for all entities, regardless whether they’re basic entities or actual Player entities. Deserializing an EntitySnapshot from a Player however is only going to reset the Player's information as long as the Player is actually online.