mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
handleMessageType
This commit is contained in:
parent
c195f770ea
commit
5b59964012
@ -155,6 +155,9 @@ class ClientRepository(ClientRepositoryBase):
|
|||||||
# may forget to send heartbeats. Keep them coming!
|
# may forget to send heartbeats. Keep them coming!
|
||||||
self.considerHeartbeat()
|
self.considerHeartbeat()
|
||||||
|
|
||||||
|
def handleMessageType(self, msgType, di):
|
||||||
|
self.notify.error("unrecognized message")
|
||||||
|
|
||||||
def handleGenerateWithRequired(self, di):
|
def handleGenerateWithRequired(self, di):
|
||||||
# Get the class Id
|
# Get the class Id
|
||||||
classId = di.getUint16()
|
classId = di.getUint16()
|
||||||
|
@ -225,7 +225,10 @@ class ServerRepository:
|
|||||||
elif type == CLIENT_OBJECT_DISABLE:
|
elif type == CLIENT_OBJECT_DISABLE:
|
||||||
self.handleClientDisable(datagram, dgi.getUint32())
|
self.handleClientDisable(datagram, dgi.getUint32())
|
||||||
else:
|
else:
|
||||||
self.notify.error("unrecognized message")
|
self.handleMessageType(type, dgi)
|
||||||
|
|
||||||
|
def handleMessageType(self, msgType, di):
|
||||||
|
self.notify.error("unrecognized message")
|
||||||
|
|
||||||
# client wants to create an object, so we store appropriate data,
|
# client wants to create an object, so we store appropriate data,
|
||||||
# and then pass message along to corresponding zones
|
# and then pass message along to corresponding zones
|
||||||
|
Loading…
x
Reference in New Issue
Block a user