[common] enity id
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user