Click or drag to resize

Game Class

Inheritance Hierarchy
SystemObject
  EnsageGame

Namespace:  Ensage
Assembly:  Ensage (in Ensage.dll) Version: 0.0.0.1
Syntax
C#
public sealed class Game

The Game type exposes the following members.

Constructors
  NameDescription
Public methodGame
Initializes a new instance of the Game class
Top
Properties
  NameDescription
Public propertyStatic memberAvgPing
Returns the average ping value.
Public propertyStatic memberBuildVersion
Returns the language of the dota client.
Public propertyStatic memberExpectedPlayers
Returns the number of players expected to be ingame.
Public propertyStatic memberGameMode
Returns the currently active game mode.
Public propertyStatic memberGamePath
Returns the path to the dota folder. Usually "...\steamapps\common\dota 2 beta\">
Public propertyStatic memberGameState
Returns the current state of the game.
Public propertyStatic memberGameTime
Returns the current ingame time in seconds.
Public propertyStatic memberGlyphCooldownDire
Returns the glyph cooldown of the dire team.
Public propertyStatic memberGlyphCooldownRadiant
Returns the glyph cooldown of the radiant team.
Public propertyStatic memberIPAddress
Returns the ip address of the current connected server.
Public propertyStatic memberIsChatOpen
Returns true when the player is currently chatting ingame.
Public propertyStatic memberIsConnected
Returns true when you're connected to the dota servers.
Public propertyStatic memberIsCustomGame
Returns true when the player is playing a custom game.
Public propertyStatic memberIsEventGame
Returns true if the player is playing a special event game like Diretide.
Public propertyStatic memberIsInGame
Returns true when you're connected to the dota servers and in GameState "Prestart" or "Started".
Public propertyStatic memberIsLobbyGame
Returns if the player is currently in a lobby game.
Public propertyStatic memberIsNight
Returns if it's currently night.
Public propertyStatic memberIsPaused
Returns if the game is currently paused by a player.
Public propertyStatic memberIsWatchingGame
Returns if the player is currently watching a game.
Public propertyStatic memberLanguage
Returns the language of the dota client.
Public propertyStatic memberLevelName
Returns the current loaded level.
Public propertyStatic memberLoadedPlayers
Returns the number of players loaded to be ingame.
Public propertyStatic memberMatchId
Returns the current match Id.
Public propertyStatic memberMaximumClients
Returns the maximum amount of clients which can be in the current game state.
Public propertyStatic memberMousePosition
Returns the 3D mouse position ingame.
Public propertyStatic memberMouseScreenPosition
Returns the 2D mouse position on screen.
Public propertyStatic memberNeutralSpawnBoxes
Returns all neutral spawn boxes for the current game.
Public propertyStatic memberPing
Returns the current ping.
Public propertyStatic memberRawGameTime
Returns the raw ingame time, which doesn't consider the different game states and pauses.
Public propertyStatic memberShortLevelName
Returns the current loaded level in short.
Public propertyStatic memberStockInfo
Returns information about the stock information of items in the shop.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberExecuteCommand
Executes a console command.
Public methodStatic memberFindKeyValues
Extract KeyValue data from the dota client. You can access data directly by using "/" for separating subkeys
Public methodStatic memberGetConsoleVar
Returns the console variable with the given name.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsKeyDown(UInt32)
Returns if the given key is currently pressed down.
Public methodStatic memberIsKeyDown(Key)
Returns if the given key is currently pressed down.
Public methodStatic memberLocalize
Localizes an internal game string to the player's language.
Public methodStatic memberPrintMessage
Prints a message to the chat. It will not send it to other players!
Public methodStatic memberRaiseUnhandledException
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
See Also