ace/Source/ACE.Adapter/GDLE/Models/Skill.cs
Ty Conner 12e569652f
Switch to System.Text.Json (#4002)
* 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
2023-12-21 14:15:38 -05:00

45 lines
995 B
C#

using Lifestoned.DataModel.Shared;
using System.Text.Json.Serialization;
namespace ACE.Adapter.GDLE.Models
{
public class Skill
{
[JsonPropertyName("level_from_pp")]
public uint? LevelFromPp { get; set; } = 0u;
[JsonPropertyName("last_used_time")]
public float? LastUsed { get; set; } = 0f;
[JsonPropertyName("init_level")]
public uint? Ranks { get; set; } = 0u;
[JsonPropertyName("pp")]
public uint? XpInvested { get; set; } = 0u;
[JsonPropertyName("resistance_of_last_check")]
public uint? ResistanceOfLastCheck { get; set; } = 0u;
[JsonPropertyName("sac")]
public int? TrainedLevel { get; set; } = 0;
[JsonIgnore]
public SkillStatus? Status_Binder
{
get
{
return (SkillStatus?)TrainedLevel;
}
set
{
TrainedLevel = (int?)value;
}
}
}
}