";
}
function CoreTurnTable() {
return "
";
}
function allButton() {
global $_basecolor2;
$npcmode = DB::db()->queryFirstField("select npcmode from game limit 1");
if($npcmode == 1) {
$site = "a_npcList.php";
$call = "빙의일람";
} else {
$site = "a_vote.php";
$call = "설문조사";
}
$templates = new \League\Plates\Engine('templates');
return $templates->render('allButton', [
'call' => $call,
'site' => $site
]);
}
function commandButton() {
global $_basecolor, $_basecolor2;
$generalID = Session::Instance()->generalID;
if($generalID === null){
return '';
}
$db = DB::db();
$me = $db->queryFirstRow("select no,nation,level,belong from general where no=%i", $generalID);
$nation = $db->queryFirstRow("select nation,color,secretlimit from nation where nation=%i",$me['nation']);
if($nation['color'] == "") { $nation['color'] = "000000"; }
$result = '';
$result .= "
";
$result .= "
";
return $result;
}
function getMapHtml(){
//NOTE: 필요한가?
$templates = new \League\Plates\Engine('templates');
return $templates->render('map');
}