diff --git a/hwe/func.php b/hwe/func.php index e1ab09ce..d60d2654 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -461,6 +461,36 @@ function commandGroup($typename, $type = 0) } } +function getCommandTable(General $general){ + $db = DB::db(); + $gameStor = KVStorage::getStorage($db, 'game_env'); + $gameStor->turnOnCache(); + $env = $gameStor->getAll(); + + $result = []; + foreach (GameConst::$availableGeneralCommand as $commandCategory => $commandList) { + $subList = []; + foreach ($commandList as $commandClassName) { + $commandObj = buildGeneralCommandClass($commandClassName, $general, $env); + if (!$commandObj->canDisplay()) { + continue; + } + $subList[Util::getClassNameFromObj($commandObj)] = [ + 'compansation'=>$commandObj->getCompensationStyle(), + 'possible'=>$commandObj->hasMinConditionMet(), + 'title'=>$commandObj->getCommandDetailTitle(), + ]; + } + + $result[] = [ + 'category'=>$commandCategory, + 'values'=>$subList + ]; + } + + return $result; +} + function printCommandTable(General $generalObj) { $db = DB::db(); diff --git a/hwe/index.php b/hwe/index.php index fde1622b..938606dc 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -104,6 +104,8 @@ $auctionCount = $db->queryFirstField('SELECT count(`no`) FROM auction'); = WebUtil::printJS('../d_shared/common_path.js') ?> = WebUtil::printJS('dist_js/vendors.js') ?> = WebUtil::printJS('d_shared/base_map.js') ?> + = WebUtil::printJS('dist_js/vendors_vue.js', true) ?> + = WebUtil::printJS('dist_js/v_main.js', true) ?> = WebUtil::printJS('dist_js/main.js') ?> - = WebUtil::printCSS('../e_lib/bootstrap.min.css') ?> = WebUtil::printCSS('../d_shared/common.css') ?> = WebUtil::printCSS('css/common.css') ?> + = WebUtil::printCSS('dist_css/common_vue.css') ?> = WebUtil::printCSS('dist_css/main.css') ?> = WebUtil::printCSS('css/map.css') ?> + = WebUtil::printStaticValues([ + 'maxTurn'=>GameConst::$maxTurn, + 'maxPushTurn'=>12, + 'commandList'=>getCommandTable($generalObj), + 'serverNow'=>TimeUtil::now(false), + 'baseColor2'=>GameConst::$basecolor2, + ])?> @@ -233,49 +242,11 @@ $auctionCount = $db->queryFirstField('SELECT count(`no`) FROM auction'); -
| - 명령 목록 - | -|||
| = $turnIdx + 1 ?> | - - -- | ||
| + - 명령 목록 - + | +|||
|
+
+
+
+
+
+
+ +
+
+ |
+ |||
|
+ |
+
+
+ + + | +||
|
+
+
+
+
+ |
+ |||