2022-12-16 18:40:57 -06:00
|
|
|
from panda3d.core import *
|
2019-11-02 17:27:54 -05:00
|
|
|
from direct.distributed.DistributedObject import DistributedObject
|
|
|
|
from toontown.catalog import CatalogItemList
|
|
|
|
from toontown.catalog import CatalogItem
|
|
|
|
|
|
|
|
class DistributedDeliveryManager(DistributedObject):
|
|
|
|
neverDisable = 1
|
|
|
|
|
|
|
|
def sendHello(self, message):
|
|
|
|
self.sendUpdate('hello', [message])
|
|
|
|
|
|
|
|
def rejectHello(self, message):
|
2019-12-30 00:07:56 -06:00
|
|
|
print('rejected', message)
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
def helloResponse(self, message):
|
2019-12-30 00:07:56 -06:00
|
|
|
print('accepted', message)
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
def sendAck(self):
|
|
|
|
self.sendUpdate('requestAck', [])
|
|
|
|
|
|
|
|
def returnAck(self):
|
|
|
|
messenger.send('DeliveryManagerAck')
|
|
|
|
|
|
|
|
def test(self):
|
2019-12-30 00:07:56 -06:00
|
|
|
print('Distributed Delviery Manager Stub Test')
|