1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-15 22:57:12 +02:00

Return entity instance instead of object.

Implement helper entity iteration functions.
This commit is contained in:
Sandu Liviu Catalin
2021-03-20 11:51:40 +02:00
parent 45c857f439
commit 26cb65fcbc
10 changed files with 124 additions and 64 deletions

View File

@ -70,10 +70,10 @@ void Core::EmitCheckpointCreated(int32_t checkpoint, int32_t header, LightObj &
}
// ------------------------------------------------------------------------------------------------
void Core::EmitKeyBindCreated(int32_t keybind, int32_t header, LightObj & payload)
void Core::EmitKeyBindCreated(int32_t key_bind, int32_t header, LightObj & payload)
{
SQMOD_CO_EV_TRACEBACK("[TRACE<] Core::KeyBindCreated(%d, %d, %s)", keybind, header, NULL_SQOBJ_(payload))
(*mOnKeyBindCreated.first)(m_KeyBinds.at(static_cast< size_t >(keybind)).mObj, header, payload);
(*mOnKeyBindCreated.first)(m_KeyBinds.at(static_cast< size_t >(key_bind)).mObj, header, payload);
SQMOD_CO_EV_TRACEBACK("[TRACE>] Core::KeyBindCreated")
}