KillLogManager

API reference for KillLogManager in @erlcjs/core.

Manager responsible for fetching, caching, and updating KillLog structures.

Signature:

declare class KillLogManager

#Constructors

Constructor

Modifiers

Description

(constructor)(server, maxCacheSize)

Creates an instance of KillLogManager.

#Properties

Property

Modifiers

Type

Description

cache

Collection<string, KillLog>

Collection cache of logged kills, keyed by a composite Killer:Killed:Timestamp key.

#Methods

Method

Modifiers

Description

fetchAll()

Fetches all kill logs from the game server. Updates the kill log cache.

updateCache(rawCommands)

Re-synchronizes the cache with the raw kill logs. Emits a kill event for new logs.