Bazaar developer reference

CvPreGame::civilizationKeyPackageID(PlayerTypes)

Defined in
CvPreGame.cpp, line 3458
Hook name
CivHooks::CvPreGame_civilizationKeyPackageID

Hooks

static bool BeforeCvPreGame_civilizationKeyPackageID(PlayerTypes p, const GUID*& result);static void AfterCvPreGame_civilizationKeyPackageID(PlayerTypes p, const GUID*& result);static const GUID& ReplaceCvPreGame_civilizationKeyPackageID(const GUID& (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_civilizationKeyPackageID>(host, &BeforeCvPreGame_civilizationKeyPackageID);CivRegisterAfter<CivHooks::CvPreGame_civilizationKeyPackageID>(host, &AfterCvPreGame_civilizationKeyPackageID);CivRegisterReplace<CivHooks::CvPreGame_civilizationKeyPackageID>(host, &ReplaceCvPreGame_civilizationKeyPackageID);

Code

3457// Get the package ID the player's civilization is from.  If empty, it comes from the base installation.3458const GUID& civilizationKeyPackageID(PlayerTypes p)3459{3460	if(p >= 0 && p < MAX_PLAYERS)3461	{3462		return s_civilizationPackageID[p];3463	}34643465	return s_emptyGUID;3466}

Calls

Called by