[client] game room frames update

This commit is contained in:
2019-06-05 11:37:25 +03:00
parent 6ad9076987
commit abd1b834d7
12 changed files with 131 additions and 47 deletions

View File

@@ -233,7 +233,7 @@ class Config {
return playersMap.get(playerId);
}
public function getColor(playerId:PlayerId):Color {
public function getColor(playerId:PlayerId):Null<Color> {
var player = getPlayer(playerId);
if (player != null && player.color != null) {
return player.color;
@@ -242,7 +242,7 @@ class Config {
if (team != null) {
return team.color;
}
return -1;
return null;
}
public function getPoint(teamId:TeamId, type:String, index:Int = -1):SpawnPoint {