[client] fix RecordStorage for linux
This commit is contained in:
8043
package-lock.json
generated
8043
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -13,6 +13,7 @@ import ru.m.tankz.game.record.GameRecord;
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function save(record:GameRecord):Void {
|
public function save(record:GameRecord):Void {
|
||||||
|
L.d("RecordStorage", 'save $record');
|
||||||
write(record.id, record);
|
write(record.id, record);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,7 +23,7 @@ import ru.m.tankz.game.record.GameRecord;
|
|||||||
try {
|
try {
|
||||||
@yield return read(id);
|
@yield return read(id);
|
||||||
} catch (error:Dynamic) {
|
} catch (error:Dynamic) {
|
||||||
|
L.w("RecordStorage", 'read ', error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package ru.m.tankz.view;
|
package ru.m.tankz.view;
|
||||||
|
|
||||||
import haxework.view.IView;
|
|
||||||
import flash.events.KeyboardEvent;
|
import flash.events.KeyboardEvent;
|
||||||
import flash.ui.Keyboard;
|
import flash.ui.Keyboard;
|
||||||
import haxework.resources.IResources;
|
import haxework.resources.IResources;
|
||||||
import haxework.view.frame.FrameSwitcher;
|
import haxework.view.frame.FrameSwitcher;
|
||||||
|
import haxework.view.IView;
|
||||||
import ru.m.tankz.sound.SoundManager;
|
import ru.m.tankz.sound.SoundManager;
|
||||||
|
|
||||||
@:template class ClientView extends FrameSwitcher {
|
@:template class ClientView extends FrameSwitcher {
|
||||||
|
|||||||
@@ -75,8 +75,8 @@ class GameState {
|
|||||||
public var config(get, null):Config;
|
public var config(get, null):Config;
|
||||||
public var level(get, null):LevelConfig;
|
public var level(get, null):LevelConfig;
|
||||||
|
|
||||||
@:provide private var configBundle:IConfigBundle;
|
@:provide static private var configBundle:IConfigBundle;
|
||||||
@:provide private var levelBundle:ILevelBundle;
|
@:provide static private var levelBundle:ILevelBundle;
|
||||||
|
|
||||||
public function new(type:GameType, presetId:PresetId = 0, levelId:Int = 0, state:GameState = null) {
|
public function new(type:GameType, presetId:PresetId = 0, levelId:Int = 0, state:GameState = null) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
|
|||||||
Reference in New Issue
Block a user