iterate()) { $data[$this->id] = array( 'id' => $this->id, 'name' => $this->getField('name', true), 'classes' => $this->curTpl['classMask'], 'faction' => $this->curTpl['factionId'], 'leader' => $this->curTpl['leader'], 'zone' => $this->curTpl['startAreaId'], 'side' => $this->curTpl['side'] ); if ($this->curTpl['expansion']) $data[$this->id]['expansion'] = $this->curTpl['expansion']; } return $data; } public function addGlobalsToJscript(&$template, $addMask = 0) { while ($this->iterate()) $template->extendGlobalData(self::$type, [$this->id => ['name' => $this->getField('name', true)]]); } public function addRewardsToJScript(&$ref) { } public function renderTooltip() { } } ?>