feat: scenarioEffect 추가

- 모든 General에 iAction으로 작동
This commit is contained in:
2023-08-05 06:53:19 +00:00
parent e54a0a6668
commit 16cfa46864
5 changed files with 66 additions and 14 deletions
+7
View File
@@ -508,6 +508,13 @@ class Scenario{
throw new \RuntimeException('유닛 파일이 올바르게 지정되지 않음! : '.$unitSet);
}
if(key_exists('scenarioEffect', $this->gameConf)){
$className = getScenarioEffectClass($this->gameConf['scenarioEffect']);
if($className === 'None'){
$this->gameConf['scenarioEffect'] = null;
}
}
Util::generatePHPClassFile($path.'/GameConst.php', $this->gameConf, 'GameConstBase', 'sammo');
copy("$mapPath/$mapName.php", $path.'/CityConst.php');