mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
debugCall
This commit is contained in:
parent
5099a543c0
commit
a05d33883a
@ -39,6 +39,7 @@ class NetMessenger(Messenger):
|
|||||||
air is the AI Repository.
|
air is the AI Repository.
|
||||||
channels is a list of channel IDs (uint32 values)
|
channels is a list of channel IDs (uint32 values)
|
||||||
"""
|
"""
|
||||||
|
assert self.notify.debugCall()
|
||||||
Messenger.__init__(self)
|
Messenger.__init__(self)
|
||||||
self.air=air
|
self.air=air
|
||||||
self.channels=channels
|
self.channels=channels
|
||||||
@ -46,6 +47,7 @@ class NetMessenger(Messenger):
|
|||||||
self.air.registerForChannel(i)
|
self.air.registerForChannel(i)
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
|
assert self.notify.debugCall()
|
||||||
for i in self.channels:
|
for i in self.channels:
|
||||||
self.air.unRegisterChannel(i)
|
self.air.unRegisterChannel(i)
|
||||||
del self.air
|
del self.air
|
||||||
@ -56,6 +58,7 @@ class NetMessenger(Messenger):
|
|||||||
"""
|
"""
|
||||||
Send message to All AI and Uber Dog servers.
|
Send message to All AI and Uber Dog servers.
|
||||||
"""
|
"""
|
||||||
|
assert self.notify.debugCall()
|
||||||
datagram = PyDatagram()
|
datagram = PyDatagram()
|
||||||
# To:
|
# To:
|
||||||
datagram.addChannel(self.channels[0])
|
datagram.addChannel(self.channels[0])
|
||||||
@ -79,6 +82,7 @@ class NetMessenger(Messenger):
|
|||||||
The internal data in pickleData should have a tuple of
|
The internal data in pickleData should have a tuple of
|
||||||
(messageString, sendArgsList).
|
(messageString, sendArgsList).
|
||||||
"""
|
"""
|
||||||
|
assert self.notify.debugCall()
|
||||||
messageType=self.air.getMsgType()
|
messageType=self.air.getMsgType()
|
||||||
if messageType:
|
if messageType:
|
||||||
message=MESSAGE_TYPES[messageType-1]
|
message=MESSAGE_TYPES[messageType-1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user