UNPKG

ps2census

Version:

Client to connect to the PS2 Event Stream websocket.

31 lines (30 loc) 844 B
import { Faction } from '../constants/ps2.constants'; import { AttackerEvent } from './base/attacker.event'; import { PS2Events } from '../../stream'; export declare enum Destroy { Normal = 0, Friendly = 1, SelfDestruct = 2, Neutral = 3, Game = 4 } export declare class VehicleDestroy extends AttackerEvent<PS2Events.VehicleDestroy> { readonly emit = "vehicleDestroy"; readonly event_name: 'VehicleDestroy'; readonly facility_id: string; readonly faction_id: Faction; readonly vehicle_id: string; /** * Vehicle was abandoned(friendly destroys are not counted) * * @return {boolean} */ unclaimed(): boolean; /** * Checks the cause of death(some real CSI sh*t going on here) * * @return {Destroy} */ get kill_type(): Destroy; toHash(): string; }