enum

Steam::ID::Format

Inherits Enum < Comparable < Value < Object

An enum for selecting the various formats a Steam ID can be parsed or serialized from.

NOTE: Every format except for Community64 are "lossy" formats and does not encode all possible information that can be stored in a Steam ID.

IDs that are parsed or serialized with these formats are missing the following information:

  • Default does not encode AccountType or instance
  • Community32 does not encode Universe or instance

Constants

Default = 0

The standard textual representation of a Steam ID. ex: "STEAM_1:0:11101"

Community32 = 1

A string format for short "community" URLs. ex: "[U:1:22202]"

Community64 = 2

A 64 bit integer, represented as a string. ex: "76561197960287930"

Instance methods

community32?

Returns true if this enum value equals Community32

Source
community64?

Returns true if this enum value equals Community64

Source
default?

Returns true if this enum value equals Default

Source