示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }