/** * @module net/packets/incoming */ import { Writer } from '../../writer'; import { Reader } from '../../reader'; import { PacketType } from '../../packet-type'; import { Packet } from '../../packet'; /** * Received when a player has died. */ export declare class DeathPacket implements Packet { type: PacketType; propagate: boolean; /** * The account id of the player who died. */ accountId: string; /** * The character id of the player who died. */ charId: number; /** * The cause of death. */ killedBy: string; /** * The object id of the zombie, if the player died wearing a cursed amulet. */ zombieId: number; /** * The type of zombie, if the player died wearing a cursed amulet. */ zombieType: number; /** * Whether or not a zombie was spawned. * * This is a derived property, and is the result of `zombieId !== -1`. */ isZombie: boolean; read(reader: Reader): void; write(writer: Writer): void; } //# sourceMappingURL=death-packet.d.ts.map