Bazaar developer reference

CvPreGame::setNetID(PlayerTypes, int)

Defined in
CvPreGame.cpp, line 2813
Hook name
CivHooks::CvPreGame_setNetID

Hooks

static bool BeforeCvPreGame_setNetID(PlayerTypes p, int id);static void AfterCvPreGame_setNetID(PlayerTypes p, int id);static void ReplaceCvPreGame_setNetID(void (*original)(PlayerTypes, int), PlayerTypes p, int id);CivRegisterBefore<CivHooks::CvPreGame_setNetID>(host, &BeforeCvPreGame_setNetID);CivRegisterAfter<CivHooks::CvPreGame_setNetID>(host, &AfterCvPreGame_setNetID);CivRegisterReplace<CivHooks::CvPreGame_setNetID>(host, &ReplaceCvPreGame_setNetID);

Code

2813void setNetID(PlayerTypes p, int id)2814{2815	if(p >= 0 && p < MAX_PLAYERS)2816		s_netIDs.setAt(p, id);2817}

Calls

Called by