|
@@ -3,9 +3,12 @@
|
|
|
from .ClockDelta import *
|
|
from .ClockDelta import *
|
|
|
from direct.task import Task
|
|
from direct.task import Task
|
|
|
from direct.task.TaskManagerGlobal import taskMgr
|
|
from direct.task.TaskManagerGlobal import taskMgr
|
|
|
-from direct.showbase.PythonUtil import randFloat, Enum
|
|
|
|
|
|
|
+from direct.showbase.PythonUtil import randFloat
|
|
|
from panda3d.direct import CDistributedSmoothNodeBase
|
|
from panda3d.direct import CDistributedSmoothNodeBase
|
|
|
|
|
|
|
|
|
|
+from enum import IntEnum
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
class DummyTaskClass:
|
|
class DummyTaskClass:
|
|
|
def setDelay(self, blah):
|
|
def setDelay(self, blah):
|
|
|
pass
|
|
pass
|
|
@@ -15,7 +18,11 @@ DummyTask = DummyTaskClass()
|
|
|
class DistributedSmoothNodeBase:
|
|
class DistributedSmoothNodeBase:
|
|
|
"""common base class for DistributedSmoothNode and DistributedSmoothNodeAI
|
|
"""common base class for DistributedSmoothNode and DistributedSmoothNodeAI
|
|
|
"""
|
|
"""
|
|
|
- BroadcastTypes = Enum('FULL, XYH, XY')
|
|
|
|
|
|
|
+
|
|
|
|
|
+ class BroadcastTypes(IntEnum):
|
|
|
|
|
+ FULL = 0
|
|
|
|
|
+ XYH = 1
|
|
|
|
|
+ XY = 2
|
|
|
|
|
|
|
|
def __init__(self):
|
|
def __init__(self):
|
|
|
self.__broadcastPeriod = None
|
|
self.__broadcastPeriod = None
|