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.

46 lines (41 loc) 1.63 kB
/** @noSelfInFile */ import type { Section } from 'anomaly-packer' declare global { namespace bind_campfire { const campfires_all: Record< string, { campfire?: { is_on(): boolean } object: CGameObject } > export function get_nearby_campfire(dist: number, result: boolean): any export function check_no_nearby_campfire(): boolean export function turn_off_campfires_by_smart_name(smart_name: string, use_rand: boolean): void export function rain_pass(): boolean export function use_campfire(actor: CGameObject, zone: CGameObject, p: any[]): void export function campfire_go_on(obj: CGameObject, cf: any): void export function campfire_go_off(cf: any): void export function actor_on_item_use(obj: CGameObject, _: any, cf: any): void export function on_game_start(): void export function bind(obj: CGameObject): void } /** @customConstructor campfire_binder */ class campfire_binder extends object_binder { campfire: TODO // @generated field — refine type constructor(obj: CGameObject) reload(section: Section.Item): void reinit(): void net_spawn(se_abstract: CseAbstract): boolean net_destroy(se_abstract: CseAbstract): void update(delta: number): void use_campfire(): void } namespace bind_campfire { /** Anomaly `class "campfire_binder"` is also reachable on the `bind_campfire` script namespace; typed as * the instance so its methods can be captured/overridden (`bind_campfire.campfire_binder.Method = ...`). */ export const campfire_binder: campfire_binder } }