mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
refactor: change pointer parameters to references for Level and Content in various classes
This commit is contained in:
parent
ef2c0b2370
commit
c1b311f3c4
41 changed files with 258 additions and 251 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue