Skip to content

Commit d0e13ef

Browse files
committed
add layer group source to visual studio project
add explicit move constructor/assignment declarations to layer group (required by msvc)
1 parent 108214d commit d0e13ef

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

tmxlite/include/tmxlite/Layer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace tmx
5858
public:
5959
using Ptr = std::unique_ptr<Layer>;
6060

61-
explicit Layer() : m_opacity(1.f), m_visible(true) {};
61+
Layer() : m_opacity(1.f), m_visible(true) {};
6262
virtual ~Layer() = default;
6363

6464
/*

tmxlite/include/tmxlite/LayerGroup.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ namespace tmx
3939
{
4040
public:
4141

42-
explicit LayerGroup(const std::string& workDir, const Vector2u& tileCount);
42+
LayerGroup(const std::string& workDir, const Vector2u& tileCount);
4343
~LayerGroup() = default;
44+
LayerGroup(const LayerGroup&) = delete;
45+
const LayerGroup& operator = (const LayerGroup&) = delete;
46+
LayerGroup(LayerGroup&&) = default;
47+
LayerGroup& operator = (LayerGroup&&) = default;
48+
4449

4550
Type getType() const override { return Layer::Type::Group; }
4651
void parse(const pugi::xml_node&) override;

tmxlite/tmxlite.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@
255255
<ClInclude Include="include\tmxlite\FreeFuncs.hpp" />
256256
<ClInclude Include="include\tmxlite\ImageLayer.hpp" />
257257
<ClInclude Include="include\tmxlite\Layer.hpp" />
258+
<ClInclude Include="include\tmxlite\LayerGroup.hpp" />
258259
<ClInclude Include="include\tmxlite\Map.hpp" />
259260
<ClInclude Include="include\tmxlite\Object.hpp" />
260261
<ClInclude Include="include\tmxlite\ObjectGroup.hpp" />
@@ -267,6 +268,7 @@
267268
<ClCompile Include="src\detail\pugixml.cpp" />
268269
<ClCompile Include="src\FreeFuncs.cpp" />
269270
<ClCompile Include="src\ImageLayer.cpp" />
271+
<ClCompile Include="src\LayerGroup.cpp" />
270272
<ClCompile Include="src\Map.cpp" />
271273
<ClCompile Include="src\miniz.c" />
272274
<ClCompile Include="src\Object.cpp" />

tmxlite/tmxlite.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
<ClInclude Include="include\tmxlite\Types.hpp">
4949
<Filter>Header Files</Filter>
5050
</ClInclude>
51+
<ClInclude Include="include\tmxlite\LayerGroup.hpp">
52+
<Filter>Header Files</Filter>
53+
</ClInclude>
5154
</ItemGroup>
5255
<ItemGroup>
5356
<ClCompile Include="src\FreeFuncs.cpp">
@@ -80,6 +83,9 @@
8083
<ClCompile Include="src\detail\pugixml.cpp">
8184
<Filter>Source Files</Filter>
8285
</ClCompile>
86+
<ClCompile Include="src\LayerGroup.cpp">
87+
<Filter>Source Files</Filter>
88+
</ClCompile>
8389
</ItemGroup>
8490
<ItemGroup>
8591
<None Include="include\tmxlite\Types.inl">

0 commit comments

Comments
 (0)