示例#1
0
        public override void FromJson(string data)
        {
            VarData d = JsonConvert.DeserializeObject <VarData>(data);

            SetBaseNodeDate(d);
            varName = d.varName;
        }
示例#2
0
        public override string GetJson()
        {
            VarData d = new VarData();

            FillBaseNodeData(d);
            d.varName = varName;

            return(JsonConvert.SerializeObject(d));
        }
示例#3
0
        public override void FromJson(Dictionary <string, Node> nodes, string data)
        {
            VarData d = JsonConvert.DeserializeObject <VarData>(data);

            SetBaseNodeDate(d);
            varName = d.varName;

            SetConnections(nodes, d.outputs);

            TryAndProcess();
        }