General 클래스를 General, GeneralLite로 분리 #236

Merged
Hide_D merged 19 commits from NgGeneralClass into devel 2023-08-03 21:32:02 +09:00
2 changed files with 4 additions and 13 deletions
Showing only changes of commit 07035b5a12 - Show all commits
+4 -1
View File
@@ -478,8 +478,11 @@ class General extends GeneralLite implements iAction
}
}
function updateVar(string $key, $value)
function updateVar(string|\BackedEnum $key, $value)
{
if($key instanceof \BackedEnum){
$key = $key->value;
}
if (($this->raw[$key] ?? null) === $value) {
return;
}
-12
View File
@@ -161,18 +161,6 @@ class GeneralLite
return $this->getVar("dex{$armType}");
}
function updateVar(string $key, $value)
{
if (($this->raw[$key] ?? null) === $value) {
return;
}
if (!key_exists($key, $this->updatedVar)) {
$this->updatedVar[$key] = true;
}
$this->raw[$key] = $value;
}
function getRankVar(RankColumn $key, $defaultValue = null): int
{
if (!$this->rankVarRead->hasKey($key)) {