Introduced Content, ContentIndices, no more integer ids hardcoded, common refactor

This commit is contained in:
MihailRis
2023-11-21 11:38:59 +03:00
parent f2f9343737
commit 3b03464d27
35 changed files with 472 additions and 279 deletions
+5
View File
@@ -4,6 +4,8 @@
#include "../typedefs.h"
#include "../settings.h"
class Content;
class ContentIndices;
class World;
class Player;
class Chunks;
@@ -17,6 +19,8 @@ class PlayerController;
class Level {
public:
World* world;
const Content* const content;
const ContentIndices* const contentIds;
Player* player;
Chunks* chunks;
ChunksStorage* chunksStorage;
@@ -28,6 +32,7 @@ public:
const EngineSettings& settings;
Level(World* world,
const Content* content,
Player* player,
EngineSettings& settings);
~Level();