struct Source::InfoResponse

Defined in:

source/response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(protocol : UInt8 | Nil = nil, name : Nil | String = nil, map : Nil | String = nil, folder : Nil | String = nil, game : Nil | String = nil, app : UInt16 | Nil = nil, players : UInt8 | Nil = nil, max_players : UInt8 | Nil = nil, bots : UInt8 | Nil = nil, type : Source::ServerType | Nil = nil, os : Source::OS | Nil = nil, password : Bool | Nil = nil, secure : Bool | Nil = nil) #

[View source]

Instance Method Detail

def app : UInt16 | Nil #

Steam Application ID of game.


[View source]
def bots : UInt8 | Nil #

Number of bots on the server.


[View source]
def folder : String | Nil #

Name of the folder containing the game files.


[View source]
def game : String | Nil #

Full name of the game.


[View source]
def map : String | Nil #

Map the server has currently loaded.


[View source]
def max_players : UInt8 | Nil #

Maximum number of players the server reports it can hold.


[View source]
def name : String | Nil #

Name of the server.


[View source]
def os : Source::OS | Nil #

Operating system of the server,


[View source]
def password : Bool | Nil #

Indicates whether the server requires a password,


[View source]
def players : UInt8 | Nil #

Number of players on the server.


[View source]
def protocol : UInt8 | Nil #

Protocol version used by the server.


[View source]
def secure : Bool | Nil #

Specifies whether the server uses VAC,


[View source]
def type : Source::ServerType | Nil #

Type of the server


[View source]