public override void FromJson(string data) { SamplerNodeData d = JsonConvert.DeserializeObject <SamplerNodeData>(data); SetBaseNodeDate(d); sampleIndex = d.sampleIndex; }
public override string GetJson() { SamplerNodeData d = new SamplerNodeData(); FillBaseNodeData(d); d.sampleIndex = sampleIndex; return(JsonConvert.SerializeObject(d)); }
public override void FromJson(Dictionary <string, Node> nodes, string data) { SamplerNodeData d = JsonConvert.DeserializeObject <SamplerNodeData>(data); SetBaseNodeDate(d); sampleIndex = d.sampleIndex; SetConnections(nodes, d.outputs); TryAndProcess(); Updated(); }