Static metadata for one supported game profile.
Type Parameters
G
Properties
capabilities
readonlycapabilities:Readonly<Record<GameCapability,SupportLevel>>
defaultPort?
readonlyoptionaldefaultPort?:number
Default game or service port; omitted when the profile cannot infer one.
defaultQueryPort?
readonlyoptionaldefaultQueryPort?:number
Conventional query port corresponding to defaultPort when the protocol uses a separate
destination. Custom game ports preserve the offset unless queryPortStrategy is fixed.
id
readonlyid:G
name
readonlyname:string
protocol
readonlyprotocol:GameProtocolMap[G]
Protocol the profile queries. A game with no game-specific interpretation is queried through its protocol's shared profile, so an A2S game can be added with only its definition.
queryPortStrategy?
readonlyoptionalqueryPortStrategy?:"offset"|"fixed"
Whether a custom game port shifts the conventional query port or leaves it fixed.
steamAppId?
readonlyoptionalsteamAppId?:number
Steam App ID a server of this game advertises in A2S Info, which lets detect() tell games
apart that share a protocol and port. Omitted for games that are not identified on Steam.