Browse Source
* various other docs alterations * moved games played under features.miscpull/18/merge
14 changed files with 99 additions and 50 deletions
@ -1,3 +1,4 @@ |
|||||
|
_build |
||||
_doc |
_doc |
||||
_static |
_static |
||||
_templates |
_templates |
||||
|
@ -0,0 +1,21 @@ |
|||||
|
steam.client.features |
||||
|
===================== |
||||
|
|
||||
|
.. automodule:: steam.client.features |
||||
|
|
||||
|
User |
||||
|
---- |
||||
|
|
||||
|
.. automodule:: steam.client.features.user |
||||
|
:members: |
||||
|
:undoc-members: |
||||
|
:show-inheritance: |
||||
|
|
||||
|
Misc |
||||
|
---- |
||||
|
|
||||
|
.. automodule:: steam.client.features.misc |
||||
|
:members: |
||||
|
:undoc-members: |
||||
|
:show-inheritance: |
||||
|
|
@ -0,0 +1,7 @@ |
|||||
|
steam.client.gc |
||||
|
=============== |
||||
|
|
||||
|
.. automodule:: steam.client.gc |
||||
|
:members: |
||||
|
:show-inheritance: |
||||
|
|
@ -1,7 +1,7 @@ |
|||||
.. include:: global.rst |
.. include:: global.rst |
||||
|
|
||||
Quick start |
User guide |
||||
*********** |
********** |
||||
|
|
||||
Welcome to the quick start section. |
Welcome to the quick start section. |
||||
The aim here is to give you a very quick |
The aim here is to give you a very quick |
@ -0,0 +1,26 @@ |
|||||
|
""" |
||||
|
Various features that don't have a category |
||||
|
""" |
||||
|
|
||||
|
class Misc(object): |
||||
|
def __init__(self): |
||||
|
super(Misc, self).__init__() |
||||
|
|
||||
|
def games_played(self, app_ids): |
||||
|
""" |
||||
|
Set the application being played by the user |
||||
|
|
||||
|
:param app_ids: a list of application ids |
||||
|
:type app_ids: :class:`list` |
||||
|
""" |
||||
|
if not isinstance(app_ids, list): |
||||
|
raise ValueError("Expected app_ids to be of type list") |
||||
|
|
||||
|
app_ids = map(int, app_ids) |
||||
|
|
||||
|
message = MsgProto(EMsg.ClientGamesPlayed) |
||||
|
GamePlayed = message.body.GamePlayed |
||||
|
|
||||
|
message.body.games_played.extend(map(lambda x: GamePlayed(game_id=x), app_ids)) |
||||
|
|
||||
|
self.send(message) |
@ -0,0 +1,4 @@ |
|||||
|
|
||||
|
class User(object): |
||||
|
def __init__(self): |
||||
|
super(User, self).__init__() |
Loading…
Reference in new issue