diff --git a/etc/toon.dc b/etc/toon.dc index 62b6c26..1bcd9a4 100755 --- a/etc/toon.dc +++ b/etc/toon.dc @@ -2847,6 +2847,7 @@ dclass TTPlayerFriendsManager : PlayerFriendsManager { }; dclass ToontownFriendsManager : DistributedObject { + getFriendsListRequest() clsend; }; dclass TTSpeedchatRelay : SpeedchatRelay { diff --git a/toontown/distributed/ToontownClientRepository.py b/toontown/distributed/ToontownClientRepository.py index 5d99de3..af15747 100644 --- a/toontown/distributed/ToontownClientRepository.py +++ b/toontown/distributed/ToontownClientRepository.py @@ -867,11 +867,11 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository): self.friendsListError = 0 def sendGetFriendsListRequest(self): + self.friendsMapPending = 1 + self.friendsListError = 0 if __astron__: - print('sendGetFriendsListRequest TODO') + self.toontownFriendsManager.sendGetFriendsListRequest() else: - self.friendsMapPending = 1 - self.friendsListError = 0 datagram = PyDatagram() datagram.addUint16(CLIENT_GET_FRIEND_LIST) self.send(datagram) diff --git a/toontown/friends/ToontownFriendsManager.py b/toontown/friends/ToontownFriendsManager.py index 874a648..99201e6 100644 --- a/toontown/friends/ToontownFriendsManager.py +++ b/toontown/friends/ToontownFriendsManager.py @@ -4,3 +4,6 @@ from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal class ToontownFriendsManager(DistributedObjectGlobal): notify = DirectNotifyGlobal.directNotify.newCategory('ToontownFriendsManager') + + def sendGetFriendsListRequest(self): + self.sendUpdate('getFriendsListRequest') diff --git a/toontown/friends/ToontownFriendsManagerUD.py b/toontown/friends/ToontownFriendsManagerUD.py index e42b6b2..e554015 100644 --- a/toontown/friends/ToontownFriendsManagerUD.py +++ b/toontown/friends/ToontownFriendsManagerUD.py @@ -4,3 +4,6 @@ from direct.distributed.DistributedObjectGlobalUD import DistributedObjectGlobal class ToontownFriendsManagerUD(DistributedObjectGlobalUD): notify = DirectNotifyGlobal.directNotify.newCategory('ToontownFriendsManagerUD') + + def getFriendsListRequest(self): + self.notify.info('getFriendsListRequest TODO')