/** * Get the mods settings. * @param bool $multicall * @return array {bool Override, Structures\Mod[] Mods} */ function getForcedMods($multicall = false) { if ($multicall) { return $this->execute(ucfirst(__FUNCTION__), array(), function ($v) { $v['Mods'] = Structures\Mod::fromArrayOfArray($v['Mods']); return $v; }); } $result = $this->execute(ucfirst(__FUNCTION__)); $result['Mods'] = Structures\Mod::fromArrayOfArray($result['Mods']); return $result; }
/** * Get the mods settings. * @return array the first value is a boolean which indicate if the mods override existing mods, the second is an array of objet of Structures\Mod type */ function getForcedMods() { $result = $this->execute(ucfirst(__FUNCTION__)); $result['Mods'] = Structures\Mod::fromArrayOfArray($result['Mods']); return $result; }