Cleaned up all the places I was doing push_back({constructorvar1, constructorvar2}) to use emplace_back(constructorvar1, constructorvar2) every other use should be only for actually copying.

This commit is contained in:
Zed A. Shaw 2025-01-22 07:38:49 -05:00
parent 18a5f6bfa9
commit 3344181a47
6 changed files with 18 additions and 23 deletions

View file

@ -8,10 +8,10 @@
struct GameLevel {
size_t index = 0;
std::shared_ptr<Map> map = nullptr;
std::shared_ptr<DinkyECS::World> world = nullptr;
std::shared_ptr<lighting::LightRender> lights = nullptr;
size_t index;
std::shared_ptr<Map> map;
std::shared_ptr<DinkyECS::World> world;
std::shared_ptr<lighting::LightRender> lights;
};
class LevelManager {