game2006api/webapp/mt/MapMode.php
hujiabin 8b57cece68 1
2024-03-20 15:27:38 +08:00

34 lines
615 B
PHP

<?php
namespace mt;
class BattleReward
{
public static function find($id){
return getXVal(self::getMetaList(), $id);
}
public static function findByMapMode($modeId){
foreach (self::getMetaList() as $meta){
if ($meta['mapMode'] == $modeId){
return $meta;
}
}
return array();
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('battleReward@battleReward.php');
}
return self::$metaList;
}
protected static $metaList;
}