mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2026-11-30 00:08:31 +08:00
Color fixes. Draw.Circle. JSON.Enum. OnCollide leak fix
This commit is contained in:
1 parent
53ab0a7910
commit
afabb58543
6 files changed
+50
-3
No files matched your search
@@ -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