[version] up

This commit is contained in:
2018-02-16 00:09:13 +03:00
parent 1ae84cf5a8
commit 79039ae79e
2 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "tankz", "name": "tankz",
"version": "0.6.1", "version": "0.6.2",
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"ansi-colors": "^1.0.1", "ansi-colors": "^1.0.1",

View File

@@ -65,7 +65,8 @@ class CollisionProcessor implements EngineListener {
public function onDestroy(entity:EntityType):Void { } public function onDestroy(entity:EntityType):Void { }
} }
@:yield @:build(yield.parser.Parser.run())
//@:yield //ToDo: not working
class Engine implements ControlHandler { class Engine implements ControlHandler {
public var config(default, default):Config; public var config(default, default):Config;
@@ -223,8 +224,9 @@ class Engine implements ControlHandler {
public function iterTanks(filter:Tank->Bool):Iterator<Tank> { public function iterTanks(filter:Tank->Bool):Iterator<Tank> {
for (entity in entities) { for (entity in entities) {
if (Std.is(entity, Tank) && filter(entity)) { var tank:Tank = EntityTypeResolver.as(entity, Tank);
@yield return entity; if (tank != null && filter(tank)) {
@yield return tank;
} }
} }
} }