gem
v0.13.0

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

class TowerKill

One tower destruction event.

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

Dataclass fields

NameTypeDefault
tickint-
teamint-
killerstr-
tower_namestr-
killer_sourcestr''
killer_teamint | NoneNone

RoshanKill

class RoshanKill

One confirmed Roshan death.

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

Dataclass fields

NameTypeDefault
tickint-
killerstr-
kill_numberint-
dropslist[str]field(...)
killer_sourcestr''
killer_teamint | NoneNone

BarracksKill

class BarracksKill

One barracks destruction event.

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

Dataclass fields

NameTypeDefault
tickint-
teamint-
killerstr-
barracks_namestr-
killer_sourcestr''
killer_teamint | NoneNone

TormentorKill

class TormentorKill

One Tormentor (miniboss) kill event.

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

Dataclass fields

NameTypeDefault
tickint-
killerstr-
killer_player_idint-
kill_numberint-
killer_teamint | NoneNone

ShrineKill

class ShrineKill

One Shrine of Wisdom destruction event.

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

Dataclass fields

NameTypeDefault
tickint-
teamint-

AegisEvent

class AegisEvent

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

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

Dataclass fields

NameTypeDefault
tickint-
player_idint-
event_typestr-

BannerPlant

class BannerPlant

One Roshan's Banner plant event.

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

Dataclass fields

NameTypeDefault
tickint-
teamint-
player_idint-
xfloat | None-
yfloat | None-

CourierDeath

class CourierDeath

One courier death, detected from the combat log.

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

Dataclass fields

NameTypeDefault
tickint-
killerstr-
killer_sourcestr''

ObjectivesExtractor

class ObjectivesExtractor

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

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

Methods

attach

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

Register this extractor's callbacks with a parser.

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