1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +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"
VCMI_LIB_NAMESPACE_BEGIN
void AssetGenerator::generate()
{
createBigSpellBook("data/SpelBk2.bmp");
@ -49,6 +47,7 @@ void AssetGenerator::createAdventureOptionsCleanBackground(std::string filename)
ResourcePath savePath(filename, EResType::IMAGE);
image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath));
}
void AssetGenerator::createBigSpellBook(std::string filename)
{
if(!CResourceHandler::get("local")->createResource(filename))
@ -106,5 +105,3 @@ void AssetGenerator::createBigSpellBook(std::string filename)
ResourcePath savePath(filename, EResType::IMAGE);
image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath));
}
VCMI_LIB_NAMESPACE_END

View File

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