mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
distributed: Switch DistributedSmoothNodeBase.BroadcastTypes to IntEnum
The Enum from PythonUtil is obsolete since the introduction of a proper enum module in Python 3.4.
This commit is contained in:
parent
107d338d88
commit
3579855ff1
@ -3,9 +3,12 @@
|
||||
from .ClockDelta import *
|
||||
from direct.task import Task
|
||||
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 enum import IntEnum
|
||||
|
||||
|
||||
class DummyTaskClass:
|
||||
def setDelay(self, blah):
|
||||
pass
|
||||
@ -15,7 +18,11 @@ DummyTask = DummyTaskClass()
|
||||
class DistributedSmoothNodeBase:
|
||||
"""common base class for DistributedSmoothNode and DistributedSmoothNodeAI
|
||||
"""
|
||||
BroadcastTypes = Enum('FULL, XYH, XY')
|
||||
|
||||
class BroadcastTypes(IntEnum):
|
||||
FULL = 0
|
||||
XYH = 1
|
||||
XY = 2
|
||||
|
||||
def __init__(self):
|
||||
self.__broadcastPeriod = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user