diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2020-07-27 23:12:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 23:12:53 +0200 |
commit | f1e6ccd798b643308c2b468fc081bd2ad552c840 (patch) | |
tree | bfa380e1b81ab848766becff8322e783e4dcde1a /src/World.hpp | |
parent | Merge pull request #40 from LaG1924/lua-scripting (diff) | |
parent | Support for non-overworld dimensions (diff) | |
download | AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.gz AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.bz2 AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.lz AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.xz AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.zst AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/World.hpp b/src/World.hpp index 6c9a615..3e53efc 100644 --- a/src/World.hpp +++ b/src/World.hpp @@ -25,6 +25,13 @@ struct RaycastResult { VectorF hitPos; }; +struct Dimension { + std::string name; + bool skylight; +}; + +void RegisterNewDimension(int dimensionId, Dimension newDimension); + class World { int dimension = 0; @@ -40,6 +47,10 @@ class World { public: + World() = default; + + World(int dimensionId); + void ParseChunkData(std::shared_ptr<PacketChunkData> packet); void ParseChunkData(std::shared_ptr<PacketBlockChange> packet); |