mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
move suggestResync to DistributedSmoothNode
This commit is contained in:
parent
0c7e048d28
commit
f12cb81d9d
@ -317,3 +317,19 @@ class DistributedSmoothNode(DistributedNode.DistributedNode):
|
|||||||
else:
|
else:
|
||||||
NodePath.wrtReparentTo(self, parent)
|
NodePath.wrtReparentTo(self, parent)
|
||||||
|
|
||||||
|
|
||||||
|
### Monitor clock sync ###
|
||||||
|
|
||||||
|
def d_suggestResync(self, avId):
|
||||||
|
self.sendUpdate("suggestResync", [avId])
|
||||||
|
|
||||||
|
def suggestResync(self, avId):
|
||||||
|
"""suggestResync(self, avId)
|
||||||
|
|
||||||
|
This message is sent from one client to another when the other
|
||||||
|
client receives a timestamp from this client that is so far
|
||||||
|
out of date as to suggest that one or both clients needs to
|
||||||
|
resynchronize with the AI.
|
||||||
|
"""
|
||||||
|
if self.cr.timeManager != None:
|
||||||
|
self.cr.timeManager.synchronize("suggested by %d" % (avId))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user