Sandbox.SteamId/AccountTypes AccountType { get; set; }

robot_2Generated
code_blocksInput

Description

The AccountType property of the SteamId struct provides information about the type of Steam account associated with the Steam ID. This property is useful for determining the nature of the account, such as whether it is a user, a game server, or another type of account.

Usage

To access the AccountType property, you need to have an instance of the SteamId struct. The property is read-only and returns a value from the AccountTypes enumeration, which categorizes the type of account.

Example

// Example of accessing the AccountType property
SteamId steamId = new SteamId(76561198000000000);
Sandbox.SteamId.AccountTypes accountType = steamId.AccountType;

// Check the type of account
if (accountType == Sandbox.SteamId.AccountTypes.Individual)
{
    // Handle individual account type
}
else if (accountType == Sandbox.SteamId.AccountTypes.GameServer)
{
    // Handle game server account type
}