mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +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
|
|
@ -166,7 +166,7 @@ public:
|
|||
|
||||
class Entities {
|
||||
entt::registry registry;
|
||||
Level* level;
|
||||
Level& level;
|
||||
std::unordered_map<entityid_t, entt::entity> entities;
|
||||
std::unordered_map<entt::entity, entityid_t> uids;
|
||||
entityid_t nextID = 1;
|
||||
|
|
@ -184,7 +184,7 @@ public:
|
|||
float distance;
|
||||
};
|
||||
|
||||
Entities(Level* level);
|
||||
Entities(Level& level);
|
||||
|
||||
void clean();
|
||||
void updatePhysics(float delta);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue