diff --git a/src/Bofa.bf b/src/Bofa.bf index aeb0277..03371c4 100644 --- a/src/Bofa.bf +++ b/src/Bofa.bf @@ -14,6 +14,16 @@ class Bofa public StringView Typename; public BofaValue Value; + public static bool Deserialize(ref T pType, Dictionary 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;