This commit is contained in:
2025-10-27 18:35:53 +01:00
parent b1dca32a5b
commit 3179a08dac
63 changed files with 686 additions and 693 deletions

View File

@@ -32,7 +32,7 @@ class Debug {
static void destroy();
// [SINGLETON] Con este método obtenemos el objeto y podemos trabajar con él
static Debug* get();
static auto get() -> Debug*;
// Dibuja en pantalla
void render();
@@ -41,12 +41,12 @@ class Debug {
void setPos(SDL_FPoint p);
// Getters
bool getEnabled() const { return enabled_; }
[[nodiscard]] auto getEnabled() const -> bool { return enabled_; }
// Setters
void add(std::string text) { slot_.push_back(text); }
void add(const std::string& text) { slot_.push_back(text); }
void clear() { slot_.clear(); }
void addToLog(std::string text) { log_.push_back(text); }
void addToLog(const std::string& text) { log_.push_back(text); }
void clearLog() { log_.clear(); }
void setEnabled(bool value) { enabled_ = value; }
void toggleEnabled() { enabled_ = !enabled_; }