浏览代码

Add description for modAssessment* functions

MichalZr6 6 月之前
父节点
当前提交
8395557638
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      mapeditor/mapcontroller.h

+ 4 - 1
mapeditor/mapcontroller.h

@@ -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);