steamapi
Version:
A nice Steam API wrapper.
39 lines (38 loc) • 1.08 kB
TypeScript
/** Server regions as indicated by https://developer.valvesoftware.com/wiki/Sv_region */
export declare enum ServerRegion {
USEast = 0,
USWest = 1,
SouthAmerica = 2,
Europe = 3,
Asia = 4,
Australia = 5,
MiddleEast = 6,
Africa = 7,
World = 255
}
/** Game server as returned by getServers */
export default class Server {
/** The SteamID of this game server */
id: string;
/** Server address of the form IPv4:PORT */
address: string;
/** App ID this server is hosting */
appID: number;
/** The directory the game is from */
gameDir: string;
/** GMS Index. Not sure what this means */
gmsIndex: number;
/** Is this server LAN only */
lan: boolean;
/** The port this server is running on */
port: number;
/** Server region */
region: ServerRegion;
/** Is this server VAC secured */
secure: boolean;
/** Server specPort. Not sure what this means */
specPort: number;
/** Requirements for clients to join server */
reject?: string;
constructor(data: any);
}