Revert "revert: LazyVarUpdater에 \BackedEnum 롤백"

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