feat: Implement state persistence by serializing game and user data to state.json using serde_json.
This commit is contained in:
+31
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user