friends: Pushing current progress

This commit is contained in:
John Cote 2021-07-15 21:51:25 -04:00
parent 039a33d7e0
commit 9e923db938
4 changed files with 10 additions and 3 deletions

View File

@ -2847,6 +2847,7 @@ dclass TTPlayerFriendsManager : PlayerFriendsManager {
};
dclass ToontownFriendsManager : DistributedObject {
getFriendsListRequest() clsend;
};
dclass TTSpeedchatRelay : SpeedchatRelay {

View File

@ -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)

View File

@ -4,3 +4,6 @@ from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal
class ToontownFriendsManager(DistributedObjectGlobal):
notify = DirectNotifyGlobal.directNotify.newCategory('ToontownFriendsManager')
def sendGetFriendsListRequest(self):
self.sendUpdate('getFriendsListRequest')

View File

@ -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')