[client] rework GamePanel
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user