예제 #1
0
 public function watchObject(Neuron_GameServer_Map_MapObject $object)
 {
     $dom = $this->dom;
     $update = $dom->createElement('update');
     $update->setAttribute('action', 'watch');
     $update->setAttribute('object', $object->getUOID());
     $this->updates[] = $update;
 }
예제 #2
0
 public function addObjectRemove(Neuron_GameServer_Map_MapObject $object)
 {
     $db = Neuron_DB_Database::getInstance();
     $db->query("\n\t\t\tINSERT INTO\n\t\t\t\tn_map_object_updates\n\t\t\tSET\n\t\t\t\tmu_uoid = '{$db->escape($object->getUOID())}',\n\t\t\t\tmu_date = NOW(),\n\t\t\t\tmu_action = 'REMOVE'\n\t\t");
 }