guildmud
guildmud copied to clipboard
High level persistence proposal
- Use sqlite3 to store: world data (map, users & objects) and state.
- Have a minimal persistence memory to sqlite3 time.
- Have a highly coupled memory data model to sqlite3 (persist at struct member/variable at database field type)
- Because (2 & 3) we expect the programmer to have some SQL knowledge.
- Minimal set of objects to be persisted: Room, Thing, Exits, Tags (a kind of trait that can be attached to anything), Player, Non Player.
- Define a set of functions per object (4) to persist/update/retrieve from/to the database.
- Create a versioning system of database schema so it can be upgraded without user action.