Exemplo n.º 1
0
        internal static PSB Parse(string json, ushort version)
        {
            PSB psb = new PSB(version)
            {
                Objects = JsonConvert.DeserializeObject <PsbDictionary>(json, new PsbJsonConverter())
            };

            psb.Type = psb.InferType();
            return(psb);
        }
Exemplo n.º 2
0
        internal static PSB Parse(string json, ushort version)
        {
            PSB psb = new PSB(version)
            {
                Objects = JsonConvert.DeserializeObject <PsbDictionary>(json, new PsbJsonConverter())
            };

            psb.InferType();
            psb.Collect(false, false); //don't merge res since it's empty now
            return(psb);
        }