revert: LazyVarUpdater에 \BackedEnum 롤백

This commit is contained in:
2022-08-26 17:30:24 +09:00
parent 8a5a3b67f7
commit a88ec71b44
2 changed files with 13 additions and 49 deletions
+1 -4
View File
@@ -44,10 +44,7 @@ class WarUnitCity extends WarUnit{
return $this->getVar('name');
}
function getCityVar(string|\BackedEnum $key){
if($key instanceof \BackedEnum){
$key = $key->value;
}
function getCityVar(string $key){
return $this->raw[$key];
}