collision map
This commit is contained in:
@@ -40,7 +40,8 @@ namespace Resource {
|
||||
|
||||
// Constructor
|
||||
Cache::Cache(LoadingMode mode)
|
||||
: loading_mode_(mode), loading_text_(Screen::get()->getText()) {
|
||||
: loading_mode_(mode),
|
||||
loading_text_(Screen::get()->getText()) {
|
||||
load();
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ namespace Resource {
|
||||
};
|
||||
|
||||
static void init(LoadingMode mode = LoadingMode::EAGER); // Inicialización singleton
|
||||
static void destroy(); // Destrucción singleton
|
||||
static auto get() -> Cache*; // Acceso al singleton
|
||||
static void destroy(); // Destrucción singleton
|
||||
static auto get() -> Cache*; // Acceso al singleton
|
||||
|
||||
auto getSound(const std::string& name) -> JA_Sound_t*; // Getters de recursos
|
||||
auto getMusic(const std::string& name) -> JA_Music_t*;
|
||||
|
||||
Reference in New Issue
Block a user