using System.Text.Json.Serialization;
namespace ACE.Server.Mods
{
public class ModMetadata
{
[JsonIgnore]
public const string FILENAME = "Meta.json";
[JsonIgnore]
public const string TYPENAME = "Mod";
public string Name { get; set; } = "SomeMod";
public string Author { get; set; } = "";
public string Description { get; set; }
public string Version { get; set; } = "1.0";
public uint Priority { get; set; } = 0u;
///
/// Determines whether mod is patched on load.
///
public bool Enabled { get; set; } = true;
///
/// Reload the mod when the assembly changes
///
public bool HotReload { get; set; } = true;
///
/// Loads/unloads methods with CommandHandler attributes
///
public bool RegisterCommands { get; set; } = true;
#region Requirements/Conflicts
////Todo
/////
///// Mods that must be available
/////
//public IList Dependencies { get; set; }
/////
/////
///// Mods that cannot be available
/////
//public IList Conflicts { get; set; }
/////
///// Server requirements
/////
//public string ACEVersion { get; set; } = "0.0";
#endregion
}
}