diff options
Diffstat (limited to 'Stars45/ModInfo.h')
-rw-r--r-- | Stars45/ModInfo.h | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/Stars45/ModInfo.h b/Stars45/ModInfo.h index 997746c..5beefb5 100644 --- a/Stars45/ModInfo.h +++ b/Stars45/ModInfo.h @@ -1,15 +1,15 @@ /* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: ModInfo.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: ModInfo.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- Information block for describing and deploying third party mods
+ OVERVIEW
+ ========
+ Information block for describing and deploying third party mods
*/
@@ -32,91 +32,91 @@ class ModCatalog; class ModInfo
{
public:
- static const char* TYPENAME() { return "ModInfo"; }
+ static const char* TYPENAME() { return "ModInfo"; }
- ModInfo();
- ModInfo(const char* filename);
- ModInfo(const char* name, const char* version, const char* url);
- ~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; }
+ 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; }
+ 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; }
+ List<ModCampaign>& GetCampaigns() { return campaigns; }
- bool Load(const char* filename);
- bool ParseModInfo(const char* buffer);
+ bool Load(const char* filename);
+ bool ParseModInfo(const char* buffer);
- bool Enable();
- bool Disable();
+ 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;
+ 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;
+ friend class ModInfo;
public:
- static const char* TYPENAME() { return "ModCampaign"; }
+ static const char* TYPENAME() { return "ModCampaign"; }
- ModCampaign() : dynamic(false) { }
- ~ModCampaign() { }
+ ModCampaign() : dynamic(false) { }
+ ~ModCampaign() { }
- const Text& Name() const { return name; }
- const Text& Path() const { return path; }
- bool IsDynamic() const { return dynamic; }
+ const Text& Name() const { return name; }
+ const Text& Path() const { return path; }
+ bool IsDynamic() const { return dynamic; }
private:
- Text name;
- Text path;
- bool dynamic;
+ Text name;
+ Text path;
+ bool dynamic;
};
// +-------------------------------------------------------------------+
class ModCatalog
{
- friend class ModInfo;
+ friend class ModInfo;
public:
- static const char* TYPENAME() { return "ModCatalog"; }
+ static const char* TYPENAME() { return "ModCatalog"; }
- ModCatalog() { }
- ~ModCatalog() { }
+ ModCatalog() { }
+ ~ModCatalog() { }
- const Text& File() const { return file; }
- const Text& Path() const { return path; }
+ const Text& File() const { return file; }
+ const Text& Path() const { return path; }
private:
- Text file;
- Text path;
+ Text file;
+ Text path;
};
#endif ModInfo_h
\ No newline at end of file |