Math is hard

This commit is contained in:
Lani Aung
2021-11-20 20:43:36 -07:00
parent 4060f3c69d
commit 720b387dd3
20 changed files with 1010 additions and 63 deletions
+3 -2
View File
@@ -1,3 +1,5 @@
using System.Collections.Generic;
namespace fxl.codes.kisekae.Entities
{
public class CelConfig
@@ -10,10 +12,9 @@ namespace fxl.codes.kisekae.Entities
public Palette Palette { get; set; }
public int PaletteGroup { get; set; }
public string Comment { get; set; }
public int X { get; set; }
public int Y { get; set; }
public int Transparency { get; set; }
public Set Sets { get; set; }
public Render Render { get; set; }
public List<CelPosition> Positions { get; set; } = new();
}
}
+10
View File
@@ -0,0 +1,10 @@
namespace fxl.codes.kisekae.Entities
{
public class CelPosition
{
public int Id { get; set; }
public int Set { get; set; }
public int X { get; set; }
public int Y { get; set; }
}
}
+1 -1
View File
@@ -13,6 +13,6 @@ namespace fxl.codes.kisekae.Entities
public string Data { get; set; }
public int Height { get; set; }
public int Width { get; set; }
public int BorderIndex { get; set; }
public string BackgroundColorHex { get; set; }
}
}
-1
View File
@@ -7,7 +7,6 @@ namespace fxl.codes.kisekae.Entities
public int Id { get; set; }
public Kisekae Kisekae { get; set; }
public string FileName { get; set; }
public string Comment { get; set; }
public List<PaletteColor> Colors { get; set; } = new();
public byte[] Data { get; set; }
}
+11 -11
View File
@@ -5,16 +5,16 @@ namespace fxl.codes.kisekae.Entities
[Flags]
public enum Set
{
Unset = -1,
Zero = 2 ^ 0,
One = 2 ^ 1,
Two = 2 ^ 2,
Three = 2 ^ 3,
Four = 2 ^ 4,
Five = 2 ^ 5,
Six = 2 ^ 6,
Seven = 2 ^ 7,
Eight = 2 ^ 8,
Nine = 2 ^ 9
None = 0,
Zero = 1 << 0,
One = 1 << 1,
Two = 1 << 2,
Three = 1 << 3,
Four = 1 << 4,
Five = 1 << 5,
Six = 1 << 6,
Seven = 1 << 7,
Eight = 1 << 8,
Nine = 1 << 9
}
}