1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Add description for modAssessment* functions

This commit is contained in:
MichalZr6
2025-04-13 00:19:23 +02:00
parent f98155a785
commit 8395557638

View File

@@ -71,7 +71,10 @@ public:
/// If the mod is missing, prompts the user to add it. Returns false if the user declines, /// If the mod is missing, prompts the user to add it. Returns false if the user declines,
/// making the object invalid for placement. /// making the object invalid for placement.
bool checkRequiredMods(const CGObjectInstance * obj, QString & error) const; bool checkRequiredMods(const CGObjectInstance * obj, QString & error) const;
/// These functions collect mod verification data for gameplay objects by scanning map objects
/// and their nested elements (like spells and artifacts). The gathered information
/// is used to assess compatibility and integrity of mods used in a given map or game state
static void modAssessmentObject(const CGObjectInstance * obj, ModCompatibilityInfo & result); static void modAssessmentObject(const CGObjectInstance * obj, ModCompatibilityInfo & result);
static ModCompatibilityInfo modAssessmentAll(); static ModCompatibilityInfo modAssessmentAll();
static ModCompatibilityInfo modAssessmentMap(const CMap & map); static ModCompatibilityInfo modAssessmentMap(const CMap & map);