[common] enity id

This commit is contained in:
2019-05-08 16:40:58 +03:00
parent 183c6c16f1
commit b0ae85334b
13 changed files with 46 additions and 42 deletions

View File

@@ -78,11 +78,11 @@ class SoundManager implements GameListener {
switch event {
case START(state):
play('start');
case SPAWN(BULLET(_)):
case SPAWN(_, BULLET(_)):
if (false /* ToDo: human tank */) {
play('shot');
}
case SPAWN(BONUS(_, _)):
case SPAWN(_, BONUS(_, _)):
play('bonus_add');
case HIT(TANK(tank, who, wherewith)):
play('bullet_hit');

View File

@@ -22,7 +22,11 @@ import ru.m.tankz.game.record.GameRecord;
public function iterator():Iterator<GameRecord> {
var data:DynamicAccess<String> = so.data;
for (id in data.keys()) {
@yield return read(id);
try {
@yield return read(id);
} catch (error:Dynamic) {
}
}
}
}