예제 #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();
        }