Text: revisada la classe
window_message: correcions
This commit is contained in:
@@ -25,13 +25,13 @@ class Resource {
|
||||
static auto get() -> Resource *; // Obtiene el puntero al objeto Resource
|
||||
|
||||
// --- Métodos de acceso a recursos ---
|
||||
auto getSound(const std::string &name) -> JA_Sound_t *; // Obtiene el sonido por nombre
|
||||
auto getMusic(const std::string &name) -> JA_Music_t *; // Obtiene la música por nombre
|
||||
auto getTexture(const std::string &name) -> std::shared_ptr<Texture>; // Obtiene la textura por nombre
|
||||
auto getTextFile(const std::string &name) -> std::shared_ptr<TextFile>; // Obtiene el fichero de texto por nombre
|
||||
auto getText(const std::string &name) -> std::shared_ptr<Text>; // Obtiene el objeto de texto por nombre
|
||||
auto getAnimation(const std::string &name) -> AnimationsFileBuffer &; // Obtiene la animación por nombre
|
||||
auto getDemoData(int index) -> DemoData &; // Obtiene los datos de demo por índice
|
||||
auto getSound(const std::string &name) -> JA_Sound_t *; // Obtiene el sonido por nombre
|
||||
auto getMusic(const std::string &name) -> JA_Music_t *; // Obtiene la música por nombre
|
||||
auto getTexture(const std::string &name) -> std::shared_ptr<Texture>; // Obtiene la textura por nombre
|
||||
auto getTextFile(const std::string &name) -> std::shared_ptr<Text::File>; // Obtiene el fichero de texto por nombre
|
||||
auto getText(const std::string &name) -> std::shared_ptr<Text>; // Obtiene el objeto de texto por nombre
|
||||
auto getAnimation(const std::string &name) -> AnimationsFileBuffer &; // Obtiene la animación por nombre
|
||||
auto getDemoData(int index) -> DemoData &; // Obtiene los datos de demo por índice
|
||||
|
||||
// --- Métodos de recarga de recursos ---
|
||||
void reload(); // Recarga todos los recursos
|
||||
@@ -64,10 +64,10 @@ class Resource {
|
||||
};
|
||||
|
||||
struct ResourceTextFile {
|
||||
std::string name; // Nombre del fichero
|
||||
std::shared_ptr<TextFile> text_file; // Objeto con los descriptores de la fuente de texto
|
||||
std::string name; // Nombre del fichero
|
||||
std::shared_ptr<Text::File> text_file; // Objeto con los descriptores de la fuente de texto
|
||||
|
||||
ResourceTextFile(std::string name, std::shared_ptr<TextFile> text_file)
|
||||
ResourceTextFile(std::string name, std::shared_ptr<Text::File> text_file)
|
||||
: name(std::move(name)), text_file(std::move(text_file)) {}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user