public void ParseMacroSets(List <ShaderMacroModel> model) { if (m_jobjData != null) { JArray rootArray = m_jobjData ["macro_sets"] as JArray; for (int i = 0; i < rootArray.Count; i++) { JToken val = rootArray[i]; { ShaderMacroModel iner = new ShaderMacroModel(); iner.name = (string)val["name"]; iner.file = (string)val ["file"]; JToken desc = val ["variables"]; iner.variables.Add((string)desc ["desc"]); model.Add(iner); } } } }
public void ParseMacroSets(List<ShaderMacroModel> model) { if (m_jobjData != null) { JArray rootArray = m_jobjData ["macro_sets"] as JArray; for (int i = 0; i < rootArray.Count; i++) { JToken val = rootArray[i]; { ShaderMacroModel iner = new ShaderMacroModel (); iner.name = (string)val["name"]; iner.file = (string)val ["file"]; JToken desc = val ["variables"]; iner.variables.Add ((string)desc ["desc"]); model.Add (iner); } } } }