2019-12-30 00:00:16 -06:00
|
|
|
from .AIBase import *
|
2019-11-02 17:27:54 -05:00
|
|
|
__builtins__['simbase'] = AIBase()
|
|
|
|
__builtins__['ostream'] = Notify.out()
|
|
|
|
__builtins__['run'] = simbase.run
|
|
|
|
__builtins__['taskMgr'] = simbase.taskMgr
|
|
|
|
__builtins__['jobMgr'] = simbase.jobMgr
|
|
|
|
__builtins__['eventMgr'] = simbase.eventMgr
|
|
|
|
__builtins__['messenger'] = simbase.messenger
|
|
|
|
__builtins__['bboard'] = simbase.bboard
|
|
|
|
__builtins__['config'] = simbase.config
|
|
|
|
__builtins__['directNotify'] = directNotify
|
|
|
|
from direct.showbase import Loader
|
|
|
|
simbase.loader = Loader.Loader(simbase)
|
|
|
|
__builtins__['loader'] = simbase.loader
|
|
|
|
directNotify.setDconfigLevels()
|
|
|
|
|
|
|
|
def inspect(anObject):
|
|
|
|
from direct.tkpanels import Inspector
|
|
|
|
Inspector.inspect(anObject)
|
|
|
|
|
|
|
|
|
|
|
|
__builtins__['inspect'] = inspect
|
|
|
|
if not __debug__ and __dev__:
|
|
|
|
notify = directNotify.newCategory('ShowBaseGlobal')
|
|
|
|
notify.error("You must set 'want-dev' to false in non-debug mode.")
|
|
|
|
taskMgr.finalInit()
|