Added get_event_state and get_logevent_state

Added get_event_state and get_logevent_state
This commit is contained in:
Cleverson 2020-01-07 14:42:19 -03:00 committed by GitHub
parent e1daf5046d
commit 01925c3c30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -604,6 +604,16 @@ native enable_event(handle);
*/
native disable_event(handle);
/**
* Get the state of a game event which has been previously registered with register_event_ex().
*
* @param handle Value returned from register_event() or register_event_ex()
*
* @return 1 if event is enabled, 0 otherwise
* @error If an invalid handle is provided, an error will be thrown.
*/
native get_event_state(handle);
/**
* Registers a function to be called on a given log event.
*
@ -651,6 +661,16 @@ native enable_logevent(handle);
*/
native disable_logevent(handle);
/**
* Get the state of a game log event which has been previously registered with register_logevent().
*
* @param handle Value returned from register_logevent()
*
* @return 1 if log event is enabled, 0 otherwise
* @error If an invalid handle is provided, an error will be thrown.
*/
native get_logevent_state(handle);
/**
* Sets display parameters for hudmessages.
*