Esempio n. 1
0
        public override void FromJson(Dictionary <string, Node> nodes, string data)
        {
            BitmapNodeData d = JsonConvert.DeserializeObject <BitmapNodeData>(data);

            SetBaseNodeDate(d);
            path         = d.path;
            Resource     = d.resource;
            relativePath = d.relativePath;
        }
Esempio n. 2
0
        public override string GetJson()
        {
            BitmapNodeData d = new BitmapNodeData();

            FillBaseNodeData(d);
            d.path         = Path;
            d.relativePath = relativePath;
            d.resource     = Resource;

            return(JsonConvert.SerializeObject(d));
        }