/// <summary>フィールド初期化を行います。</summary> private void Initialize() { var chatWindowPosition = new ChatWindowPositionModel( _mainWindow, _setting.ChatWindowLayout, _relocator ); _chatWindow = new ChatWindowModel(chatWindowPosition); var voiceOperator = new VoiceOperator(_setting.Voice); voiceOperator.LipSynchRequested += (_, e) => _lipSyncher = e.LipSyncher; var scriptRequestor = new SimpleScriptRequestor(); var api = new ScriptApi( _mainWindow, _character, voiceOperator, _chatWindow, scriptRequestor, _setting, _setting.ScriptApi, _characterName ); var dict = new PythonDictionary(); _updateProcessor = new IronPythonUpdateProcessor(api, _setting.ScriptUpdate, dict); var ironPythonReader = new IronPythonMainScriptReader(api, dict); _scriptStateManager = new ScriptStateManager(ironPythonReader, _setting.ScriptRoutine, _characterName); scriptRequestor.ScriptRequested += (_, e) => _scriptStateManager.Request( e.ScriptName, e.Priority ); }
public ChatWindowController(GameWorldController gameWorldController) { _gameWorldController = gameWorldController; _chatWindowModel = new ChatWindowModel(this); _chatWindowView = new ChatWindowView(this); }
public ChatWindowController(GameWorldController gameWorldController) { _gameWorldController = gameWorldController; _chatWindowModel= new ChatWindowModel(this); _chatWindowView = new ChatWindowView(this); }