treball en curs: correccions de tidy
This commit is contained in:
@@ -27,7 +27,7 @@ class Resource {
|
||||
auto getAnimationLines(const std::string &name) -> std::vector<std::string> &;
|
||||
auto getText(const std::string &name) -> Text *; // name sin extensión: "smb2", "nokia2", ...
|
||||
auto getMenu(const std::string &name) -> Menu *; // name sin extensión: "title", "options", ...
|
||||
auto getDemoBytes() const -> const std::vector<uint8_t> & { return demoBytes_; }
|
||||
auto getDemoBytes() const -> const std::vector<uint8_t> & { return demo_bytes_; }
|
||||
|
||||
private:
|
||||
explicit Resource(SDL_Renderer *renderer);
|
||||
@@ -35,15 +35,21 @@ class Resource {
|
||||
|
||||
void preloadAll();
|
||||
|
||||
// Helpers de preloadAll
|
||||
void preloadResources();
|
||||
void loadDataAsset(const std::string &bname, const std::vector<uint8_t> &bytes);
|
||||
void preloadFonts();
|
||||
void preloadMenus();
|
||||
|
||||
SDL_Renderer *renderer_;
|
||||
|
||||
std::unordered_map<std::string, Texture *> textures_;
|
||||
std::unordered_map<std::string, JA_Sound_t *> sounds_;
|
||||
std::unordered_map<std::string, JA_Music_t *> musics_;
|
||||
std::unordered_map<std::string, std::vector<std::string>> animationLines_;
|
||||
std::unordered_map<std::string, std::vector<std::string>> animation_lines_;
|
||||
std::unordered_map<std::string, Text *> texts_;
|
||||
std::unordered_map<std::string, Menu *> menus_;
|
||||
std::vector<uint8_t> demoBytes_;
|
||||
std::vector<uint8_t> demo_bytes_;
|
||||
|
||||
static Resource *instance_;
|
||||
static Resource *instance;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user