Add enable/disable_logevent() natives

This commit is contained in:
Arkshine
2015-12-24 18:25:52 +01:00
parent ac37f8053b
commit 17a31b75d7
6 changed files with 131 additions and 32 deletions

View File

@ -566,12 +566,32 @@ native disable_event(handle);
* - "&" for substring comparison
* The argument is compared to the specified string accordingly
*
* @return 1 on successfully registering event, 0 on failure
* @return Log event handle
* @error If an invalid callback function is provided, an error will
* be thrown.
*/
native register_logevent(const function[], argsnum, ...);
/**
* Enables a function hook of a game log event which has been previously registered with register_logevent().
*
* @param handle Value returned from register_logevent()
*
* @noreturn
* @error If an invalid handle is provided, an error will be thrown.
*/
native enable_logevent(handle);
/**
* Disables a function hook of a game log event which has been previously registered with register_logevent().
*
* @param handle Value returned from register_logevent()
*
* @noreturn
* @error If an invalid handle is provided, an error will be thrown.
*/
native disable_logevent(handle);
/**
* Sets display parameters for hudmessages.
*