feat: load player's report
This commit is contained in:
@@ -8,6 +8,7 @@ const (
|
||||
ErrStorageFailure int = 1000 + iota
|
||||
ErrGameNotInitialized
|
||||
ErrGameStateInvalid
|
||||
ErrReportNotFound
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -8,6 +8,10 @@ func NewGameNotInitializedError(arg ...any) error {
|
||||
return newGenericError(ErrGameNotInitialized, arg...)
|
||||
}
|
||||
|
||||
func NewReportNotFoundError(arg ...any) error {
|
||||
return newGenericError(ErrReportNotFound, arg...)
|
||||
}
|
||||
|
||||
func NewGameStateError(arg ...any) error {
|
||||
return newGenericError(ErrGameStateInvalid, arg...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user