[client] update SoundManager

This commit is contained in:
2019-05-20 22:02:13 +03:00
parent 17823ede11
commit 7984d8282c
3 changed files with 58 additions and 35 deletions

View File

@@ -1,6 +1,7 @@
package ru.m.tankz.config;
import haxework.color.Color;
import ru.m.tankz.control.Controller;
import ru.m.tankz.Type;
typedef CompleteRule = {
@@ -222,4 +223,12 @@ class Config {
}
return null;
}
public function isHuman(playerId:PlayerId) {
var controller:Controller = AController.fromString(getPlayer(playerId).control);
return switch controller {
case HUMAN(_): true;
case _: false;
}
}
}