DB/ChrCustomization: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Template:Sandbox/VersionRange|min_expansionlevel=7|min_build=7.3.5.25600}} struct ChrCustomizationRec { uint32_t m_ID; {{Template:Type|stringref}} m_name; uint32_...") |
mNo edit summary |
||
Line 3: | Line 3: | ||
struct ChrCustomizationRec { | struct ChrCustomizationRec { | ||
uint32_t m_ID; | uint32_t m_ID; | ||
{{Template:Type|stringref}} m_name; | {{Template:Type|stringref}} {{Template:Unverified|m_name}}; | ||
uint32_t m_sexID; // 0x1 female, 0x3 both | uint32_t {{Template:Unverified|m_sexID}}; // 0x1 female, 0x3 both | ||
uint32_t | uint32_t {{Template:Unverified|m_baseSection}}; | ||
uint32_t m_field0C; // similar to previous field... | uint32_t {{Template:Unverified|m_field0C}}; // similar to previous field... | ||
uint32_t m_field10; // something to do with tattoos (0 or 1)... | uint32_t {{Template:Unverified|m_field10}}; // {{Template:Unverified|something to do with tattoos (0 or 1)...}} | ||
int32_t m_field14[3]; // field14[0] is textureRegion for tattoos, rest are -1... | int32_t {{Template:Unverified|m_field14}}[3]; // field14[0] is textureRegion for tattoos, rest are -1... | ||
uint32_t m_raceID; // 0 for all races | uint32_t {{Template:Unverified|m_raceID}}; // {{Template:Unverified|0 for all races}} | ||
}; | }; | ||
Revision as of 15:17, 26 February 2018
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(); } } }