From 757bc874263cf7cb1d4668ddb67646c414df83d7 Mon Sep 17 00:00:00 2001 From: shmyga Date: Tue, 1 Oct 2019 22:28:51 +0300 Subject: [PATCH] [editor] build fix --- src/editor/haxe/ru/m/tankz/editor/Editor.hx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/editor/haxe/ru/m/tankz/editor/Editor.hx b/src/editor/haxe/ru/m/tankz/editor/Editor.hx index 1104942..9948868 100644 --- a/src/editor/haxe/ru/m/tankz/editor/Editor.hx +++ b/src/editor/haxe/ru/m/tankz/editor/Editor.hx @@ -1,16 +1,16 @@ package ru.m.tankz.editor; -import haxework.provider.Provider; import haxework.resources.IResources; import haxework.resources.Resources; import haxework.view.frame.FrameSwitcher; import haxework.view.popup.PopupManager; import haxework.view.Root; import haxework.view.theme.ITheme; +import ru.m.tankz.bundle.CachedLevelBundle; +import ru.m.tankz.bundle.ClientLevelSource; import ru.m.tankz.bundle.ConfigBundle; import ru.m.tankz.bundle.IConfigBundle; import ru.m.tankz.bundle.ILevelBundle; -import ru.m.tankz.bundle.ClientLevelSource; import ru.m.tankz.editor.view.EditorView; import ru.m.tankz.editor.view.PackListFrame; @@ -22,6 +22,8 @@ class Editor { @:provide static var switcher:FrameSwitcher; @:provide static var storage:EditorStorage; @:provide static var popupManager:PopupManager; + @:provide static var configBundle:IConfigBundle; + @:provide static var levelBundle:ILevelBundle; public static function main() { L.push(new haxework.log.TraceLogger()); @@ -39,9 +41,8 @@ class Editor { resources.text.put("version", '${Const.VERSION}'); theme = new AppTheme(); - - Provider.setFactory(IConfigBundle, ConfigBundle); - Provider.setFactory(ILevelBundle, ClientLevelSource); + configBundle = new ConfigBundle(); + levelBundle = new CachedLevelBundle(new ClientLevelSource()); storage = new EditorStorage(); popupManager = new PopupManager();