refac: GeneralBase, GeneralLite, General

- GeneralLite -> General 구조는 PHP에서 경고를 안띄웟서 포기
- GeneralBase에서 각각 요청하는 형태로 변경
- 여전히 GeneralBase를 인자로 받는 함수에서
  GeneralLite를 요구하거나, General을 요구하는 함수를 추가로 호출할 때
  경고가 없으므로 특히 주의해야 함.
This commit is contained in:
2023-08-01 16:28:28 +00:00
parent f7e5a93fb9
commit 822b5d3125
5 changed files with 240 additions and 238 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ class AutorunNationPolicy {
'cureThreshold'=>10,
];
function __construct(GeneralLite $general, $aiOptions, ?array $nationPolicy, ?array $serverPolicy, array $nation, array $env)
function __construct(GeneralBase $general, $aiOptions, ?array $nationPolicy, ?array $serverPolicy, array $nation, array $env)
{
foreach(static::$defaultPolicy as $policy=>$value){
$this->{$policy} = $value;