[editor] build fix

This commit is contained in:
2019-10-01 22:28:51 +03:00
parent 1b5eef810c
commit 757bc87426

View File

@@ -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();