[client] update SoundManager
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user