Converting to EF, need to work on TS
This commit is contained in:
+14
-6
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user