mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
*** empty log message ***
This commit is contained in:
parent
0563079eab
commit
bcb8f039d8
@ -139,7 +139,18 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
||||
"""
|
||||
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):
|
||||
if wantOtpServer:
|
||||
TheParent = di.getUint32()
|
||||
TheZone = di.getUint32()
|
||||
# Get the class Id
|
||||
classId = di.getUint16();
|
||||
# Get the DO Id
|
||||
@ -152,6 +163,9 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
||||
dclass.stopGenerate()
|
||||
|
||||
def handleGenerateWithRequiredOther(self, di):
|
||||
if wantOtpServer:
|
||||
TheParent = di.getUint32()
|
||||
TheZone = di.getUint32()
|
||||
# Get the class Id
|
||||
classId = di.getUint16();
|
||||
# Get the DO Id
|
||||
@ -165,6 +179,9 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
||||
|
||||
def handleQuietZoneGenerateWithRequired(self, di):
|
||||
# Special handler for quiet zone generates -- we need to filter
|
||||
if wantOtpServer:
|
||||
TheParent = di.getUint32()
|
||||
TheZone = di.getUint32()
|
||||
# Get the class Id
|
||||
classId = di.getUint16();
|
||||
# Get the DO Id
|
||||
@ -184,6 +201,9 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
||||
|
||||
def handleQuietZoneGenerateWithRequiredOther(self, di):
|
||||
# Special handler for quiet zone generates -- we need to filter
|
||||
if wantOtpServer:
|
||||
TheParent = di.getUint32()
|
||||
TheZone = di.getUint32()
|
||||
# Get the class Id
|
||||
classId = di.getUint16();
|
||||
# Get the DO Id
|
||||
@ -443,10 +463,12 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
||||
self.handleSystemMessage(di)
|
||||
elif wantOtpServer and msgType == CLIENT_CREATE_OBJECT_REQUIRED:
|
||||
self.handleGenerateWithRequired(di)
|
||||
elif wantOtpServer and dmsgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
||||
elif wantOtpServer and msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
||||
self.handleGenerateWithRequiredOther(di)
|
||||
elif wantOtpServer and msgType == CLIENT_DONE_SET_ZONE_RESP:
|
||||
self.handleSetZoneDone()
|
||||
elif wantOtpServer and msgType == CLEINT_OBJECT_LOCATION:
|
||||
self.handleObjectLocation(di)
|
||||
else:
|
||||
currentLoginState = self.loginFSM.getCurrentState()
|
||||
if currentLoginState:
|
||||
|
@ -76,6 +76,8 @@ CLIENT_GET_PET_DETAILS_RESP = 82
|
||||
CLIENT_ADD_INTEREST = 97
|
||||
CLEINT_ALTER_INTEREST = 98
|
||||
CLEINT_REMOVE_INTEREST = 99
|
||||
if wantOtpServer:
|
||||
CLEINT_OBJECT_LOCATION = 102
|
||||
|
||||
# These messages are ignored when the client is headed to the quiet zone
|
||||
QUIET_ZONE_IGNORED_LIST = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user