mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-04 02:36:31 +00:00
fxing waird apparently cam related error
This commit is contained in:
@@ -96,11 +96,12 @@ namespace BBM
|
||||
|
||||
texture->use("assets/buttons/button_save_hovered.png");
|
||||
})
|
||||
.addComponent<OnClickComponent>([](WAL::Entity &entity, WAL::Wal &)
|
||||
.addComponent<OnClickComponent>([](WAL::Entity &entity, WAL::Wal &wal)
|
||||
{
|
||||
if (!std::filesystem::exists("save"))
|
||||
std::filesystem::create_directories("save");
|
||||
ParserYAML::save(Runner::gameState.loadedScenes[GameState::SceneID::GameScene]);
|
||||
wal.getSystem<CameraSystem>().hasEnded = false;
|
||||
gameState.nextScene = BBM::GameState::SceneID::MainMenuScene;
|
||||
});
|
||||
auto &settings = scene->addEntity("settings button")
|
||||
|
||||
@@ -84,8 +84,7 @@ namespace BBM
|
||||
return std::all_of(lobby.begin(), lobby.end(), [](WAL::ViewEntity<ResumeLobbyComponent> &entity) {
|
||||
auto &lobbyPlayer = entity.get<ResumeLobbyComponent>();
|
||||
return lobbyPlayer.ready && lobbyPlayer.layout != ControllableComponent::NONE;
|
||||
});
|
||||
}
|
||||
}); }
|
||||
|
||||
void ResumeLobbySystem::resumeToGame(WAL::Wal &wal)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user