friends: Pushing current progress
This commit is contained in:
parent
039a33d7e0
commit
9e923db938
|
|
@ -2847,6 +2847,7 @@ dclass TTPlayerFriendsManager : PlayerFriendsManager {
|
|||
};
|
||||
|
||||
dclass ToontownFriendsManager : DistributedObject {
|
||||
getFriendsListRequest() clsend;
|
||||
};
|
||||
|
||||
dclass TTSpeedchatRelay : SpeedchatRelay {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -4,3 +4,6 @@ from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal
|
|||
|
||||
class ToontownFriendsManager(DistributedObjectGlobal):
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('ToontownFriendsManager')
|
||||
|
||||
def sendGetFriendsListRequest(self):
|
||||
self.sendUpdate('getFriendsListRequest')
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue