DB/ChrCustomization
Jump to navigation
Jump to search
struct ChrCustomizationRec { uint32_t m_ID; stringrefⁱ m_nameᵘ; uint32_t m_sexIDᵘ; // 0x1 female, 0x3 both uint32_t m_baseSectionᵘ; uint32_t m_field0Cᵘ; // similar to previous field... uint32_t m_field10ᵘ; // something to do with tattoos (0 or 1)...ᵘ int32_t m_field14ᵘ[3]; // field14[0] is textureRegion for tattoos, rest are -1... uint32_t m_raceIDᵘ; // 0 for all racesᵘ };
C# parsing example
(by TOM_RUS)
public static void DumpCustomizations() { foreach (var raceRec in ClientDB.ChrRaces.Records) { for (int gender = 0; gender < 2; gender++) { Console.WriteLine("Customizations for {0} {1}:", (Races)raceRec.Id, (Gender)gender); foreach (var cust in ClientDB.ChrCustomization.Records) { if ((cust.m_raceID == 0 || cust.m_raceID == raceRec.Id) && (cust.m_sexID == 3 || cust.m_sexID == gender)) { Console.WriteLine("{0}: field08 {1}, field0C {2}, field10 {3}, field14 [{4}, {5}, {6}]", cust.m_name, cust.field08, cust.field0C, cust.field10, cust.field14[0], cust.field14[1], cust.field14[2]); } } Console.WriteLine(); } } }