summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ModInfo.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-01 21:23:39 +0200
committerAki <please@ignore.pl>2022-04-01 21:23:39 +0200
commit3c487c5cd69c53d6fea948643c0a76df03516605 (patch)
tree72730c7b8b26a5ef8fc9a987ec4c16129efd5aac /Stars45/ModInfo.h
parent8f353abd0bfe18baddd8a8250ab7c4f2d1c83a6e (diff)
downloadstarshatter-3c487c5cd69c53d6fea948643c0a76df03516605.zip
starshatter-3c487c5cd69c53d6fea948643c0a76df03516605.tar.gz
starshatter-3c487c5cd69c53d6fea948643c0a76df03516605.tar.bz2
Moved Stars45 to StarsEx
Diffstat (limited to 'Stars45/ModInfo.h')
-rw-r--r--Stars45/ModInfo.h121
1 files changed, 0 insertions, 121 deletions
diff --git a/Stars45/ModInfo.h b/Stars45/ModInfo.h
deleted file mode 100644
index 3ee2054..0000000
--- a/Stars45/ModInfo.h
+++ /dev/null
@@ -1,121 +0,0 @@
-/* Starshatter: The Open Source Project
- Copyright (c) 2021-2022, Starshatter: The Open Source Project Contributors
- Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors
- Copyright (c) 1997-2006, Destroyer Studios LLC.
-
- AUTHOR: John DiCamillo
-
-
- OVERVIEW
- ========
- Information block for describing and deploying third party mods
-*/
-
-
-#ifndef ModInfo_h
-#define ModInfo_h
-
-#include "Types.h"
-#include "Bitmap.h"
-#include "Text.h"
-#include "List.h"
-
-// +-------------------------------------------------------------------+
-
-class ModInfo;
-class ModCampaign;
-class ModCatalog;
-
-// +-------------------------------------------------------------------+
-
-class ModInfo
-{
-public:
- static const char* TYPENAME() { return "ModInfo"; }
-
- ModInfo();
- ModInfo(const char* filename);
- ModInfo(const char* name, const char* version, const char* url);
- ~ModInfo();
-
- int operator == (const ModInfo& m) const { return name.length() && name == m.name; }
-
- const Text& Name() const { return name; }
- const Text& Description() const { return desc; }
- const Text& Author() const { return author; }
- const Text& URL() const { return url; }
- const Text& Filename() const { return filename; }
- const Text& Copyright() const { return copyright; }
- Bitmap* LogoImage() const { return logo; }
- const Text& Version() const { return version; }
- bool Distribute() const { return distribute; }
- bool IsEnabled() const { return enabled; }
-
- List<ModCampaign>& GetCampaigns() { return campaigns; }
-
- bool Load(const char* filename);
- bool ParseModInfo(const char* buffer);
-
- bool Enable();
- bool Disable();
-
-private:
- Text name;
- Text desc;
- Text author;
- Text url;
- Text filename;
- Text copyright;
- Bitmap* logo;
- Text logoname;
- Text version;
- bool distribute;
- bool enabled;
-
- List<ModCampaign> campaigns;
- ModCatalog* catalog;
-};
-
-// +-------------------------------------------------------------------+
-
-class ModCampaign
-{
- friend class ModInfo;
-
-public:
- static const char* TYPENAME() { return "ModCampaign"; }
-
- ModCampaign() : dynamic(false) { }
- ~ModCampaign() { }
-
- const Text& Name() const { return name; }
- const Text& Path() const { return path; }
- bool IsDynamic() const { return dynamic; }
-
-private:
- Text name;
- Text path;
- bool dynamic;
-};
-
-// +-------------------------------------------------------------------+
-
-class ModCatalog
-{
- friend class ModInfo;
-
-public:
- static const char* TYPENAME() { return "ModCatalog"; }
-
- ModCatalog() { }
- ~ModCatalog() { }
-
- const Text& File() const { return file; }
- const Text& Path() const { return path; }
-
-private:
- Text file;
- Text path;
-};
-
-#endif // ModInfo_h \ No newline at end of file