mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-20 22:20:59 -04:00
self.notify
This commit is contained in:
parent
84e0aaf6ea
commit
55ad3fa826
@ -413,7 +413,7 @@ class ClientRepositoryBase(ConnectionRepository):
|
|||||||
self._logFailedDisable(doId, ownerView)
|
self._logFailedDisable(doId, ownerView)
|
||||||
|
|
||||||
def _logFailedDisable(self, doId, ownerView):
|
def _logFailedDisable(self, doId, ownerView):
|
||||||
ClientRepository.notify.warning(
|
self.notify.warning(
|
||||||
"Disable failed. DistObj "
|
"Disable failed. DistObj "
|
||||||
+ str(doId) +
|
+ str(doId) +
|
||||||
" is not in dictionary, ownerView=%s" % ownerView)
|
" is not in dictionary, ownerView=%s" % ownerView)
|
||||||
@ -450,7 +450,7 @@ class ClientRepositoryBase(ConnectionRepository):
|
|||||||
# Let the dclass finish the job
|
# Let the dclass finish the job
|
||||||
do.dclass.receiveUpdate(do, di)
|
do.dclass.receiveUpdate(do, di)
|
||||||
else:
|
else:
|
||||||
ClientRepository.notify.warning(
|
self.notify.warning(
|
||||||
"Asked to update non-existent DistObj " + str(doId))
|
"Asked to update non-existent DistObj " + str(doId))
|
||||||
|
|
||||||
def handleGoGetLost(self, di):
|
def handleGoGetLost(self, di):
|
||||||
@ -460,18 +460,18 @@ class ClientRepositoryBase(ConnectionRepository):
|
|||||||
self.bootedIndex = di.getUint16()
|
self.bootedIndex = di.getUint16()
|
||||||
self.bootedText = di.getString()
|
self.bootedText = di.getString()
|
||||||
|
|
||||||
ClientRepository.notify.warning(
|
self.notify.warning(
|
||||||
"Server is booting us out (%d): %s" % (self.bootedIndex, self.bootedText))
|
"Server is booting us out (%d): %s" % (self.bootedIndex, self.bootedText))
|
||||||
else:
|
else:
|
||||||
self.bootedIndex = None
|
self.bootedIndex = None
|
||||||
self.bootedText = None
|
self.bootedText = None
|
||||||
ClientRepository.notify.warning(
|
self.notify.warning(
|
||||||
"Server is booting us out with no explanation.")
|
"Server is booting us out with no explanation.")
|
||||||
|
|
||||||
def handleServerHeartbeat(self, di):
|
def handleServerHeartbeat(self, di):
|
||||||
# Got a heartbeat message from the server.
|
# Got a heartbeat message from the server.
|
||||||
if base.config.GetBool('server-heartbeat-info', 1):
|
if base.config.GetBool('server-heartbeat-info', 1):
|
||||||
ClientRepository.notify.info("Server heartbeat.")
|
self.notify.info("Server heartbeat.")
|
||||||
|
|
||||||
def handleSystemMessage(self, di):
|
def handleSystemMessage(self, di):
|
||||||
# Got a system message from the server.
|
# Got a system message from the server.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user