Bazaar developer reference

CvPreGame::netID(PlayerTypes)

Defined in
CvPreGame.cpp, line 1616
Hook name
CivHooks::CvPreGame_netID

Hooks

static bool BeforeCvPreGame_netID(PlayerTypes p, int& result);static void AfterCvPreGame_netID(PlayerTypes p, int& result);static int ReplaceCvPreGame_netID(int (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_netID>(host, &BeforeCvPreGame_netID);CivRegisterAfter<CivHooks::CvPreGame_netID>(host, &AfterCvPreGame_netID);CivRegisterReplace<CivHooks::CvPreGame_netID>(host, &ReplaceCvPreGame_netID);

Code

1616int netID(PlayerTypes p)1617{1618	if(p < MAX_PLAYERS)1619		return s_netIDs[p];1620	return -1;1621}

Calls

Called by