From f1156e169b68d9bb303cb8d8a171e053d7d38f82 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Sat, 26 Dec 2020 16:53:07 +0100 Subject: Add method to get the type of IModInterface. --- src/modinfo.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/modinfo.h') 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 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: /** -- cgit v1.3.1