Skip to content

Reference Values (Enums)

Some output fields are represented as integer codes for compatibility with replay/network data. This page documents commonly used values.

These are practical reference mappings, not strict guarantees for all historical/future patches.


Team values

Used in multiple output fields (for example, attacker/target team in combat entries).

ValueMeaning
2Radiant
3Dire
0Unknown / unset

Common game mode values

ParsedMatch.game_mode is an integer code.

ValueMeaning
1All Pick
2Captains Mode
3Random Draft
4Single Draft
22Ranked All Pick

Common lobby type values

ParsedMatch.lobby_type is an integer code.

ValueMeaning
0Public matchmaking
1Practice
7Ranked matchmaking

EntityOp bit flags

EntityOp is an IntFlag bitmask used in entity callbacks.

FlagValueMeaning
CREATED1Entity created this tick
UPDATED2One or more fields changed
DELETED4Entity removed
ENTERED8Entity entered PVS
LEFT16Entity left PVS

Example:

python
if op & EntityOp.CREATED:
    ...
if op & EntityOp.UPDATED:
    ...

See also: Models, Entities