historical/toontown-classic.git/toontown/uberdog/TTOffChatManager.py
2024-01-16 11:20:27 -06:00

12 lines
474 B
Python

from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal
class TTOffChatManager(DistributedObjectGlobal):
notify = DirectNotifyGlobal.directNotify.newCategory('TTOffChatManager')
def sendChatMessage(self, message):
self.sendUpdate('chatMessage', [message])
def sendWhisperMessage(self, message, receiverAvId):
self.sendUpdate('whisperMessage', [message, receiverAvId])