game2005api/webapp/mt/GunTalent.php
2021-11-18 19:13:34 +08:00

31 lines
548 B
PHP

<?php
namespace mt;
use phpcommon;
class GunTalent {
public static function get($id)
{
return self::getMetaList()[$id];
}
public static function isValidTalent($meta, $talentId)
{
$strArr = explode("|", $meta["list"]);
return in_array($talentId, $strArr);
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('guntalent@guntalent.php');
}
return self::$metaList;
}
protected static $metaList;
}