Class MelonInfoAttribute
Inherited Members
Namespace: RedLoader
Assembly: RedLoader.dll
Syntax
[Obsolete("Should only be used by plugins.")]
[AttributeUsage(AttributeTargets.Assembly)]
public class MelonInfoAttribute : Attribute
Constructors
MelonInfoAttribute(Type, string, int, int, int, string, string)
MelonInfo constructor.
Declaration
public MelonInfoAttribute(Type type, string name, int versionMajor, int versionMinor, int versionRevision, string author, string downloadLink = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The main Melon type of the Melon (for example TestMod) |
| string | name | Name of the Melon |
| int | versionMajor | Version Major of the Melon (Using the Semantic Versioning format) |
| int | versionMinor | Version Minor of the Melon (Using the Semantic Versioning format) |
| int | versionRevision | Version Revision of the Melon (Using the Semantic Versioning format) |
| string | author | Author of the Melon |
| string | downloadLink | URL to the download link of the mod [optional] |
MelonInfoAttribute(Type, string, int, int, int, string, string, string)
MelonInfo constructor.
Declaration
public MelonInfoAttribute(Type type, string name, int versionMajor, int versionMinor, int versionRevision, string versionIdentifier, string author, string downloadLink = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The main Melon type of the Melon (for example TestMod) |
| string | name | Name of the Melon |
| int | versionMajor | Version Major of the Melon (Using the Semantic Versioning format) |
| int | versionMinor | Version Minor of the Melon (Using the Semantic Versioning format) |
| int | versionRevision | Version Revision of the Melon (Using the Semantic Versioning format) |
| string | versionIdentifier | Version Identifier of the Melon (Using the Semantic Versioning format) |
| string | author | Author of the Melon |
| string | downloadLink | URL to the download link of the mod [optional] |
Properties
Author
Author of the Melon.
Declaration
public string Author { get; }
Property Value
| Type | Description |
|---|---|
| string |
DownloadLink
Download Link of the Melon.
Declaration
public string DownloadLink { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Name of the Melon.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
SemanticVersion
Semantic Version of the Melon. Will be null if Version is not using the Semantic Versioning format.
Declaration
public SemVersion SemanticVersion { get; }
Property Value
| Type | Description |
|---|---|
| SemVersion |
SystemType
System.Type of the Melon.
Declaration
public Type SystemType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Version
Version of the Melon.
Declaration
public string Version { get; }
Property Value
| Type | Description |
|---|---|
| string |