[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 static var bus:IControlBus;
|
||||
|
||||
public function init():Void {
|
||||
public function new():Void {
|
||||
super();
|
||||
resources.text.put('version', '${Const.VERSION}');
|
||||
resources.text.put('name', '${Const.NAME}');
|
||||
switcher = switcherView;
|
||||
|
||||
@@ -49,9 +49,6 @@ import ru.m.tankz.view.gamepad.GamepadView;
|
||||
|
||||
public function new() {
|
||||
super(id, new DefaultLayout());
|
||||
}
|
||||
|
||||
public function init():Void {
|
||||
bus.connect(gamepad);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,8 @@ import ru.m.tankz.view.popup.LoginPopup;
|
||||
|
||||
@:provide static var network:NetworkManager;
|
||||
|
||||
public function init():Void {
|
||||
public function new():Void {
|
||||
super();
|
||||
network.stateSignal.connect(onConnectionChange);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,9 +15,6 @@ import ru.m.tankz.editor.view.tank.TankView;
|
||||
|
||||
public function new() {
|
||||
super(ID);
|
||||
}
|
||||
|
||||
public function init():Void {
|
||||
color = 0x00ff00;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user