Adding author field to addon.json.

lua-bytecode
Icedream 2014-10-22 19:51:18 +02:00
parent f67b95007a
commit bd22f08ecf
2 changed files with 4 additions and 0 deletions

View File

@ -230,6 +230,7 @@ namespace GarrysMod.AddonCreator
// Extract data from addon.json
Title = addonJson.Title;
Author = addonJson.Author;
Description = string.IsNullOrEmpty(addonJson.Description) ? string.Empty : addonJson.Description;
Version = addonJson.Version;

View File

@ -31,6 +31,9 @@ namespace GarrysMod.AddonCreator
[JsonProperty("version")]
public int Version { get; set; }
[JsonProperty("author")]
public string Author { get; set; }
internal void CheckForErrors()
{
if (string.IsNullOrEmpty(Title))