buildGeneralCommandClass류 구현
This commit is contained in:
1 parent
bf788d4f6e
commit
7cfc8f0269
4 files changed
+15
-11
No files matched your search
@@ -75,9 +75,7 @@ class TurnExecutionHelper
|
||||
$db = DB::db();
|
||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||
|
||||
$commandClass = getNationCommandClass($commandClassName);
|
||||
/** @var \sammo\Command\NationCommand $commandObj */
|
||||
$commandObj = new $commandClass($general, $gameStor->getAll(true), $commandLast, $commandArg);
|
||||
$commandObj = buildNationCommandClass($commandClassName, $general, $gameStor->getAll(true), $commandLast, $commandArg);
|
||||
|
||||
$failReason = $commandObj->testReservable();
|
||||
if($failReason){
|
||||
|
||||
Reference in new issue
Block a user