2016-03-21 05:19:02 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace StardewModdingAPI
|
|
|
|
|
{
|
2016-03-23 08:36:04 +08:00
|
|
|
|
public class Manifest : Config
|
2016-03-21 05:19:02 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of your mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of the mod's authour.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual string Authour { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The version of the mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual string Version { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A description of the mod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual string Description { get; set; }
|
|
|
|
|
|
2016-03-23 08:36:04 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The unique ID of the mod. It doesn't *need* to be anything.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual string UniqueID { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether or not the mod uses per-save-config files.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual bool PerSaveConfigs { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of the DLL in the directory that has the Entry() method.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual string EntryDll { get; set; }
|
|
|
|
|
|
2016-03-23 16:24:15 +08:00
|
|
|
|
protected override T GenerateBaseConfig<T>()
|
2016-03-23 08:36:04 +08:00
|
|
|
|
{
|
|
|
|
|
Name = "";
|
|
|
|
|
Authour = "";
|
|
|
|
|
Version = "";
|
|
|
|
|
Description = "";
|
|
|
|
|
UniqueID = Guid.NewGuid().ToString();
|
|
|
|
|
PerSaveConfigs = false;
|
|
|
|
|
EntryDll = "";
|
2016-03-23 16:22:47 +08:00
|
|
|
|
return this as T;
|
2016-03-23 08:36:04 +08:00
|
|
|
|
}
|
2016-03-21 05:19:02 +08:00
|
|
|
|
}
|
|
|
|
|
}
|