diff options
| author | Al <26797547+Al12rs@users.noreply.github.com> | 2020-12-30 15:25:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-30 15:25:26 +0100 |
| commit | 54736a6e24bbfd12627aa1f400d05a4236838006 (patch) | |
| tree | 69499e56dc3886a6e337ac07d579d4f594378b4d /src/modinfo.h | |
| parent | 1b101bda36ed66d08fa597a8956369c9e0af8519 (diff) | |
| parent | f1156e169b68d9bb303cb8d8a171e053d7d38f82 (diff) | |
Merge pull request #1329 from Holt59/imodinterface-isX
Add method to get the type of IModInterface.
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 20 |
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: /** |
