feat: game order api methods

This commit is contained in:
Ilia Denisov
2026-05-09 10:36:44 +02:00
parent f2a7f2b515
commit 2a1e80053a
17 changed files with 166 additions and 75 deletions
+2 -2
View File
@@ -53,9 +53,9 @@ type UIStorage interface {
// LoadOrderAsync loads a [order.Order] for a given [model.GameID] and turn number from filesystem asynchronously.
// Passed callback func will will accept non-nil error in case of I/O or decoding errors occuried,
// otherwise callback func accepts loaded [order.Order].
LoadOrderAsync(client.GameID, uint, func(order.Order, error))
LoadOrderAsync(client.GameID, uint, func(order.UserGamesOrder, error))
// SaveOrderAsync stores given [order.Order] for a given [model.GameID] and turn number at the filesystem asynchronously.
// I/O or encoding error may occur, it that case callback func will be called with non-nil error.
SaveOrderAsync(client.GameID, uint, order.Order, func(error))
SaveOrderAsync(client.GameID, uint, order.UserGamesOrder, func(error))
}