mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
factorySpecNum -> factoryId
This commit is contained in:
parent
26a4a2b980
commit
3fc8c20500
@ -7,14 +7,14 @@ import GoonPathData
|
|||||||
class PathEntity(BasicEntities.NodePathEntity):
|
class PathEntity(BasicEntities.NodePathEntity):
|
||||||
def __init__(self, level, entId):
|
def __init__(self, level, entId):
|
||||||
BasicEntities.NodePathEntity.__init__(self, level, entId)
|
BasicEntities.NodePathEntity.__init__(self, level, entId)
|
||||||
self.path = GoonPathData.Paths[self.level.factorySpecNum][self.pathIndex]
|
self.path = GoonPathData.Paths[self.level.factoryId][self.pathIndex]
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
BasicEntities.NodePathEntity.destroy(self)
|
BasicEntities.NodePathEntity.destroy(self)
|
||||||
|
|
||||||
def setPathIndex(self, pathIndex):
|
def setPathIndex(self, pathIndex):
|
||||||
self.pathIndex = pathIndex
|
self.pathIndex = pathIndex
|
||||||
self.path = GoonPathData.Paths[self.level.factorySpecNum][self.pathIndex]
|
self.path = GoonPathData.Paths[self.level.factoryId][self.pathIndex]
|
||||||
|
|
||||||
def makePathTrack(self, node, velocity, name, turnTime=1, lookAroundNode=None):
|
def makePathTrack(self, node, velocity, name, turnTime=1, lookAroundNode=None):
|
||||||
track = Sequence(name = name)
|
track = Sequence(name = name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user