refac: GeneralBase, GeneralLite, General
- GeneralLite -> General 구조는 PHP에서 경고를 안띄웟서 포기 - GeneralBase에서 각각 요청하는 형태로 변경 - 여전히 GeneralBase를 인자로 받는 함수에서 GeneralLite를 요구하거나, General을 요구하는 함수를 추가로 호출할 때 경고가 없으므로 특히 주의해야 함.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user