Example #1
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);
         name = c + val[1];
     }
     else
         name = src.name;
     desc = src.desc;
     this.optional = optional;
     this.repeat = repeat;
 }
Example #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);
         name = c + val[1];
     }
     else
     {
         name = src.name;
     }
     desc          = src.desc;
     this.optional = optional;
     this.repeat   = repeat;
 }
Example #3
0
 private RecordStructure(RecordsRecord rec, SubrecordBase[] subrecordTree, SubrecordStructure[] subrecords)
 {
     name = rec.name;
     description = rec.desc;
     this.subrecordTree = subrecordTree;
     this.subrecords = subrecords;
 }
Example #4
0
 public SubrecordGroup(Group node, SubrecordBase[] items) : base(node)
 {
     elements = items;
 }
Example #5
0
 public LoopContext(int start, SubrecordBase[] sss)
 {
     idx = start;
     ssidx = 0;
     this.sss = sss;
     matches = 0;
 }