1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

add mines support

This commit is contained in:
Laserlicht
2025-09-28 22:47:41 +02:00
parent 076f7ba5b5
commit 5ae4db60e3
11 changed files with 79 additions and 17 deletions

View File

@@ -62,6 +62,16 @@ public:
void randomizeObject(CGResource * object, IGameRandomizer & gameRandomizer) const override;
};
class DLL_LINKAGE MineInstanceConstructor : public CDefaultObjectTypeHandler<CGMine>
{
JsonNode config;
GameResID resourceType;
public:
void initTypeData(const JsonNode & input) override;
GameResID getResourceType() const;
};
class CTownInstanceConstructor : public CDefaultObjectTypeHandler<CGTownInstance>
{
JsonNode filtersJson;