1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Implemented support for fixed monster def's from hota

This commit is contained in:
Ivan Savenko
2023-06-17 18:07:25 +03:00
parent 6f743916db
commit 8dde8018d0
6 changed files with 33 additions and 18 deletions

View File

@@ -148,6 +148,11 @@ SObjectSounds AObjectTypeHandler::getSounds() const
return sounds;
}
void AObjectTypeHandler::clearTemplates()
{
templates.clear();
}
void AObjectTypeHandler::addTemplate(const std::shared_ptr<const ObjectTemplate> & templ)
{
templates.push_back(templ);

View File

@@ -70,6 +70,7 @@ public:
void addTemplate(const std::shared_ptr<const ObjectTemplate> & templ);
void addTemplate(JsonNode config);
void clearTemplates();
/// returns all templates matching parameters
std::vector<std::shared_ptr<const ObjectTemplate>> getTemplates() const;