init
This commit is contained in:
16
Hooks.d.ts
vendored
Normal file
16
Hooks.d.ts
vendored
Normal 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
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user