mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
*** empty log message ***
This commit is contained in:
parent
0563079eab
commit
bcb8f039d8
@ -138,13 +138,24 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
it should be accurate plus or minus a couple of seconds.
|
it should be accurate plus or minus a couple of seconds.
|
||||||
"""
|
"""
|
||||||
return time.time() + self.serverDelta
|
return time.time() + self.serverDelta
|
||||||
|
|
||||||
|
def handleObjectLocation(self, di):
|
||||||
|
# CLEINT_OBJECT_LOCATION
|
||||||
|
ThedoId = di.getUint32()
|
||||||
|
TheParent = di.getUint32()
|
||||||
|
TheZone = di.getUint32()
|
||||||
|
print "Object Location->Id=%s Parent=%s Zone=%s"%(ThedoId,TheParent, TheZone)
|
||||||
|
|
||||||
|
|
||||||
def handleGenerateWithRequired(self, di):
|
def handleGenerateWithRequired(self, di):
|
||||||
|
if wantOtpServer:
|
||||||
|
TheParent = di.getUint32()
|
||||||
|
TheZone = di.getUint32()
|
||||||
# Get the class Id
|
# Get the class Id
|
||||||
classId = di.getUint16();
|
classId = di.getUint16();
|
||||||
# Get the DO Id
|
# Get the DO Id
|
||||||
doId = di.getUint32()
|
doId = di.getUint32()
|
||||||
# Look up the dclass
|
# Look up the dclass
|
||||||
dclass = self.dclassesByNumber[classId]
|
dclass = self.dclassesByNumber[classId]
|
||||||
dclass.startGenerate()
|
dclass.startGenerate()
|
||||||
# Create a new distributed object, and put it in the dictionary
|
# Create a new distributed object, and put it in the dictionary
|
||||||
@ -152,6 +163,9 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
dclass.stopGenerate()
|
dclass.stopGenerate()
|
||||||
|
|
||||||
def handleGenerateWithRequiredOther(self, di):
|
def handleGenerateWithRequiredOther(self, di):
|
||||||
|
if wantOtpServer:
|
||||||
|
TheParent = di.getUint32()
|
||||||
|
TheZone = di.getUint32()
|
||||||
# Get the class Id
|
# Get the class Id
|
||||||
classId = di.getUint16();
|
classId = di.getUint16();
|
||||||
# Get the DO Id
|
# Get the DO Id
|
||||||
@ -165,6 +179,9 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
|
|
||||||
def handleQuietZoneGenerateWithRequired(self, di):
|
def handleQuietZoneGenerateWithRequired(self, di):
|
||||||
# Special handler for quiet zone generates -- we need to filter
|
# Special handler for quiet zone generates -- we need to filter
|
||||||
|
if wantOtpServer:
|
||||||
|
TheParent = di.getUint32()
|
||||||
|
TheZone = di.getUint32()
|
||||||
# Get the class Id
|
# Get the class Id
|
||||||
classId = di.getUint16();
|
classId = di.getUint16();
|
||||||
# Get the DO Id
|
# Get the DO Id
|
||||||
@ -184,6 +201,9 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
|
|
||||||
def handleQuietZoneGenerateWithRequiredOther(self, di):
|
def handleQuietZoneGenerateWithRequiredOther(self, di):
|
||||||
# Special handler for quiet zone generates -- we need to filter
|
# Special handler for quiet zone generates -- we need to filter
|
||||||
|
if wantOtpServer:
|
||||||
|
TheParent = di.getUint32()
|
||||||
|
TheZone = di.getUint32()
|
||||||
# Get the class Id
|
# Get the class Id
|
||||||
classId = di.getUint16();
|
classId = di.getUint16();
|
||||||
# Get the DO Id
|
# Get the DO Id
|
||||||
@ -424,7 +444,7 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
self.notify.info('Message from server: %s' % (message))
|
self.notify.info('Message from server: %s' % (message))
|
||||||
return message
|
return message
|
||||||
|
|
||||||
def handleUnexpectedMsgType(self, msgType, di):
|
def handleUnexpectedMsgType(self, msgType, di):
|
||||||
if msgType == CLIENT_CREATE_OBJECT_REQUIRED:
|
if msgType == CLIENT_CREATE_OBJECT_REQUIRED:
|
||||||
self.handleGenerateWithRequired(di)
|
self.handleGenerateWithRequired(di)
|
||||||
elif msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
elif msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
||||||
@ -443,10 +463,12 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
self.handleSystemMessage(di)
|
self.handleSystemMessage(di)
|
||||||
elif wantOtpServer and msgType == CLIENT_CREATE_OBJECT_REQUIRED:
|
elif wantOtpServer and msgType == CLIENT_CREATE_OBJECT_REQUIRED:
|
||||||
self.handleGenerateWithRequired(di)
|
self.handleGenerateWithRequired(di)
|
||||||
elif wantOtpServer and dmsgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
elif wantOtpServer and msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
||||||
self.handleGenerateWithRequiredOther(di)
|
self.handleGenerateWithRequiredOther(di)
|
||||||
elif wantOtpServer and msgType == CLIENT_DONE_SET_ZONE_RESP:
|
elif wantOtpServer and msgType == CLIENT_DONE_SET_ZONE_RESP:
|
||||||
self.handleSetZoneDone()
|
self.handleSetZoneDone()
|
||||||
|
elif wantOtpServer and msgType == CLEINT_OBJECT_LOCATION:
|
||||||
|
self.handleObjectLocation(di)
|
||||||
else:
|
else:
|
||||||
currentLoginState = self.loginFSM.getCurrentState()
|
currentLoginState = self.loginFSM.getCurrentState()
|
||||||
if currentLoginState:
|
if currentLoginState:
|
||||||
|
@ -76,6 +76,8 @@ CLIENT_GET_PET_DETAILS_RESP = 82
|
|||||||
CLIENT_ADD_INTEREST = 97
|
CLIENT_ADD_INTEREST = 97
|
||||||
CLEINT_ALTER_INTEREST = 98
|
CLEINT_ALTER_INTEREST = 98
|
||||||
CLEINT_REMOVE_INTEREST = 99
|
CLEINT_REMOVE_INTEREST = 99
|
||||||
|
if wantOtpServer:
|
||||||
|
CLEINT_OBJECT_LOCATION = 102
|
||||||
|
|
||||||
# These messages are ignored when the client is headed to the quiet zone
|
# These messages are ignored when the client is headed to the quiet zone
|
||||||
QUIET_ZONE_IGNORED_LIST = [
|
QUIET_ZONE_IGNORED_LIST = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user