本文整理匯總了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