Bazaar developer reference

CvDllPreGame::setTeamType(PlayerTypes, TeamTypes)

Defined in
CvDllPreGame.cpp, line 965
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_setTeamType

Hooks

static bool BeforeCvDllPreGame_setTeamType(CvDllPreGame* self, PlayerTypes p, TeamTypes t);static void AfterCvDllPreGame_setTeamType(CvDllPreGame* self, PlayerTypes p, TeamTypes t);static void ReplaceCvDllPreGame_setTeamType(void (*original)(CvDllPreGame*, PlayerTypes, TeamTypes), CvDllPreGame* self, PlayerTypes p, TeamTypes t);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setTeamType::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_setTeamType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setTeamType::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_setTeamType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setTeamType::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_setTeamType);

Code

965void CvDllPreGame::setTeamType(PlayerTypes p, TeamTypes t)966{967	CvPreGame::setTeamType(p, t);968}

Calls