From: <Blu...@us...> - 2010-01-03 16:04:29
|
Revision: 332 http://virtplayground.svn.sourceforge.net/virtplayground/?rev=332&view=rev Author: BlueWolf_ Date: 2010-01-03 16:04:22 +0000 (Sun, 03 Jan 2010) Log Message: ----------- [Client-core] It will send it's protocol-version Modified Paths: -------------- trunk/client/core/client.py trunk/client/core/parser.py Modified: trunk/client/core/client.py =================================================================== --- trunk/client/core/client.py 2010-01-03 16:04:11 UTC (rev 331) +++ trunk/client/core/client.py 2010-01-03 16:04:22 UTC (rev 332) @@ -212,7 +212,8 @@ "for": "VP", "client": ( self.__sh['config']['app_name'], self.__sh['config']['app_version'] - ) + ), + "version": __version__ }) def login_bot(self, owner, pwd, screenname): @@ -251,7 +252,8 @@ "for": "VP", "client": ( self.__sh['config']['app_name'], self.__sh['config']['app_version'] - ) + ), + "version": __version__ }) Modified: trunk/client/core/parser.py =================================================================== --- trunk/client/core/parser.py 2010-01-03 16:04:11 UTC (rev 331) +++ trunk/client/core/parser.py 2010-01-03 16:04:22 UTC (rev 332) @@ -87,6 +87,45 @@ self.call.logged_in(msg['username'], msg['cid'], None) + + def userlist(self, msg): + """ + Called after we've logged it. This contains a list with all + online users. This is a _list_ with: + * cid - The unique ID for this connection + * user - The username + * app - [Appname, Appversion] + * version - Which core it's using (string) + * bot - If it's a bot + * owner - The owner for this bot (only available when + bot = True) + * pos - [Z, X, Y] The position for this user. Is None + when you can't see this user. + """ + + # TODO + + pass + + def useronline(self, msg): + """ + Called after a user (or bot) has signed on. + * cid - The unique ID for this connection + * user - The username + * app - [Appname, Appversion] + * version - Which core it's using (string) + * bot - If it's a bot + * owner - The owner for this bot (only available when + bot = True) + * pos - [Z, X, Y] The position for this user. Is None + when you can't see this user. + """ + + # TODO + + pass + + def error(self, msg): """ Called when we did something wrong! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |