Bazaar developer reference

IsGUIDEmpty(const GUID &)

Defined in
CvGameCoreUtils.cpp, line 1536
Hook name
CivHooks::IsGUIDEmpty

Hooks

static bool BeforeIsGUIDEmpty(const GUID& kGUID, bool& result);static void AfterIsGUIDEmpty(const GUID& kGUID, bool& result);static bool ReplaceIsGUIDEmpty(bool (*original)(const GUID&), const GUID& kGUID);CivRegisterBefore<CivHooks::IsGUIDEmpty>(host, &BeforeIsGUIDEmpty);CivRegisterAfter<CivHooks::IsGUIDEmpty>(host, &AfterIsGUIDEmpty);CivRegisterReplace<CivHooks::IsGUIDEmpty>(host, &ReplaceIsGUIDEmpty);

Code

1536bool IsGUIDEmpty(const GUID& kGUID)1537{1538	return kGUID.Data1 == 0 && kGUID.Data2 == 0 && kGUID.Data3 == 0 && *(INT32*)&kGUID.Data4[0] == 0 && *(INT32*)&kGUID.Data4[4] == 0;1539}