ui calculator
This commit is contained in:
@@ -36,6 +36,11 @@ type UIStorage interface {
|
||||
// I/O or encoding error may occur, it that case callback func will be called with non-nil error.
|
||||
SaveStateAsync(client.State, func(error))
|
||||
|
||||
// ReportExistsAsync asynchronously checks whether given [model.GameID] and turn number exists in the Storage.
|
||||
// Passed callback func will will accept non-nil error in case of I/O or decoding errors occuried,
|
||||
// otherwise callback func accepts boolean result.
|
||||
ReportExistsAsync(client.GameID, uint, func(bool, error))
|
||||
|
||||
// LoadReportAsync loads a [report.Report] 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 [report.Report].
|
||||
|
||||
Reference in New Issue
Block a user