refactor: change pointer parameters to references for Level and Content in various classes

This commit is contained in:
MihailRis
2024-12-25 18:53:53 +03:00
parent ef2c0b2370
commit c1b311f3c4
41 changed files with 258 additions and 251 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ class Level {
const EngineSettings& settings;
std::unique_ptr<World> world;
public:
const Content* const content;
const Content& content;
std::unique_ptr<GlobalChunks> chunks;
std::unique_ptr<Inventories> inventories;
@@ -35,7 +35,7 @@ public:
Level(
std::unique_ptr<World> world,
const Content* content,
const Content& content,
EngineSettings& settings
);
~Level();