mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Switch to System.Text.Json Removed Newtonsoft.Json and DouglasCrockford.JsMin * Update GameConfiguration.cs * Update MasterConfiguration.cs * Update ThreadConfiguration.cs * Update StarterSpell.cs * Update StarterGearFactory.cs * Update Program_Setup.cs * Update LifestonedConverter.cs * Update Program_Setup.cs * Update Program_Setup.cs * Update ACE.Adaptor Shift JSON weenie [de]serialization to System.Text.Json * Update LifestonedConverter.cs * Update StarterGearFactory.cs * Update ACE.Server.csproj * Update ACE.Server.Tests.csproj * Update Program.cs * Update MySqlConfiguration.cs * Update DDDConfiguration.cs * Update ModContainer.cs * Update ModManager.cs * Update ModMetadata.cs * Update ModMetadata.cs
52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
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;
|
|
|
|
/// <summary>
|
|
/// Determines whether mod is patched on load.
|
|
/// </summary>
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Reload the mod when the assembly changes
|
|
/// </summary>
|
|
public bool HotReload { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Loads/unloads methods with CommandHandler attributes
|
|
/// </summary>
|
|
public bool RegisterCommands { get; set; } = true;
|
|
|
|
#region Requirements/Conflicts
|
|
////Todo
|
|
///// <summary>
|
|
///// Mods that must be available
|
|
///// </summary>
|
|
//public IList<ModMetadata> Dependencies { get; set; }
|
|
|
|
///// <summary>
|
|
/////
|
|
///// Mods that cannot be available
|
|
///// </summary>
|
|
//public IList<ModMetadata> Conflicts { get; set; }
|
|
|
|
///// <summary>
|
|
///// Server requirements
|
|
///// </summary>
|
|
//public string ACEVersion { get; set; } = "0.0";
|
|
#endregion
|
|
}
|
|
}
|