mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-07-19 20:11:55 +08:00
Color fixes. Draw.Circle. JSON.Enum. OnCollide leak fix
This commit is contained in:
@ -20,6 +20,11 @@ namespace Strawberry
|
||||
|
||||
public int Int => (int)Number;
|
||||
public char8 Char => String[0];
|
||||
public T Enum<T>() where T : Enum
|
||||
{
|
||||
Runtime.Assert(Type == .String);
|
||||
return T.Parse<T>(String, true);
|
||||
}
|
||||
|
||||
private List<JSON> array;
|
||||
private Dictionary<String, JSON> children;
|
||||
|
Reference in New Issue
Block a user