ui calculator

This commit is contained in:
Ilia Denisov
2026-03-30 19:38:24 +02:00
committed by GitHub
parent 17f366cd6b
commit a7793f5416
37 changed files with 2046 additions and 270 deletions
+5
View File
@@ -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].