Converting to EF, need to work on TS

This commit is contained in:
Lani Aung
2021-11-19 23:04:15 -07:00
parent 1fd14ebafd
commit 744fc6bc57
43 changed files with 2159 additions and 542 deletions
+14 -6
View File
@@ -1,17 +1,25 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
using SixLabors.ImageSharp;
using Configuration = fxl.codes.kisekae.Entities.Configuration;
namespace fxl.codes.kisekae.Models
{
public class PlaysetModel
{
public readonly int Height;
public readonly string Name;
public readonly int Width;
public readonly CelModel[] Cels;
[JsonIgnore] public Color BorderColor = Color.Black;
public string Name { get; set; }
public int Height { get; set; }
public int Width { get; set; }
[JsonIgnore] public List<PaletteModel> Palettes { get; } = new();
public List<CelModel> Cels { get; } = new();
public bool[] EnabledSets { get; } = new bool[10];
internal PlaysetModel(Configuration configuration)
{
Name = configuration.Name;
Height = configuration.Height;
Width = configuration.Width;
Cels = new CelModel[0];
}
}
}