Bazaar developer reference

CvDllNetMessageHandler::ResponsePlayerOption(PlayerTypes, PlayerOptionTypes, bool)

Defined in
CvDllNetMessageHandler.cpp, line 729
Class
CvDllNetMessageHandler
Hook name
CivHooks::CvDllNetMessageHandler_ResponsePlayerOption

Hooks

static bool BeforeCvDllNetMessageHandler_ResponsePlayerOption(CvDllNetMessageHandler* self, PlayerTypes ePlayer, PlayerOptionTypes eOption, bool bValue);static void AfterCvDllNetMessageHandler_ResponsePlayerOption(CvDllNetMessageHandler* self, PlayerTypes ePlayer, PlayerOptionTypes eOption, bool bValue);static void ReplaceCvDllNetMessageHandler_ResponsePlayerOption(void (*original)(CvDllNetMessageHandler*, PlayerTypes, PlayerOptionTypes, bool), CvDllNetMessageHandler* self, PlayerTypes ePlayer, PlayerOptionTypes eOption, bool bValue);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetMessageHandler_ResponsePlayerOption::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllNetMessageHandler_ResponsePlayerOption);host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetMessageHandler_ResponsePlayerOption::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllNetMessageHandler_ResponsePlayerOption);host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetMessageHandler_ResponsePlayerOption::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllNetMessageHandler_ResponsePlayerOption);

Code

729void CvDllNetMessageHandler::ResponsePlayerOption(PlayerTypes ePlayer, PlayerOptionTypes eOption, bool bValue)730{731	GET_PLAYER(ePlayer).setOption(eOption, bValue);732}

Calls