feat: Implement state persistence by serializing game and user data to state.json using serde_json.

This commit is contained in:
2025-12-03 14:40:05 +01:00
parent f9a4dd0851
commit 434eef5e1c
5 changed files with 104 additions and 29 deletions
+31
View File
@@ -0,0 +1,31 @@
{
"games": [
{
"title": "Naramo Nuclear Plant V2",
"source": 1,
"multiplayer": true,
"min_players": 1,
"max_players": 90,
"price": 0,
"remote_id": 0
}
],
"users": [
{
"person": {
"name": "John",
"opinion": [
{
"title": "Naramo Nuclear Plant V2",
"would_play": true
},
{
"title": "Test2",
"would_play": true
}
]
},
"password_hash": "$2b$12$DRvTP/ibTWULkuJJr285bumRd7SG3n5bYkDpb09Qpklqf6FeTiHkC"
}
]
}