use class, function 커맨드를 php8에서 사용할 수 있도록 수정

- \ 토큰 해석 문제
- VSCode 자동 완성 문제로 use function \sammo\{ 를 모두 해제
This commit is contained in:
2021-08-12 22:35:42 +09:00
parent b4d7acb827
commit 9aa1b25a56
66 changed files with 461 additions and 715 deletions
+15 -13
View File
@@ -1,17 +1,19 @@
<?php
namespace sammo\Command\General;
use \sammo\{
DB, Util, JosaUtil,
General,
ActionLogger,
GameConst, GameUnitConst,
LastTurn,
Command
};
use \sammo\DB;
use \sammo\Util;
use \sammo\JosaUtil;
use \sammo\General;
use \sammo\ActionLogger;
use \sammo\GameConst;
use \sammo\GameUnitConst;
use \sammo\LastTurn;
use \sammo\Command;
class che_모병 extends che_징병{
class che_모병 extends che_징병
{
static protected $actionName = '모병';
static protected $costOffset = 2;
@@ -25,8 +27,8 @@ class che_모병 extends che_징병{
static::$defaultAtmos = GameConst::$defaultAtmosHigh;
}
public function getCommandDetailTitle():string{
public function getCommandDetailTitle(): string
{
return "{$this->getName()}(통솔경험, 자금×2)";
}
}
}