[client] rework GamePanel

This commit is contained in:
2019-07-29 17:57:33 +03:00
parent 8a3ceec1ee
commit 7125cc1e9f
22 changed files with 247 additions and 248 deletions

View File

@@ -227,6 +227,10 @@ class Config {
return playersMap.get(playerId);
}
public function getPlayerTank(playerId:PlayerId):TankConfig {
return getTank(getPlayer(playerId.index == -1 ? [playerId.team, 0] : playerId).tanks[0].type);
}
public function getColor(playerId:PlayerId):Null<Color> {
var player = getPlayer(playerId);
if (player != null && player.color != null) {