示例#1
0
 private RecordStructure(RecordsRecord rec, SubrecordBase[] subrecordTree, SubrecordStructure[] subrecords)
 {
     this.name = rec.name;
     this.description = rec.desc;
     this.subrecordTree = subrecordTree;
     this.subrecords = subrecords;
 }
示例#2
0
        protected SubrecordBase(SubrecordBase src, int optional, int repeat)
        {
            if (src.name.StartsWith("&#x"))
            {
                string[] val = src.name.Split(new[] { ';' }, 2, StringSplitOptions.None);
                var      c   = (char)int.Parse(val[0].Substring(3), NumberStyles.HexNumber, null);
                this.name = c + val[1];
            }
            else
            {
                this.name = src.name;
            }

            this.desc     = src.desc;
            this.optional = optional;
            this.repeat   = repeat;
        }
示例#3
0
        protected SubrecordBase(SubrecordBase src, int optional, int repeat)
        {
            if (src.name.StartsWith("&#x"))
            {
                string[] val = src.name.Split(new[] {';'}, 2, StringSplitOptions.None);
                var c = (char) int.Parse(val[0].Substring(3), NumberStyles.HexNumber, null);
                this.name = c + val[1];
            }
            else
            {
                this.name = src.name;
            }

            this.desc = src.desc;
            this.optional = optional;
            this.repeat = repeat;
        }
示例#4
0
 public SubrecordGroup(Group node, SubrecordBase[] items)
     : base(node)
 {
     this.elements = items;
 }
示例#5
0
 public LoopContext(int start, SubrecordBase[] sss)
 {
     this.idx = start;
     this.ssidx = 0;
     this.sss = sss;
     this.matches = 0;
 }