iterate()) { $data[$this->id] = array( 'id' => $this->id, 'name' => $this->names[$this->id], '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(&$refs) { if (!isset($refs['gRaces'])) $refs['gRaces'] = []; $refs['gRaces'][$this->id] = Util::jsEscape($this->names[$this->id]); } public function addRewardsToJScript(&$ref) { } public function renderTooltip() { } } ?>