From bdf73a67ffd964c37db5a9694424380bfd685c95 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 23 Aug 2017 20:23:22 +0500 Subject: 2017-08-23 --- src/Section.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/Section.hpp') 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 palette; - std::vector blocks; + std::vector blocks; std::vector light; std::vector 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); -- cgit v1.2.3