functional card/row edit and drag

This commit is contained in:
2024-04-23 23:31:42 -05:00
parent 8e01e9cb9b
commit 56dcbb62af
29 changed files with 674 additions and 48 deletions

View File

@@ -0,0 +1,42 @@
using Godot;
using System.Text.Json.Serialization;
public class SerialColor
{
[JsonInclude]
public float R { get; set; }
[JsonInclude]
public float G { get; set; }
[JsonInclude]
public float B { get; set; }
public void Deconstruct(out float r, out float g, out float b)
{
r = R;
g = G;
b = B;
}
public SerialColor()
{
R = 0;
G = 0;
B = 0;
}
public SerialColor(float r, float g, float b)
{
R = r;
G = g;
B = b;
}
public SerialColor(Color c)
{
R = c.R;
G = c.G;
B = c.B;
}
public static implicit operator Color(SerialColor sc)
=> new(
sc.R,
sc.G,
sc.B
);
}