[editor] build fix
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user