You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proctor666 edited this page Mar 26, 2018
·
2 revisions
Callbacks & fonctions hookées
Les hooks de callbacks et de fonctions doivent respecter la mise en forme suivante :
Callbacks
Pour faciliter le debugging du programme, toute callback hookée avec Y_Hooks doit avoir une valeur de retour exprimée avec l'une des définitions suivantes:
Y_HOOKS_CONTINUE_RETURN_1
Y_HOOKS_CONTINUE_RETURN_0
Y_HOOKS_BREAK_RETURN_1
Y_HOOKS_BREAK_RETURN_0
Exemple:
hook OnGameModeInit()
{
// do somethingreturnY_HOOKS_CONTINUE_RETURN_1;
}
Fonctions
Chaque fonction hookée doit respecter la méthode ALS.