Color fixes. Draw.Circle. JSON.Enum. OnCollide leak fix

This commit is contained in:
Matt Thorson
2020-05-31 17:26:50 -07:00
parent 53ab0a7910
commit afabb58543
6 changed files with 50 additions and 3 deletions

View File

@ -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;