From 38690f1522540b03f03ef0661f28d06d49d48e19 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 21 Jun 2004 20:52:42 +0000 Subject: [PATCH] new server messages for generic avatar --- direct/src/distributed/ClientRepository.py | 7 +++++++ direct/src/distributed/MsgTypes.py | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/direct/src/distributed/ClientRepository.py b/direct/src/distributed/ClientRepository.py index 4dfd22692c..9387309950 100644 --- a/direct/src/distributed/ClientRepository.py +++ b/direct/src/distributed/ClientRepository.py @@ -318,11 +318,18 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): if base.config.GetBool('server-heartbeat-info', 1): 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): if msgType == CLIENT_GO_GET_LOST: self.handleGoGetLost(di) elif msgType == CLIENT_HEARTBEAT: self.handleServerHeartbeat(di) + elif msgType == CLIENT_SYSTEM_MESSAGE: + self.handleSystemMessage(di) else: currentLoginState = self.loginFSM.getCurrentState() if currentLoginState: diff --git a/direct/src/distributed/MsgTypes.py b/direct/src/distributed/MsgTypes.py index c56d4b19bc..5e8f424252 100644 --- a/direct/src/distributed/MsgTypes.py +++ b/direct/src/distributed/MsgTypes.py @@ -61,6 +61,11 @@ CLIENT_SET_WISHNAME_RESP = 71 CLIENT_SET_WISHNAME_CLEAR = 72 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 QUIET_ZONE_IGNORED_LIST = [