本文整理汇总了Python中ArenaType.init方法的典型用法代码示例。如果您正苦于以下问题:Python ArenaType.init方法的具体用法?Python ArenaType.init怎么用?Python ArenaType.init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ArenaType
的用法示例。
在下文中一共展示了ArenaType.init方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: init
# 需要导入模块: import ArenaType [as 别名]
# 或者: from ArenaType import init [as 别名]
def init(scriptConfig, engineConfig, userPreferences, loadingScreenGUI = None):
global g_replayCtrl
try:
if constants.IS_DEVELOPMENT:
autoFlushPythonLog()
LOG_DEBUG('init')
BigWorld.wg_initCustomSettings()
Settings.g_instance = Settings.Settings(scriptConfig, engineConfig, userPreferences)
CommandMapping.g_instance = CommandMapping.CommandMapping()
from helpers import DecalMap
DecalMap.g_instance = DecalMap.DecalMap(scriptConfig['decal'])
from helpers import EdgeDetectColorController
EdgeDetectColorController.g_instance = EdgeDetectColorController.EdgeDetectColorController(scriptConfig['silhouetteColors'])
import SoundGroups
SoundGroups.g_instance = SoundGroups.SoundGroups()
import BattleReplay
g_replayCtrl = BattleReplay.g_replayCtrl = BattleReplay.BattleReplay()
g_replayCtrl.registerWotReplayFileExtension()
try:
import Vibroeffects
Vibroeffects.VibroManager.g_instance = Vibroeffects.VibroManager.VibroManager()
Vibroeffects.VibroManager.g_instance.connect()
except:
LOG_CURRENT_EXCEPTION()
tutorialLoaderInit()
BigWorld.callback(0.1, asyncore_call)
MessengerEntry.g_instance.init()
import items
items.init(True, None if not constants.IS_DEVELOPMENT else {})
import ArenaType
ArenaType.init()
import dossiers1
dossiers1.init()
import dossiers2
dossiers2.init()
BigWorld.worldDrawEnabled(False)
import LcdKeyboard
LcdKeyboard.enableLcdKeyboardSpecificKeys(True)
gui_personality.init(loadingScreenGUI=loadingScreenGUI)
AreaDestructibles.init()
MusicController.init()
TriggersManager.init()
RSSDownloader.init()
g_postProcessing.init()
try:
from LightFx import LightManager
LightManager.g_instance = LightManager.LightManager()
import AuxiliaryFx
AuxiliaryFx.g_instance = AuxiliaryFx.AuxiliaryFxManager()
except:
LOG_CURRENT_EXCEPTION()
except Exception:
LOG_CURRENT_EXCEPTION()
BigWorld.quit()
return