mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01: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
|
|
@ -14,12 +14,12 @@ class Level;
|
|||
class Player;
|
||||
|
||||
class Players : public Serializable {
|
||||
Level* level;
|
||||
Level& level;
|
||||
std::unordered_map<int64_t, std::unique_ptr<Player>> players;
|
||||
|
||||
void add(std::unique_ptr<Player> player);
|
||||
public:
|
||||
Players(Level* level);
|
||||
Players(Level& level);
|
||||
|
||||
Player* get(int64_t id) const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue