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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user