mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
new server messages for generic avatar
This commit is contained in:
parent
4f2491faf8
commit
38690f1522
@ -318,11 +318,18 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
if base.config.GetBool('server-heartbeat-info', 1):
|
if base.config.GetBool('server-heartbeat-info', 1):
|
||||||
ClientRepository.notify.info("Server heartbeat.")
|
ClientRepository.notify.info("Server heartbeat.")
|
||||||
|
|
||||||
|
def handleSystemMessage(self, di):
|
||||||
|
# Got a system message from the server.
|
||||||
|
message = di.getString()
|
||||||
|
ClientRepository.notify.info('Message from server: %s' % (message))
|
||||||
|
|
||||||
def handleUnexpectedMsgType(self, msgType, di):
|
def handleUnexpectedMsgType(self, msgType, di):
|
||||||
if msgType == CLIENT_GO_GET_LOST:
|
if msgType == CLIENT_GO_GET_LOST:
|
||||||
self.handleGoGetLost(di)
|
self.handleGoGetLost(di)
|
||||||
elif msgType == CLIENT_HEARTBEAT:
|
elif msgType == CLIENT_HEARTBEAT:
|
||||||
self.handleServerHeartbeat(di)
|
self.handleServerHeartbeat(di)
|
||||||
|
elif msgType == CLIENT_SYSTEM_MESSAGE:
|
||||||
|
self.handleSystemMessage(di)
|
||||||
else:
|
else:
|
||||||
currentLoginState = self.loginFSM.getCurrentState()
|
currentLoginState = self.loginFSM.getCurrentState()
|
||||||
if currentLoginState:
|
if currentLoginState:
|
||||||
|
@ -61,6 +61,11 @@ CLIENT_SET_WISHNAME_RESP = 71
|
|||||||
CLIENT_SET_WISHNAME_CLEAR = 72
|
CLIENT_SET_WISHNAME_CLEAR = 72
|
||||||
CLIENT_SET_SECURITY = 73
|
CLIENT_SET_SECURITY = 73
|
||||||
|
|
||||||
|
CLIENT_GET_AVATARS_RESP2 = 75
|
||||||
|
CLIENT_CREATE_AVATAR2 = 76
|
||||||
|
CLIENT_SYSTEM_MESSAGE = 78
|
||||||
|
CLIENT_SET_AVTYPE = 80
|
||||||
|
|
||||||
# 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