historical/toontown-classic.git/toontown/uberdog/TTOffChatManager.py

13 lines
474 B
Python
Raw Normal View History

2024-01-16 11:20:27 -06:00
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])