Poodletooth-iLand/toontown/uberdog/GlobalLobbyManagerAI.py

53 lines
1.7 KiB
Python
Raw Normal View History

2015-05-30 09:01:18 -05:00
from direct.distributed.DistributedObjectGlobalAI import DistributedObjectGlobalAI
from direct.distributed.PyDatagram import *
from direct.directnotify.DirectNotifyGlobal import directNotify
class GlobalLobbyManagerAI(DistributedObjectGlobalAI):
notify = directNotify.newCategory('GlobalLobbyManagerAI')
2015-05-30 09:01:18 -05:00
def announceGenerate(self):
DistributedObjectGlobalAI.announceGenerate(self)
self.sendUpdate('lobbyManagerAIHello', [simbase.air.lobbyManager.doId])
def sendAddLobby(self, avId, lobbyId):
self.sendUpdate('addLobby', [avId, lobbyId])
2015-05-30 09:01:18 -05:00
def queryLobbyForHost(self, hostId):
self.sendUpdate('queryLobby', [hostId])
def d_lobbyStarted(self, lobbyId, shardId, zoneId, hostName):
self.sendUpdate('lobbyHasStarted', [lobbyId, shardId, zoneId, hostName])
2015-05-30 09:01:18 -05:00
def lobbyStarted(self, lobbyId, shardId, zoneId, hostName):
pass
def d_lobbyDone(self, lobbyId):
self.sendUpdate('lobbyDone', [lobbyId])
2015-05-30 09:01:18 -05:00
def lobbyDone(self, lobbyId):
pass
def d_toonJoinedLobby(self, lobbyId, avId):
self.sendUpdate('toonJoinedLobby', [lobbyId, avId])
2015-05-30 09:01:18 -05:00
def toonJoinedLobby(self, lobbyId, avId):
pass
def d_toonLeftLobby(self, lobbyId, avId):
self.sendUpdate('toonLeftLobby', [lobbyId, avId])
2015-05-30 09:01:18 -05:00
def toonLeftLobby(self, lobbyId, avId):
pass
2015-05-30 09:01:18 -05:00
def d_requestLobbySlot(self, lobbyId, avId):
self.sendUpdate('requestLobbySlot', [lobbyId, avId])
2015-05-30 09:01:18 -05:00
def requestLobbySlot(self, lobbyId, avId):
pass
def d_allocIds(self, numIds):
self.sendUpdate('allocIds', [numIds])
2015-05-30 09:01:18 -05:00
def allocIds(self, numIds):
pass