revert: LazyVarUpdater에 \BackedEnum 롤백

This commit is contained in:
Hide_D committed 2022-08-26 17:30:24 +09:00
1 parent 8a5a3b67f7
commit a88ec71b44
2 files changed
+13 -49

No files matched your search

+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];
}