finished (?)

This commit is contained in:
2021-06-25 20:12:25 -05:00
parent cf00c7c212
commit df29e4d0ef
11 changed files with 150 additions and 150 deletions

View File

@@ -5,6 +5,12 @@
*/
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
}