[client] update to template macro
This commit is contained in:
@@ -19,7 +19,8 @@ import ru.m.tankz.sound.SoundManager;
|
|||||||
@:provide var soundManager:SoundManager;
|
@:provide var soundManager:SoundManager;
|
||||||
@:provide static var bus:IControlBus;
|
@:provide static var bus:IControlBus;
|
||||||
|
|
||||||
public function init():Void {
|
public function new():Void {
|
||||||
|
super();
|
||||||
resources.text.put('version', '${Const.VERSION}');
|
resources.text.put('version', '${Const.VERSION}');
|
||||||
resources.text.put('name', '${Const.NAME}');
|
resources.text.put('name', '${Const.NAME}');
|
||||||
switcher = switcherView;
|
switcher = switcherView;
|
||||||
|
|||||||
@@ -49,9 +49,6 @@ import ru.m.tankz.view.gamepad.GamepadView;
|
|||||||
|
|
||||||
public function new() {
|
public function new() {
|
||||||
super(id, new DefaultLayout());
|
super(id, new DefaultLayout());
|
||||||
}
|
|
||||||
|
|
||||||
public function init():Void {
|
|
||||||
bus.connect(gamepad);
|
bus.connect(gamepad);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ import ru.m.tankz.view.popup.LoginPopup;
|
|||||||
|
|
||||||
@:provide static var network:NetworkManager;
|
@:provide static var network:NetworkManager;
|
||||||
|
|
||||||
public function init():Void {
|
public function new():Void {
|
||||||
|
super();
|
||||||
network.stateSignal.connect(onConnectionChange);
|
network.stateSignal.connect(onConnectionChange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,6 @@ import ru.m.tankz.editor.view.tank.TankView;
|
|||||||
|
|
||||||
public function new() {
|
public function new() {
|
||||||
super(ID);
|
super(ID);
|
||||||
}
|
|
||||||
|
|
||||||
public function init():Void {
|
|
||||||
color = 0x00ff00;
|
color = 0x00ff00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user