iterate() as $__) { $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 getJSGlobals(int $addMask = 0) : array { $data = []; foreach ($this->iterate() as $__) $data[Type::CHR_RACE][$this->id] = ['name' => $this->getField('name', true)]; return $data; } public function renderTooltip() : ?string { return null; } } ?>