Interface GameSession

Represents a session of a CFTools player in the specific game. Optional information, like profile and ban information, are only available if Steam or any other third-party system is available and integrated into the game.

Hierarchy

  • GameSession

Properties

bans: { communityBanned?: boolean; count: number; economyBanned?: boolean; gameBanned?: boolean; vacBanned?: boolean }

Type declaration

  • Optional communityBanned?: boolean
  • count: number
  • Optional economyBanned?: boolean
  • Optional gameBanned?: boolean
  • Optional vacBanned?: boolean
cftoolsId: CFToolsId
id: string
live: { loadTime?: number; loaded: boolean; ping?: { actual: number; trend: number }; position: { join?: Coordinates; latest?: Coordinates; leave?: Coordinates } }

Type declaration

playerName: string
profile?: { avatar?: URL; name: string; private: boolean }

Type declaration

  • Optional avatar?: URL
  • name: string
  • private: boolean
steamId: SteamId64

Generated using TypeDoc