1
0
mirror of https://github.com/ScrelliCopter/tmx2gba.git synced 2025-02-21 03:29:25 +11:00

Revert "port to tmxlite"

This reverts commit 35abaf71
This commit is contained in:
2024-04-08 02:54:44 +10:00
parent f9928df187
commit ebe83ffb68
44 changed files with 3656 additions and 4586 deletions

View File

@@ -1,4 +1,4 @@
/* tmxreader.hpp - Copyright (C) 2015-2024 a dinosaur (zlib, see COPYING.txt) */
/* tmxreader.hpp - Copyright (C) 2015-2022 a dinosaur (zlib, see COPYING.txt) */
#ifndef TMXREADER_HPP
#define TMXREADER_HPP
@@ -10,6 +10,11 @@
#include <vector>
#include <map>
#include <optional>
#include <rapidxml/rapidxml.hpp>
class TmxTileset;
class TmxLayer;
class TmxObject;
class TmxReader
{
@@ -34,7 +39,7 @@ public:
const std::string_view paletteName,
const std::string_view collisionName,
const std::map<std::string, uint32_t>& objMapping);
struct Size { unsigned width, height; };
struct Size { int width, height; };
[[nodiscard]] constexpr Size GetSize() const { return mSize; }
[[nodiscard]] constexpr size_t TileCount() const { return