예제 #1
0
 public static function getFromId($id)
 {
     $data = Neuron_GameServer_LogSerializer::decode($id);
     $out = new Dolumar_Logable_GeneralContainer();
     foreach ($data as $v) {
         $out->add($v);
     }
     return $out;
 }
예제 #2
0
 private function getMessage($input, $page)
 {
     $player = Neuron_GameServer::getPlayer();
     if (!$input['pg_read']) {
         $db = Neuron_DB_Database::getInstance();
         $db->query("\n\t\t\t\tUPDATE\n\t\t\t\t\tn_players_guide\n\t\t\t\tSET\n\t\t\t\t\tpg_read = '1'\n\t\t\t\tWHERE\n\t\t\t\t\tpg_id = {$input['pg_id']}\n\t\t\t");
     }
     $qdata = Neuron_GameServer_LogSerializer::decode($input['pg_data']);
     $data = array();
     foreach ($qdata as $k => $v) {
         $data[$k] = $v->getName();
     }
     // Add some extra fields
     $data['player'] = $player->getName();
     $text = Neuron_Core_Text::getInstance();
     $txt = $text->getTemplate(self::TEMPLATE_PATH . $input['pg_template'], $data);
     return array('html' => Neuron_Core_Tools::output_text($txt), 'class' => $this->getClassname($input['pg_character'], $input['pg_mood']), 'highlight' => $input['pg_highlight'], 'record' => $input['pg_id']);
 }
예제 #3
0
파일: Logs.php 프로젝트: Toxicat/dolumar
 public static function getObjectsFromLog($sData)
 {
     return Neuron_GameServer_LogSerializer::decode($sData);
 }