diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-23 17:23:22 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-23 17:23:22 +0200 |
commit | bdf73a67ffd964c37db5a9694424380bfd685c95 (patch) | |
tree | 3d313b318623eb7e7c46aed80c10e7fe896a5587 /src/Section.hpp | |
parent | 2017-08-20 (diff) | |
download | AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.gz AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.bz2 AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.lz AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.xz AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.zst AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Section.hpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Section.hpp b/src/Section.hpp index c7deeb1..dfa738a 100644 --- a/src/Section.hpp +++ b/src/Section.hpp @@ -11,10 +11,6 @@ #include "Vector.hpp" #include "Utility.hpp" -const int SECTION_WIDTH = 16; -const int SECTION_LENGTH = 16; -const int SECTION_HEIGHT = 16; - struct PackedSection { Vector position; @@ -22,7 +18,7 @@ struct PackedSection { std::vector<unsigned short> palette; - std::vector<unsigned char> blocks; + std::vector<long long> blocks; std::vector<unsigned char> light; std::vector<unsigned char> sky; @@ -43,13 +39,15 @@ public: ~Section(); + Section(Section &&other) noexcept; + Block &GetBlock(Vector pos); Block GetBlock(Vector pos) const; - Section &operator=(Section other); + Section &operator=(Section other) noexcept; - friend void swap(Section &a, Section &b); + friend void swap(Section& lhs, Section& rhs) noexcept; Section(const Section &other); |