store games in db
This commit is contained in:
parent
126384e5bd
commit
4e528cc83d
14 changed files with 371 additions and 133 deletions
|
|
@ -133,6 +133,7 @@ function encodeGame(data: Game): EncodedGame {
|
|||
data.scoreMode,
|
||||
data.shapeMode,
|
||||
data.snapMode,
|
||||
data.creatorUserId,
|
||||
]
|
||||
}
|
||||
|
||||
|
|
@ -149,6 +150,7 @@ function decodeGame(data: EncodedGame): Game {
|
|||
scoreMode: data[6],
|
||||
shapeMode: data[7],
|
||||
snapMode: data[8],
|
||||
creatorUserId: data[9],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue