feat: game order api methods
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user