mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
context
This commit is contained in:
parent
3b59b1d592
commit
423c12dff8
@ -26,6 +26,8 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
ConnectionRepository.ConnectionRepository.__init__(self, base.config)
|
ConnectionRepository.ConnectionRepository.__init__(self, base.config)
|
||||||
|
|
||||||
|
self.context=100000
|
||||||
self.setClientDatagram(1)
|
self.setClientDatagram(1)
|
||||||
|
|
||||||
self.recorder = base.recorder
|
self.recorder = base.recorder
|
||||||
@ -134,6 +136,10 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
self.priorWorldPos = worldPos
|
self.priorWorldPos = worldPos
|
||||||
self.sendWorldPos(worldPos[0], worldPos[1])
|
self.sendWorldPos(worldPos[0], worldPos[1])
|
||||||
|
|
||||||
|
def allocateContext(self):
|
||||||
|
self.context+=1
|
||||||
|
return self.context
|
||||||
|
|
||||||
def setServerDelta(self, delta):
|
def setServerDelta(self, delta):
|
||||||
"""
|
"""
|
||||||
Indicates the approximate difference in seconds between the
|
Indicates the approximate difference in seconds between the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user