Wards Extractor
Ward placement events with exact map coordinates.
Generated API
Module gem.extractors.wards
Ward placement extractor for Dota 2 replays.
Source: src/gem/extractors/wards.py
Top-level classes
WardEvent
python
class WardEventA complete ward placement record with coordinates.
Source: src/gem/extractors/wards.py:123
Dataclass fields
| Name | Type | Default |
|---|---|---|
tick | int | - |
player_id | int | - |
placer | str | - |
ward_type | Literal['observer', 'sentry'] | - |
team | int | - |
x | `float | None` |
y | `float | None` |
expires_tick | `int | None` |
killed_tick | `int | None` |
killer | str | - |
WardsExtractor
python
class WardsExtractorExtracts ward placement, expiry, and kill events from the entity stream.
Source: src/gem/extractors/wards.py:157
Properties
_tick
Signature: def WardsExtractor._tick(self) -> int
No docstring available.
Source: src/gem/extractors/wards.py:201
Methods
attach
Signature: def WardsExtractor.attach(self, parser: ReplayParser) -> None
Register callbacks with the parser.
Source: src/gem/extractors/wards.py:190
finalize
Signature: def WardsExtractor.finalize(self) -> list[WardEvent]
Back-fill placer names and return ward events.
Source: src/gem/extractors/wards.py:204