mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using RadicadeServer.Extensions;
|
||||
|
||||
namespace RadicadeServer.RecNet.Accounts.Local
|
||||
{
|
||||
public class PlayerSettings
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public long AccountId { get; set; }
|
||||
public string Settings { get; set; } = "[]";
|
||||
|
||||
public List<Setting> DeserializeSettings()
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(Settings))
|
||||
return new List<Setting>();
|
||||
|
||||
return Settings.FromJson<List<Setting>>() ?? new List<Setting>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user