UNPKG

anomaly-packer

Version:

Anomaly Packer is a utility package for STALKER Anomaly creators to help them develop addons at speed with TypeScript's type-safety and game-oriented build tools.

25 lines (20 loc) 847 B
/** @noSelfInFile */ import type { Section } from 'anomaly-packer' declare global { namespace xr_box { export const ph_item_box_manager: AnyTable export function create_items(obj: CGameObject, section: Section.Item, number: number, rnd: boolean): void export function create_obligatory_items(obj: CGameObject, spawn_ini: system_ini): void export function get_box_manager(): AnyTable } /** @customConstructor ph_item_box */ class ph_item_box { constructor() spawn_items(obj: CGameObject, who: CGameObject, spawn_ini: system_ini): void } namespace xr_box { /** Anomaly `class "ph_item_box"` is also reachable on the `xr_box` script namespace; typed as * the instance so its methods can be captured/overridden (`xr_box.ph_item_box.Method = ...`). */ export const ph_item_box: ph_item_box } }