forked from jaildesigner-jailgames/jaildoctors_dilemma
linter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user