Bazaar developer reference

CvPromotionEntry::SetSound(const char *)

Defined in
CvPromotionClasses.cpp, line 1764
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_SetSound

Hooks

static bool BeforeCvPromotionEntry_SetSound(CvPromotionEntry* self, const char* szVal);static void AfterCvPromotionEntry_SetSound(CvPromotionEntry* self, const char* szVal);static void ReplaceCvPromotionEntry_SetSound(void (*original)(CvPromotionEntry*, const char*), CvPromotionEntry* self, const char* szVal);CivRegisterBefore<CivHooks::CvPromotionEntry_SetSound>(host, &BeforeCvPromotionEntry_SetSound);CivRegisterAfter<CivHooks::CvPromotionEntry_SetSound>(host, &AfterCvPromotionEntry_SetSound);CivRegisterReplace<CivHooks::CvPromotionEntry_SetSound>(host, &ReplaceCvPromotionEntry_SetSound);

Code

1763/// Set the sound to be played when the promotion is gained1764void CvPromotionEntry::SetSound(const char* szVal)1765{1766	m_strSound = szVal;1767}

Calls

Called by