summaryrefslogtreecommitdiff
path: root/tools/src/asset_processor/main.cpp
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2022-12-11 12:07:48 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2022-12-11 12:07:48 +0100
commit1d741c182dec03c6c7a6ea337f351eedf7d6eb65 (patch)
tree7a1fc484cc98a123a562ed5bb2e03e85b6f28e95 /tools/src/asset_processor/main.cpp
parent017eb5a65efe06ab338f7d6a3bdd1188fcca6c3e (diff)
Extract dungeon maps
Diffstat (limited to 'tools/src/asset_processor/main.cpp')
-rw-r--r--tools/src/asset_processor/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/src/asset_processor/main.cpp b/tools/src/asset_processor/main.cpp
index 195c6939..67e1158d 100644
--- a/tools/src/asset_processor/main.cpp
+++ b/tools/src/asset_processor/main.cpp
@@ -1,6 +1,7 @@
#include "main.h"
#include "assets/aif.h"
#include "assets/animation.h"
+#include "assets/dungeonmap.h"
#include "assets/frameobjlists.h"
#include "assets/gfx.h"
#include "assets/map.h"
@@ -284,6 +285,8 @@ std::unique_ptr<BaseAsset> getAssetHandlerByType(const std::filesystem::path& pa
type == "map_mapping1" || type == "map_mapping2" || type == "tileset_mapping3" ||
type == "map_collision") {
assetHandler = std::make_unique<MapAsset>(path, start, size, asset);
+ } else if (type == "dungeon_map") {
+ assetHandler = std::make_unique<DungeonMapAsset>(path, start, size, asset);
} else if (type == "unknown") {
// TODO implement conversions
assetHandler = std::make_unique<BaseAsset>(path, start, size, asset);
@@ -291,7 +294,7 @@ std::unique_ptr<BaseAsset> getAssetHandlerByType(const std::filesystem::path& pa
// Unknown binary asset
assetHandler = std::make_unique<BaseAsset>(path, start, size, asset);
} else {
- fmt::print(stderr, "Error: Unimplemented asset type \"{}\"", type);
+ fmt::print(stderr, "Error: Unimplemented asset type \"{}\"\n", type);
std::exit(1);
}
assetHandler->setup();