This commit is contained in:
2021-06-27 20:27:03 -05:00
commit cbd4520e12
42 changed files with 1836 additions and 0 deletions

16
Hooks.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
/**
* Hook Functions
* @public
* @noSelf
*/
declare namespace hook {
type script_event_hook = (source: Player, target: Player, params: int[], count: int) => false|null;
type net_event_hook = (source: Player, target: Player, eventId: int) => false|null;
function register_script_event_hook(callback: script_event_hook): int
function remove_script_event_hook(id: int): boolean
function register_net_event_hook(callback: net_event_hook): int
function remove_net_event_hook(id: int): boolean
}