1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00
This commit is contained in:
Laserlicht 2024-08-20 01:58:02 +02:00
parent 82480e3552
commit f6d5cee24f
2 changed files with 4 additions and 12 deletions

View File

@ -18,8 +18,6 @@
#include "../lib/filesystem/Filesystem.h" #include "../lib/filesystem/Filesystem.h"
VCMI_LIB_NAMESPACE_BEGIN
void AssetGenerator::generate() void AssetGenerator::generate()
{ {
createBigSpellBook("data/SpelBk2.bmp"); createBigSpellBook("data/SpelBk2.bmp");
@ -49,6 +47,7 @@ void AssetGenerator::createAdventureOptionsCleanBackground(std::string filename)
ResourcePath savePath(filename, EResType::IMAGE); ResourcePath savePath(filename, EResType::IMAGE);
image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath)); image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath));
} }
void AssetGenerator::createBigSpellBook(std::string filename) void AssetGenerator::createBigSpellBook(std::string filename)
{ {
if(!CResourceHandler::get("local")->createResource(filename)) if(!CResourceHandler::get("local")->createResource(filename))
@ -106,5 +105,3 @@ void AssetGenerator::createBigSpellBook(std::string filename)
ResourcePath savePath(filename, EResType::IMAGE); ResourcePath savePath(filename, EResType::IMAGE);
image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath)); image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath));
} }
VCMI_LIB_NAMESPACE_END

View File

@ -9,16 +9,11 @@
*/ */
#pragma once #pragma once
VCMI_LIB_NAMESPACE_BEGIN class AssetGenerator
class DLL_LINKAGE AssetGenerator
{ {
static void createBigSpellBook(std::string filename);
static void createAdventureOptionsCleanBackground(std::string filename); static void createAdventureOptionsCleanBackground(std::string filename);
static void createBigSpellBook(std::string filename);
public: public:
static void generate(); static void generate();
}; };
VCMI_LIB_NAMESPACE_END