Browse Source

wildcard common enums in root module

pull/18/merge
Rossen Georgiev 9 years ago
parent
commit
5bf0948712
  1. 4
      steam/client/__init__.py
  2. 2
      steam/enums/__init__.py
  3. 8
      steam/enums/common.py

4
steam/client/__init__.py

@ -2,7 +2,7 @@ import logging
import gevent
from eventemitter import EventEmitter
from steam.enums.emsg import EMsg
from steam.enums import EResult
from steam.enums import EResult, EOSType
from steam.core.msg import MsgProto
from steam.core.cm import CMClient
from steam import SteamID
@ -135,7 +135,7 @@ class SteamClient(EventEmitter, FeatureBase):
message.header.steamid = SteamID(type='Individual', universe='Public')
message.body.protocol_version = 65575
message.body.client_package_version = 1771
message.body.client_os_type = 13
message.body.client_os_type = EOSType.Win10
message.body.client_language = "english"
message.body.account_name = username

2
steam/enums/__init__.py

@ -20,4 +20,4 @@ They also provide a easy way to resolve a name or value for a specific enum.
all enums from :py:mod:`steam.enum.common` can be imported directly from :py:mod:`steam.enum`
"""
from steam.enums.common import EResult, EType, EUniverse, EServerType
from steam.enums.common import *

8
steam/enums/common.py

@ -1,5 +1,13 @@
from steam.enums.base import SteamIntEnum
__all__ = [
'EResult',
'EUniverse',
'EType',
'EServerType',
'EOSType',
]
class EResult(SteamIntEnum):
Invalid = 0

Loading…
Cancel
Save