Bazaar developer reference

sortHotkeyPriority(const OrderIndex &, const OrderIndex &)

Defined in
CvDllDatabaseUtility.cpp, line 1035
Hook name
CivHooks::sortHotkeyPriority

Hooks

static bool BeforesortHotkeyPriority(const OrderIndex& orderIndex1, const OrderIndex& orderIndex2, bool& result);static void AftersortHotkeyPriority(const OrderIndex& orderIndex1, const OrderIndex& orderIndex2, bool& result);static bool ReplacesortHotkeyPriority(bool (*original)(const OrderIndex&, const OrderIndex&), const OrderIndex& orderIndex1, const OrderIndex& orderIndex2);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::sortHotkeyPriority::ID, CIV_HOOK_BEFORE, (void*)&BeforesortHotkeyPriority);host->RegisterHook(host->pluginIndex, CivHooks::sortHotkeyPriority::ID, CIV_HOOK_AFTER, (void*)&AftersortHotkeyPriority);host->RegisterHook(host->pluginIndex, CivHooks::sortHotkeyPriority::ID, CIV_HOOK_REPLACE, (void*)&ReplacesortHotkeyPriority);

Code

1035bool sortHotkeyPriority(const OrderIndex& orderIndex1, const OrderIndex& orderIndex2)1036{1037	return (orderIndex1.m_iPriority > orderIndex2.m_iPriority);1038}

Called by