Add Bofa.Deserialize

This commit is contained in:
Booklordofthedings 2024-09-26 14:32:37 +02:00
parent c8629face9
commit dbc38e0195

View file

@ -14,6 +14,16 @@ class Bofa
public StringView Typename;
public BofaValue Value;
public static bool Deserialize<T>(ref T pType, Dictionary<StringView, Bofa> pDictionary) where T : Bofa.Serialization.IBofaParseable
{
Bofa b = scope .();
b.Type = .Object;
b.Value.Object = pDictionary;
defer {b.Type = .Integer;}
return pType.Deserialize(b);
}
public override void ToString(String strBuffer)
{
int64 depth = 0;