16 lines
520 B
TypeScript
16 lines
520 B
TypeScript
/**
|
|
* 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
|
|
|
|
} |