Adding author field to addon.json.
parent
f67b95007a
commit
bd22f08ecf
|
@ -230,6 +230,7 @@ namespace GarrysMod.AddonCreator
|
||||||
|
|
||||||
// Extract data from addon.json
|
// Extract data from addon.json
|
||||||
Title = addonJson.Title;
|
Title = addonJson.Title;
|
||||||
|
Author = addonJson.Author;
|
||||||
Description = string.IsNullOrEmpty(addonJson.Description) ? string.Empty : addonJson.Description;
|
Description = string.IsNullOrEmpty(addonJson.Description) ? string.Empty : addonJson.Description;
|
||||||
Version = addonJson.Version;
|
Version = addonJson.Version;
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,9 @@ namespace GarrysMod.AddonCreator
|
||||||
[JsonProperty("version")]
|
[JsonProperty("version")]
|
||||||
public int Version { get; set; }
|
public int Version { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("author")]
|
||||||
|
public string Author { get; set; }
|
||||||
|
|
||||||
internal void CheckForErrors()
|
internal void CheckForErrors()
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(Title))
|
if (string.IsNullOrEmpty(Title))
|
||||||
|
|
Loading…
Reference in New Issue