Rename to GameDB and GameDB::Level.
This commit is contained in:
parent
c46927ea10
commit
a20d701096
23 changed files with 142 additions and 151 deletions
|
@ -5,14 +5,14 @@ namespace guecs {
|
|||
|
||||
Clickable make_action(guecs::Entity gui_id, Events::GUI event) {
|
||||
return {[&, gui_id, event](auto){
|
||||
auto world = Game::current_world();
|
||||
auto world = GameDB::current_world();
|
||||
world->send<Events::GUI>(event, gui_id, {});
|
||||
}};
|
||||
}
|
||||
|
||||
Clickable make_action(guecs::Entity gui_id, Events::GUI event, std::any data) {
|
||||
return {[&, event, data](auto){
|
||||
auto world = Game::current_world();
|
||||
auto world = GameDB::current_world();
|
||||
world->send<Events::GUI>(event, gui_id, data);
|
||||
}};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue