This commit is contained in:
2025-10-27 11:53:12 +01:00
parent 231dcd4b3b
commit 5d8811026d
69 changed files with 899 additions and 888 deletions

View File

@@ -22,7 +22,7 @@ enum class AssetType : int {
class Asset {
private:
// [SINGLETON] Objeto asset privado para Don Melitón
static Asset* asset_;
static Asset* asset;
// Estructura para definir un item
struct AssetItem {
@@ -31,10 +31,10 @@ class Asset {
bool required; // Indica si es un fichero que debe de existir
// Constructor
AssetItem(const std::string& filePath, AssetType assetType, bool isRequired)
: file(filePath),
type(assetType),
required(isRequired) {}
AssetItem(const std::string& file_path, AssetType asset_type, bool is_required)
: file(file_path),
type(asset_type),
required(is_required) {}
};
// Variables
@@ -43,10 +43,10 @@ class Asset {
std::string executable_path_; // Ruta al ejecutable
// Comprueba que existe un fichero
bool checkFile(const std::string& path) const;
static bool checkFile(const std::string& path);
// Devuelve el nombre del tipo de recurso
std::string getTypeName(AssetType type) const;
static std::string getTypeName(AssetType type);
// Constructor
explicit Asset(const std::string& executable_path)