feat: key pressed event interception & 'owner' input.add_callback third argument

This commit is contained in:
MihailRis
2025-01-02 20:51:43 +03:00
parent 7fce735ca1
commit b9ff1db086
17 changed files with 192 additions and 63 deletions
+1
View File
@@ -83,6 +83,7 @@ LevelScreen::LevelScreen(Engine& engine, std::unique_ptr<Level> levelPtr)
keepAlive(Events::getBinding(BIND_CHUNKS_RELOAD).onactived.add([=](){
player->chunks->saveAndClear();
worldRenderer->clear();
return false;
}));
animator = std::make_unique<TextureAnimator>();