summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-26 16:53:07 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2020-12-26 16:53:07 +0100
commitf1156e169b68d9bb303cb8d8a171e053d7d38f82 (patch)
tree150eb0795407c0ee2ca355a75bf6b57a650481ae /src/modinfo.h
parent06ca11edfb2957d07f9e7bccce1e8a765b1d0209 (diff)
Add method to get the type of IModInterface.
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index e5e65c82..42abe51e 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -378,6 +378,26 @@ public: // IModInterface implementations / Re-declaration
*/
virtual std::shared_ptr<const MOBase::IFileTree> fileTree() const = 0;
+ /**
+ * @return true if this object represents the overwrite mod.
+ */
+ virtual bool isOverwrite() const { return false; }
+
+ /**
+ * @return true if this object represents a backup.
+ */
+ virtual bool isBackup() const { return false; }
+
+ /**
+ * @return true if this object represents a separator.
+ */
+ virtual bool isSeparator() const { return false; }
+
+ /**
+ * @return true if this object represents a foreign mod.
+ */
+ virtual bool isForeign() const { return false; }
+
public: // Mutable operations:
/**