// Token: 0x06000011 RID: 17 RVA: 0x00002CF8 File Offset: 0x00000EF8 private static void GetBioData() { CMLparser.FindDataTag("DOC "); CMLparser.br.ReadInt32(); CMLparser.br.ReadInt16(); CMLparser.race = CMLparser.br.ReadInt32(); CMLparser.br.ReadInt16(); CMLparser.sex = CMLparser.br.ReadInt32(); if (CMLparser.showLog) { Console.WriteLine("Race: " + CMLparser.race.ToString() + "\nSex: " + CMLparser.sex.ToString()); } }
// Token: 0x06000016 RID: 22 RVA: 0x000030D8 File Offset: 0x000012D8 private static void GetSLCTData() { if (!CMLparser.FindDataTag("SLCT")) { return; } CMLparser.br.ReadInt16(); int num = (int)CMLparser.br.ReadInt16(); if (num > 20) { CMLparser.SLCTdata = new int[num]; } else { CMLparser.SLCTdata = new int[20]; } if (CMLparser.showLog) { Console.WriteLine("SLCT elements: " + num.ToString()); } for (int i = 0; i < num; i++) { int byteFromBCD = (int)CMLparser.GetByteFromBCD((byte)(CMLparser.br.ReadByte() - 64)); if (CMLparser.showLog) { Console.WriteLine("datatag: " + byteFromBCD.ToString()); } CMLparser.br.ReadByte(); CMLparser.SLCTdata[byteFromBCD] = CMLparser.br.ReadInt32(); } if (CMLparser.showLog) { int num3 = 0; foreach (int num2 in CMLparser.SLCTdata) { Console.WriteLine(Enum.GetName(typeof(CMLparser.SLCTtypes), num3) + " " + num2.ToString()); num3++; } } if (CMLparser.SLCTdata[17] == 0) { CMLparser.SLCTdata[17] = 20001; } if (CMLparser.SLCTdata[18] == 0) { CMLparser.SLCTdata[18] = 20001; } }
// Token: 0x06000010 RID: 16 RVA: 0x00002C50 File Offset: 0x00000E50 private static void FindFileData() { CMLparser.FindDataTag("cml"); CMLparser.br.ReadByte(); CMLparser.FileSizeTotal = CMLparser.br.ReadInt32(); CMLparser.FileSize = CMLparser.br.ReadInt32(); CMLparser.VTBFLoc = CMLparser.br.ReadInt32(); if (CMLparser.showLog) { Console.WriteLine(string.Concat(new string[] { "File Size Total: ", CMLparser.FileSizeTotal.ToString(), "\nFileSize: ", CMLparser.FileSize.ToString(), "\nVTBFLoc: ", CMLparser.VTBFLoc.ToString() })); } }
// Token: 0x06000015 RID: 21 RVA: 0x00002FDC File Offset: 0x000011DC private static void GetCOLRData() { if (!CMLparser.FindDataTag("COLR")) { return; } CMLparser.br.ReadInt16(); int num = (int)CMLparser.br.ReadInt16(); CMLparser.COLRdata = new int[num * 3]; if (CMLparser.showLog) { Console.WriteLine("COLR elements: " + num.ToString()); } for (int i = 0; i < num; i++) { int num2 = (int)(CMLparser.br.ReadByte() - 32); int num3 = 0; if (CMLparser.showLog) { Console.WriteLine("datatag: " + num2.ToString()); } CMLparser.br.ReadBytes(2); for (int j = 0; j < 3; j++) { CMLparser.COLRdata[num2 * 3 + num3] = CMLparser.br.ReadInt32(); num3++; } } if (CMLparser.showLog) { int num3 = 0; foreach (int num4 in CMLparser.COLRdata) { Console.WriteLine(Enum.GetName(typeof(CMLparser.COLRtypes), num3 / 3) + " " + num4.ToString()); num3++; } } }
// Token: 0x06000013 RID: 19 RVA: 0x00002D90 File Offset: 0x00000F90 private static void GetFIGRData() { if (!CMLparser.FindDataTag("FIGR")) { return; } CMLparser.br.ReadInt16(); int b = (int)CMLparser.br.ReadByte(); CMLparser.br.ReadByte(); CMLparser.FIGRdata = new int[60]; if (CMLparser.showLog) { Console.WriteLine("FIGR elements: " + b.ToString()); } for (int i = 0; i < b; i++) { int num = (int)CMLparser.br.ReadByte(); CMLparser.br.ReadBytes(2); int num2 = 0; for (int j = 0; j < 3; j++) { try { CMLparser.FIGRdata[i * 3 + num2] = CMLparser.br.ReadInt32(); } catch (IndexOutOfRangeException) { CMLparser.tb.AppendText(Environment.NewLine + "Unhandled datatag: " + num); } num2++; } } if (b < 13) { CMLparser.DupeSliderData(CMLparser.FIGRdata, 0, 13); } if (b < 14) { CMLparser.DupeSliderData(CMLparser.FIGRdata, 1, 14); } if (b < 15) { CMLparser.DupeSliderData(CMLparser.FIGRdata, 2, 15); } if (b < 16) { CMLparser.DupeSliderData(CMLparser.FIGRdata, 3, 16); } if (b < 17) { CMLparser.DupeSliderData(CMLparser.FIGRdata, 4, 17); } if (b < 18) { CMLparser.DupeSliderData(CMLparser.FIGRdata, 11, 18); } if (b < 19) { CMLparser.DupeSliderData(CMLparser.FIGRdata, 12, 19); } if (CMLparser.showLog) { int num3 = 0; foreach (int num4 in CMLparser.FIGRdata) { Console.WriteLine(Enum.GetName(typeof(CMLparser.FIGRtypes), num3 / 3) + " " + num4.ToString()); num3++; } } }