mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
added LevelMgr
This commit is contained in:
parent
80d1520092
commit
f196aaf0fe
13
direct/src/level/LevelMgr.py
Executable file
13
direct/src/level/LevelMgr.py
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
"""LevelMgr module: contains the LevelMgr class"""
|
||||||
|
|
||||||
|
import Entity
|
||||||
|
|
||||||
|
class LevelMgr(Entity.Entity):
|
||||||
|
"""This class manages editable client-side level attributes"""
|
||||||
|
def __init__(self, level, entId):
|
||||||
|
Entity.Entity.__init__(self, level, entId)
|
||||||
|
self.initializeEntity()
|
||||||
|
self.callSetters('modelFilename')
|
||||||
|
|
||||||
|
def setModelFilename(self, modelFilename):
|
||||||
|
self.level.modelFilename = modelFilename
|
9
direct/src/level/LevelMgrAI.py
Executable file
9
direct/src/level/LevelMgrAI.py
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
"""LevelMgrAI module: contains the LevelMgrAI class"""
|
||||||
|
|
||||||
|
import Entity
|
||||||
|
|
||||||
|
class LevelMgrAI(Entity.Entity):
|
||||||
|
"""This class manages editable AI level attributes"""
|
||||||
|
def __init__(self, level, entId):
|
||||||
|
Entity.Entity.__init__(self, level, entId)
|
||||||
|
self.initializeEntity()
|
Loading…
x
Reference in New Issue
Block a user