Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/steamy/Dota2/mod.ts>GetRealtimeStats_Player

Steamy is a library made to help interact with Valve's REST APIs for their various games and services by providing easy asynchronous functions to call them, along with a key manager, and type checking to boot.
Latest
interface GetRealtimeStats_Player
import { type GetRealtimeStats_Player } from "https://deno.land/x/steamy@v0.05a/Dota2/mod.ts";

Properties

accountid: number

The account ID of the player.

playerid: number

The ID of the player.

name: string

The name of the player.

team: number

The number of the team the player is on (1 or 2).

heroid: HeroID

The ID of the hero the player is playing.

level: number

The level of the hero the player is playing.

kill_count: number

The number of kills the player has.

death_count: number

The number of deaths the player has.

assists_count: number

The number of assists the player has.

denies_count: number

The number of denies the player has.

lh_count: number

The number of last hits the player has.

gold: number

The amount of gold the player has.

x: number

The x coordinate of the player's position on the map. This seems to be the percent from the center of the map. Left is negative. Right is positive.

y: number

The y coordinate of the player's position on the map. This seems to be the percent from the center of the map. Top is positive. Bottom is negative

net_worth: number

The net worth of the player.

abilities: AbilityID[]

An array of ability IDs for the player's hero.

items: ItemID[]

An array of item IDs for the player's hero.