ethanmoffat / EndlessClient

An open source client for Endless Online written in C#
MIT License
34 stars 16 forks source link

Proper game state structure #187

Open ethanmoffat opened 2 years ago

ethanmoffat commented 2 years ago

Currently, persisted data in EndlessClient is stored in a repository/provider pattern. It would be nice to store this is a JSON-serializable GameState structure behind the repositories/providers and have each repository/provider expose just a specific piece of the game state. The interfaces don't have to change; their implementation can just draw from a global GameState provider.

This would really only be an improvement for debugging purposes, and I might ultimately decide not to do it since it would be a huge change.