game2006api/webapp/mt/BattlePotion.php
hujiabin fcdd2cf2d3 1
2024-10-15 14:34:36 +08:00

30 lines
503 B
PHP

<?php
namespace mt;
class BattlePotion
{
public static function find($id){
foreach (self::getMetaList() as $meta){
if ($meta['potionId'] == $id){
return $meta;
}
}
return array();
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('battlePotion@battlePotion.php');
}
return self::$metaList;
}
protected static $metaList;
}