1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

It is now possible to copy object settings between zones

This commit is contained in:
Tomasz Zieliński
2024-08-24 20:18:36 +02:00
parent 64fc2e5ed0
commit bfe75a6a02
7 changed files with 139 additions and 85 deletions

View File

@@ -49,16 +49,15 @@ public:
ALL = -1,
NONE = 0,
CREATURE_BANK = 1,
PERMANENT_BONUS,
NEXT_BATTLE_BONUS,
BONUS,
DWELLING,
RESOURCE,
RESOURCE_GENERATOR,
SPELL_SCROLL,
RANDOM_ARTIFACT,
PANDORAS_BOX,
QUEST_ARTIFACT
// TODO: Seer huts?
QUEST_ARTIFACT,
SEER_HUT
};
void addBannedObject(const CompoundMapObjectID & objid);
@@ -67,9 +66,8 @@ public:
void clearCustomObjects();
const std::vector<CompoundMapObjectID> & getBannedObjects() const;
const std::vector<EObjectCategory> & getBannedObjectCategories() const;
const std::vector<ObjectInfo> & getCustomObjects() const;
const std::vector<ObjectInfo> & getConfiguredObjects() const;
// TODO: Separate serializer
void serializeJson(JsonSerializeFormat & handler);
private:
// TODO: Add convenience method for banning objects by name