feat(WIP): processing 계략 세부

- 기타 파일 잔여 코드 제거
This commit is contained in:
2021-12-22 00:24:51 +09:00
parent 1fa32554d8
commit 77b78d05ac
6 changed files with 35 additions and 63 deletions
-7
View File
@@ -333,13 +333,6 @@ class che_징병 extends Command\GeneralCommand
];
}
public function getJSPlugins(): array
{
return [
'recruitCrewForm'
];
}
public function getForm(): string
{
$db = DB::db();
+6 -21
View File
@@ -225,29 +225,14 @@ class che_첩보 extends Command\GeneralCommand
return true;
}
public function getJSPlugins(): array
public function exportJSVars(): array
{
return [
'defaultSelectCityByMap'
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 3),
],
];
}
public function getForm(): string
{
$currentCityID = $this->generalObj->getCityID();
ob_start();
?>
<?= \sammo\getMapHtml() ?><br>
선택된 도시에 첩보를 실행합니다.<br>
인접도시일 경우 많은 정보를 얻을 수 있습니다.<br>
목록을 선택하거나 도시를 클릭하세요.<br>
<select class='formInput' name="destCityID" id="destCityID" size='1' style='color:white;background-color:black;'><br>
<?= \sammo\optionsForCities() ?><br>
</select> <input type=button id="commonSubmit" value="<?= $this->getName() ?>"><br>
<br>
<br>
<?= printCitiesBasedOnDistance($currentCityID, 3) ?>
<?php
return ob_get_clean();
}
}
+6 -23
View File
@@ -335,31 +335,14 @@ class che_화계 extends Command\GeneralCommand
return true;
}
public function getJSPlugins(): array
public function exportJSVars(): array
{
return [
'defaultSelectCityByMap'
'mapTheme' => \sammo\getMapTheme(),
'procRes' => [
'cities' => \sammo\JSOptionsForCities(),
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 3),
],
];
}
public function getForm(): string
{
$currentCityID = $this->generalObj->getCityID();
$commandName = $this->getName();
$josaUl = JosaUtil::pick($commandName, '을');
ob_start();
?>
<?= \sammo\getMapHtml() ?><br>
선택된 도시에 <?= $commandName ?><?= $josaUl ?> 실행합니다.<br>
목록을 선택하거나 도시를 클릭하세요.<br>
<select class='formInput' name="destCityID" id="destCityID" size='1' style='color:white;background-color:black;'><br>
<?= \sammo\optionsForCities() ?><br>
</select> <input type=button id="commonSubmit" value="<?= $this->getName() ?>"><br>
<br>
<br>
<?= printCitiesBasedOnDistance($currentCityID, 2) ?>
<?php
return ob_get_clean();
}
}