public bool loadNewReader(EexBinaryReader reader) { sectionList.Clear(); int sectionNum = reader.readUShort(); for (int j = 0; j < sectionNum; j++) { ScriptSection section = new ScriptSection(); section.loadNewReader(reader); sectionList.Add(section); } return(true); }
public bool loadJson(JObject jobj) { sectionList.Clear(); JArray jar = (JArray)jobj["sections"]; foreach (JObject item in jar) { ScriptSection section = new ScriptSection(); section.loadJson(item); sectionList.Add(section); } return(true); }
public bool loadReader(EexBinaryReader reader, int group) { sectionList.Clear(); cmdIndexList.Clear(); int sectionNum = reader.readUShort(); for (int j = 0; j < sectionNum; j++) { ScriptSection section = new ScriptSection(); cmdIndexList.Add(reader.getIndex()); section.loadReader(reader, group); sectionList.Add(section); foreach (int index in section.cmdIndexList) { cmdIndexList.Add(index); } } return(true); }