Skip to content

Objectives Extractor

Tower kills, barracks destructions, Roshan kills, and Tormentor kills.

Tormentor Kills

Tracks destruction of Tormentor minibosses. Killer player attribution is resolved by combining combat log death data with the corresponding miniboss kill chat event.


Generated API

Module gem.extractors.objectives

Objective event extractor for Dota 2 replays.

Source: src/gem/extractors/objectives.py

Top-level classes

TowerKill

python
class TowerKill

One tower destruction event.

Source: src/gem/extractors/objectives.py:78

Dataclass fields

NameTypeDefault
tickint-
teamint-
killerstr-
tower_namestr-

RoshanKill

python
class RoshanKill

One confirmed Roshan death.

Source: src/gem/extractors/objectives.py:95

Dataclass fields

NameTypeDefault
tickint-
killerstr-
kill_numberint-
dropslist[str]field(...)

BarracksKill

python
class BarracksKill

One barracks destruction event.

Source: src/gem/extractors/objectives.py:114

Dataclass fields

NameTypeDefault
tickint-
teamint-
killerstr-
barracks_namestr-

TormentorKill

python
class TormentorKill

One Tormentor (miniboss) kill event.

Source: src/gem/extractors/objectives.py:131

Dataclass fields

NameTypeDefault
tickint-
killerstr-
killer_player_idint-
kill_numberint-

ShrineKill

python
class ShrineKill

One Shrine of Wisdom destruction event.

Source: src/gem/extractors/objectives.py:150

Dataclass fields

NameTypeDefault
tickint-
teamint-

AegisEvent

python
class AegisEvent

An Aegis of the Immortal pickup, steal, or denial event.

Source: src/gem/extractors/objectives.py:163

Dataclass fields

NameTypeDefault
tickint-
player_idint-
event_typestr-

ObjectivesExtractor

python
class ObjectivesExtractor

Extracts tower kills, Roshan kills, barracks kills, tormentor kills, and shrine kills from a replay.

Source: src/gem/extractors/objectives.py:183

Methods

attach

Signature: def ObjectivesExtractor.attach(self, parser: ReplayParser) -> None

Register this extractor's callbacks with a parser.

Source: src/gem/extractors/objectives.py:220