game2006api/webapp/mt/Skill.php
2023-02-27 15:08:25 +08:00

36 lines
645 B
PHP

<?php
namespace mt;
use phpcommon;
class Skill {
public static function get($id)
{
return getXVal(self::getMetaList(), $id);
}
public static function getPresetSkill()
{
$list = array();
foreach (self::getMetaList() as $value){
if ($value['skill_id'] < 20000){
array_push($list,$value);
}
}
return $list;
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('skill@skill.php');
}
return self::$metaList;
}
protected static $metaList;
}