How to use the steam.enums.base.SteamIntEnum function in steam

To help you get started, we’ve selected a few steam examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ValvePython / steam / steam / enums / common.py View on Github external
class EPublishedFileInappropriateProvider(SteamIntEnum):
    Invalid = 0
    Google = 1
    Amazon = 2


class EPublishedFileInappropriateResult(SteamIntEnum):
    NotScanned = 0
    VeryUnlikely = 1
    Unlikely = 30
    Possible = 50
    Likely = 75
    VeryLikely = 100


class EPublishedFileQueryType(SteamIntEnum):
    RankedByVote = 0
    RankedByPublicationDate = 1
    AcceptedForGameRankedByAcceptanceDate = 2
    RankedByTrend = 3
    FavoritedByFriendsRankedByPublicationDate = 4
    CreatedByFriendsRankedByPublicationDate = 5
    RankedByNumTimesReported = 6
    CreatedByFollowedUsersRankedByPublicationDate = 7
    NotYetRated = 8
    RankedByTotalUniqueSubscriptions = 9
    RankedByTotalVotesAsc = 10
    RankedByVotesUp = 11
    RankedByTextSearch = 12
    RankedByPlaytimeTrend = 13
    RankedByTotalPlaytime = 14
    RankedByAveragePlaytimeTrend = 15
github ValvePython / steam / steam / enums / common.py View on Github external
QueryPort = 4
    SourceID = 8
    Presence = 16
    Metadata = 32  # obsolete
    LastSeen = 64
    ClanInfo = 128
    GameExtraInfo = 256
    GameDataBlob = 512
    ClanTag = 1024
    Facebook = 2048
    RichPresence = 4096
    Broadcast = 8192
    Watching = 16384


class ELeaderboardDataRequest(SteamIntEnum):
    Global = 0
    GlobalAroundUser = 1
    Friends = 2
    Users = 3


class ELeaderboardSortMethod(SteamIntEnum):
    NONE = 0
    Ascending = 1
    Descending = 2


class ELeaderboardDisplayType(SteamIntEnum):
    NONE = 0
    Numeric = 1
    TimeSeconds = 2
github ValvePython / steam / steam / enums / common.py View on Github external
TWD = 30
    SAR = 31
    AED = 32
    SEK = 33
    ARS = 34
    ILS = 35
    BYN = 36
    KZT = 37
    KWD = 38
    QAR = 39
    CRC = 40
    UYU = 41
    Max = 42


class EDepotFileFlag(SteamIntEnum):
    UserConfig = 1
    VersionedUserConfig = 2
    Encrypted = 4
    ReadOnly = 8
    Hidden = 16
    Executable = 32
    Directory = 64
    CustomExecutable = 128
    InstallScript = 256
    Symlink = 512


class EProtoAppType(SteamIntEnum):
    Invalid = 0
    Game = 1
    Application = 2
github ValvePython / steam / steam / enums / common.py View on Github external
Typing = 2              #: Another user is typing (not used in multi-user chat)
    InviteGame = 3          #: Invite from other user into that users current game
    Emote = 4               #: text emote message (deprecated, should be treated as ChatMsg)
    LobbyGameStart = 5      #: lobby game is starting (dead - listen for LobbyGameCreated_t callback instead)
    LeftConversation = 6    #: user has left the conversation ( closed chat window )
    Entered = 7             #: user has entered the conversation (used in multi-user chat and group chat)
    WasKicked = 8           #: user was kicked (data: 64-bit steamid of actor performing the kick)
    WasBanned = 9           #: user was banned (data: 64-bit steamid of actor performing the ban)
    Disconnected = 10       #: user disconnected
    HistoricalChat = 11     #: a chat message from user's chat history or offilne message
    Reserved1 = 12          #: No longer used
    Reserved2 = 13          #: No longer used
    LinkBlocked = 14        #: a link was removed by the chat filter.


class EChatRoomEnterResponse(SteamIntEnum):
    """Doc: https://partner.steamgames.com/doc/api/steam_api#EChatRoomEnterResponse"""
    Success = 1              #: Success
    DoesntExist = 2          #: Chat doesn't exist (probably closed)
    NotAllowed = 3           #: General Denied - You don't have the permissions needed to join the chat
    Full = 4                 #: Chat room has reached its maximum size
    Error = 5                #: Unexpected Error
    Banned = 6               #: You are banned from this chat room and may not join
    Limited = 7              #: Joining this chat is not allowed because you are a limited user (no value on account)
    ClanDisabled = 8         #: Attempt to join a clan chat when the clan is locked or disabled
    CommunityBan = 9         #: Attempt to join a chat when the user has a community lock on their account
    MemberBlockedYou = 10    #: Join failed - some member in the chat has blocked you from joining
    YouBlockedMember = 11    #: Join failed - you have blocked some member already in the chat
    NoRankingDataLobby = 12  #: No longer used
    NoRankingDataUser = 13   #: No longer used
    RankOutOfRange = 14      #: No longer used
    RatelimitExceeded = 15   #: Join failed - to many join attempts in a very short period of time
github ValvePython / steam / steam / enums / common.py View on Github external
AccountHasBeenDeleted = 114
    AccountHasAnExistingUserCancelledLicense = 115


class EUniverse(SteamIntEnum):
    """Doc: https://partner.steamgames.com/doc/api/steam_api#EUniverse"""
    Invalid = 0
    Public = 1
    Beta = 2
    Internal = 3
    Dev = 4
#   RC = 5  #: doesn't exit anymore
    Max = 6


class EType(SteamIntEnum):
    """Doc: https://partner.steamgames.com/doc/api/steam_api#EAccountType"""
    Invalid = 0         #: Used for invalid Steam IDs
    Individual = 1      #: single user account
    Multiseat = 2       #: multiseat (e.g. cybercafe) account
    GameServer = 3      #: game server account
    AnonGameServer = 4  #: anonymous game server account
    Pending = 5         #: pending
    ContentServer = 6   #: content server
    Clan = 7            #: Steam Group (clan)
    Chat = 8            #: Steam group chat or lobby
    ConsoleUser = 9     #: Fake SteamID for local PSN account on PS3 or Live account on 360, etc
    AnonUser = 10       #: Anonymous user account. (Used to create an account or reset a password)
    Max = 11


class EInstanceFlag(SteamIntEnum):
github ValvePython / steam / steam / enums / emsg.py View on Github external
"""The EMsg enum contains many members and takes a bit to load.
For this reason it is seperate, and imported only when needed.
"""

from steam.enums.base import SteamIntEnum


class EMsg(SteamIntEnum):
    Invalid = 0
    Multi = 1
    ProtobufWrapped = 2

    GenericReply = 100
    BaseGeneral = 100
    DestJobFailed = 113
    Alert = 115
    SCIDRequest = 120
    SCIDResponse = 121
    JobHeartbeat = 123
    HubConnect = 124
    Subscribe = 126
    RouteMessage = 127
    RemoteSysID = 128 #: removed
    AMCreateAccountResponse = 129 #: removed
github ValvePython / steam / steam / enums / common.py View on Github external
Art	= 3
    Video	= 4
    Screenshot	= 5
    Game	= 6
    Software	= 7
    Concept	= 8
    WebGuide	= 9
    IntegratedGuide	= 10
    Merch	= 11
    ControllerBinding	= 12
    SteamworksAccessInvite = 13
    SteamVideo = 14
    GameManagedItem = 15
    Max = 16

class EAppType(SteamIntEnum):
    Invalid = 0
    Game = 1
    Application = 2
    Tool = 4
    Demo = 8
    Deprected = 16
    DLC = 32
    Guide = 64
    Driver = 128
    Config = 256
    Hardware = 512
    Franchise = 1024
    Video = 2048
    Plugin = 4096
    Music = 8192
    Series = 16384
github ValvePython / steam / steam / steamid.py View on Github external
import json
import sys
import re
import requests
from steam.enums.base import SteamIntEnum
from steam.enums import EType, EUniverse, EInstanceFlag
from steam.utils.web import make_requests_session

if sys.version_info < (3,):
    intBase = long
else:
    intBase = int

class ETypeChar(SteamIntEnum):
    I = EType.Invalid
    U = EType.Individual
    M = EType.Multiseat
    G = EType.GameServer
    A = EType.AnonGameServer
    P = EType.Pending
    C = EType.ContentServer
    g = EType.Clan
    T = EType.Chat
    L = EType.Chat # lobby chat, 'c' for clan chat
    c = EType.Chat # clan chat
    a = EType.AnonUser

    def __str__(self):
        return self.name
github ValvePython / steam / steam / enums / common.py View on Github external
MLTrain = 115
    VACTest = 116
    TaxService = 117
    MLInference = 118
    UGSAggregate = 119
    TURN = 120
    RemoteClient = 121
    BroadcastOrigin = 122
    BroadcastChannel = 123
    SteamAR = 124
    China = 125
    CrashDump = 126
    Max = 127


class EOSType(SteamIntEnum):
    Unknown = -1
    Web = -700
    IOSUnknown = -600
    IOS1 = -599
    IOS2 = -598
    IOS3 = -597
    IOS4 = -596
    IOS5 = -595
    IOS6 = -594
    IOS6_1 = -593
    IOS7 = -592
    IOS7_1 = -591
    IOS8 = -590
    IOS8_1 = -589
    IOS8_2 = -588
    IOS8_3 = -587
github ValvePython / steam / steam / enums / common.py View on Github external
NotAllowed = 3           #: General Denied - You don't have the permissions needed to join the chat
    Full = 4                 #: Chat room has reached its maximum size
    Error = 5                #: Unexpected Error
    Banned = 6               #: You are banned from this chat room and may not join
    Limited = 7              #: Joining this chat is not allowed because you are a limited user (no value on account)
    ClanDisabled = 8         #: Attempt to join a clan chat when the clan is locked or disabled
    CommunityBan = 9         #: Attempt to join a chat when the user has a community lock on their account
    MemberBlockedYou = 10    #: Join failed - some member in the chat has blocked you from joining
    YouBlockedMember = 11    #: Join failed - you have blocked some member already in the chat
    NoRankingDataLobby = 12  #: No longer used
    NoRankingDataUser = 13   #: No longer used
    RankOutOfRange = 14      #: No longer used
    RatelimitExceeded = 15   #: Join failed - to many join attempts in a very short period of time


class ECurrencyCode(SteamIntEnum):
    Invalid = 0
    USD = 1
    GBP = 2
    EUR = 3
    CHF = 4
    RUB = 5
    PLN = 6
    BRL = 7
    JPY = 8
    NOK = 9
    IDR = 10
    MYR = 11
    PHP = 12
    SGD = 13
    THB = 14
    VND = 15