Skip to content

Commit

Permalink
add CSODOTAGameAccountPrime and verbose_debug for socache
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Nov 1, 2017
1 parent 1423369 commit 676cdd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions dota2/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class ESOType(IntEnum):
CMsgDOTATournament = 2009
CSODOTAPlayerChallenge = 2010
CSODOTALobbyInvite = 2011
CSODOTAGameAccountPrime = 2012


class EServerRegion(IntEnum):
Expand Down
8 changes: 8 additions & 0 deletions dota2/features/sharedobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ def _handle_update(self, message):
result = self._update_object(message.type_id, message.object_data)
if result:
type_id, obj = result

if self._dota.verbose_debug:
self._LOG.debug("Incoming: %s\n%s", repr(type_id), obj)

self.emit(('updated', type_id), obj)

def _handle_destroy(self, so):
Expand Down Expand Up @@ -266,6 +270,10 @@ def _handle_cache_subscribed(self, message):
if not result: break

type_id, obj = result

if self._dota.verbose_debug:
self._LOG.debug("Incoming: %s\n%s", repr(type_id), obj)

self.emit(('new', type_id), obj)

def _handle_cache_unsubscribed(self, message):
Expand Down

0 comments on commit 676cdd6

Please sign in to comment.