Switching to Linux to find a memory bug and I want to keep a record of what caused it.
This commit is contained in:
parent
be3eef7082
commit
e51fb8627c
7 changed files with 23 additions and 42 deletions
|
@ -39,10 +39,12 @@ namespace gui {
|
|||
$gui.set<guecs::Sprite>(button, { sprite_name});
|
||||
}
|
||||
|
||||
void DebugUI::spawn(std::string enemy_key) {
|
||||
auto ent = $level_mgr.spawn_enemy(enemy_key);
|
||||
auto& level = $level_mgr.current();
|
||||
level.world->send<Events::GUI>(Events::GUI::ENTITY_SPAWN, ent, {});
|
||||
void DebugUI::spawn(const std::string& enemy_key) {
|
||||
(void)enemy_key;
|
||||
dbc::log("THIS FUNCTION NEEDS A REWRITE");
|
||||
// auto ent = $level_mgr.spawn_enemy(enemy_key);
|
||||
// auto& level = $level_mgr.current();
|
||||
// level.world->send<Events::GUI>(Events::GUI::ENTITY_SPAWN, ent, {});
|
||||
}
|
||||
|
||||
void DebugUI::render(sf::RenderWindow& window) {
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace gui {
|
|||
void render(sf::RenderWindow& window);
|
||||
bool mouse(float x, float y, bool hover);
|
||||
void debug();
|
||||
void spawn(std::string enemy_key);
|
||||
void spawn(const std::string& enemy_key);
|
||||
void add_spawn_button(std::string enemy_key, std::string sprite_name, std::string region);
|
||||
|
||||
Stats::TimeBullshit time_start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue