renomena tipus niats a CamelCase (Bouncing, Stage, Item, Selector, ...)

This commit is contained in:
2026-05-14 22:20:37 +02:00
parent 0bc55f5732
commit 48af959814
9 changed files with 47 additions and 47 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ Asset::Asset(const std::string &executablePath)
// Añade un elemento a la lista
void Asset::add(const std::string &file, enum AssetType type, bool required, bool absolute) {
item_t temp;
Item temp;
temp.file = absolute ? file : executablePath + file;
temp.type = type;
temp.required = required;
+3 -3
View File
@@ -21,7 +21,7 @@ enum AssetType : std::uint8_t {
class Asset {
public:
// Estructura para definir un item
struct item_t {
struct Item {
std::string file; // Ruta del fichero desde la raiz del directorio
enum AssetType type; // Indica el tipo de recurso
bool required; // Indica si es un fichero que debe de existir
@@ -30,7 +30,7 @@ class Asset {
private:
// Variables
int longestName{0}; // Contiene la longitud del nombre de fichero mas largo
std::vector<item_t> fileList; // Listado con todas las rutas a los ficheros
std::vector<Item> fileList; // Listado con todas las rutas a los ficheros
std::string executablePath; // Ruta al ejecutable
bool verbose{true}; // Indica si ha de mostrar información por pantalla
@@ -59,7 +59,7 @@ class Asset {
auto get(const std::string &text) -> std::string;
// Devuelve toda la lista de items registrados
[[nodiscard]] auto getAll() const -> const std::vector<item_t> & { return fileList; }
[[nodiscard]] auto getAll() const -> const std::vector<Item> & { return fileList; }
// Comprueba que existen todos los elementos
auto check() -> bool;