12 lines
474 B
Python
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])
|