42 lines
782 B
PHP
42 lines
782 B
PHP
<?php
|
|
|
|
namespace mt;
|
|
|
|
use phpcommon;
|
|
|
|
class Task {
|
|
|
|
|
|
public static function get($equipId)
|
|
{
|
|
return self::getMeta()[$equipId];
|
|
}
|
|
|
|
protected static function getMeta()
|
|
{
|
|
if (!self::$meta) {
|
|
self::$meta = getMetaTable('newtask@newtask.php');
|
|
}
|
|
return self::$meta;
|
|
}
|
|
|
|
public static function getTaskCfgByID($_itemID)
|
|
{
|
|
$playerSkinCfg = self::getMeta();
|
|
$itemData = null;
|
|
foreach($playerSkinCfg as $item)
|
|
{
|
|
$tmpItemID = $item["id"];
|
|
if($tmpItemID == $_itemID)
|
|
{
|
|
$itemData = $item;
|
|
break;
|
|
}
|
|
}
|
|
return $itemData;
|
|
}
|
|
protected static $itemArr;
|
|
protected static $meta;
|
|
|
|
}
|