JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
hmi::SkinCatalogResult Struct Reference

Résultat d'une lecture de catalogue : soit un SkinCatalog, soit une erreur décrite. More...

#include <SkinCatalog.h>

Public Member Functions

bool ok () const noexcept

Public Attributes

std::optional< SkinCatalogcatalog
std::string error
SkinCatalogError errorCode = SkinCatalogError::None

Detailed Description

Résultat d'une lecture de catalogue : soit un SkinCatalog, soit une erreur décrite.

En cas de succès, catalog est renseigné, error est vide et errorCode vaut None. Même patron que core::LevelLoadResult : aucune exception ne franchit la frontière de lecture (EX-NFR-040).

Member Function Documentation

◆ ok()

bool hmi::SkinCatalogResult::ok ( ) const
inlinenodiscardnoexcept
Returns
true si la lecture a réussi.

Member Data Documentation

◆ catalog

std::optional<SkinCatalog> hmi::SkinCatalogResult::catalog

◆ error

std::string hmi::SkinCatalogResult::error

◆ errorCode

SkinCatalogError hmi::SkinCatalogResult::errorCode = SkinCatalogError::None

The documentation for this struct was generated from the following file:
  • /home/runner/work/JustAnotherDnDGame/JustAnotherDnDGame/Source/HMI/Graphics/SkinCatalog.h