1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099 |
- <?php
- ////////////////////
- // 由CodeGenerator创建。
- // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
- // author: gwang
- // 日期: 2025-01-15 18:41:47
- ////////////////////
- /**
- * 常量配置数据
- */
- class GameConfig {
- // <editor-fold defaultstate="collapsed" desc=" 基础代码 ">
- /**
- * 是否启用codegen
- */
- private static function isCG() {
- return defined('CodeGen_Enabled') && CodeGen_Enabled;
- }
- /**
- * @var bool 分区是否使用独立的常量配置数据
- */
- private static $useZoneId = false;
- /**
- * 追加分区列表字符串
- * @return string
- */
- private static function zoneid()
- {
- global $zoneid;
- return self::$useZoneId ? "-zone$zoneid" : "";
- }
-
- /**
- * @return ClientVersion
- */
- private static function CV() {
- return req() ? req()->CV . '-' : "";
- }
- /**
- * 初始化指定变量, 非null的情况下直接跳出
- * 可能从文件中或者redis中获取原始数据对变量进行初始化
- * @param mixed $a 变量
- * @param string $modelName 用来初始化变量的资源名称
- * @param bool $isHash 数据是否采用hash结构(否:普通字符串)
- */
- static private function initValue(&$a, $modelName, $isHash = true) {
- $key = 'gamecfg-' . self::CV() . $modelName . self::zoneid();
- if (is_null($a)) {
- if (self::isCG()) {
- $a = include $key . '.php';
- if ($isHash) {
- $para = is_array($a) ? $a : (array) $a; # 转关联数组
- foreach ($para as $name => &$value) {
- $value = JsonUtil::decode($value); # 取参数中的或者默认值
- }
- $a = arr2obj($para);
- }
- } else {
- $a = $isHash ? gMem()->hgetall($key) : gMem()->get($key);
- }
- }
- return $a;
- }
- /**
- * 获取hash结构的一个item
- * @param string $modelName 模块名称
- * @param mixed/string/int $itemId 索引
- * @return mixed
- */
- private static function get_hash_item($modelName, $itemId) {
- if (self::isCG()) {
- $data = self::$modelName();
- if (property_exists($data, $itemId)) {
- return $data->$itemId;
- }
- } else {
- $key = 'gamecfg-' . self::CV() . $modelName . self::zoneid();
- return gMem()->hget($key, $itemId);
- }
- return null;
- }
- // </editor-fold>
- /**
- * 全局参数
- * @return \globalsettings
- */
- public static function globalsettings()
- {
- static $a = null;
- return self::initValue($a, 'globalsettings');
- }
- /**
- * 停服计划
- * @return \service_schedule
- */
- public static function service_schedule()
- {
- static $a = null;
- return self::initValue($a, 'service_schedule');
- }
- /**
- * @return \sm_service_schedule service_schedule item数据
- */
- public static function service_schedule_getItem($itemid)
- {
- return self::get_hash_item('service_schedule', $itemid);
- }
- /**
- * 道具表
- * @return \item
- */
- public static function item()
- {
- static $a = null;
- return self::initValue($a, 'item');
- }
- /**
- * @return \sm_item item item数据
- */
- public static function item_getItem($itemid)
- {
- return self::get_hash_item('item', $itemid);
- }
- /**
- * 系统邮件
- * @return \sysmail
- */
- public static function sysmail()
- {
- static $a = null;
- return self::initValue($a, 'sysmail');
- }
- /**
- * @return \sm_sysmail sysmail item数据
- */
- public static function sysmail_getItem($itemid)
- {
- return self::get_hash_item('sysmail', $itemid);
- }
- /**
- * 客户端版本信息
- * @return \clientVersionHistory
- */
- public static function clientVersionHistory()
- {
- static $a = null;
- return self::initValue($a, 'clientVersionHistory');
- }
- /**
- * @return \sm_clientVersionHistory clientVersionHistory item数据
- */
- public static function clientVersionHistory_getItem($itemid)
- {
- return self::get_hash_item('clientVersionHistory', $itemid);
- }
- /**
- * 错误信息表
- * @return \errmsg
- */
- public static function errmsg()
- {
- static $a = null;
- return self::initValue($a, 'errmsg');
- }
- /**
- * @return \sm_errmsg errmsg item数据
- */
- public static function errmsg_getItem($itemid)
- {
- return self::get_hash_item('errmsg', $itemid);
- }
- /**
- * 技能表
- * @return \skills
- */
- public static function skills()
- {
- static $a = null;
- return self::initValue($a, 'skills');
- }
- /**
- * @return \sm_skills skills item数据
- */
- public static function skills_getItem($itemid)
- {
- return self::get_hash_item('skills', $itemid);
- }
- /**
- * 战斗: 波次表
- * @return \waves
- */
- public static function waves()
- {
- static $a = null;
- return self::initValue($a, 'waves');
- }
- /**
- * @return \sm_waves waves itemArray
- */
- public static function waves_getItemArray($key)
- {
- return self::get_hash_item('waves', $key);
- }
- /**
- * 活动: 七日签到
- * @return \activity_day7
- */
- public static function activity_day7()
- {
- static $a = null;
- return self::initValue($a, 'activity_day7');
- }
- /**
- * @return \sm_activity_day7 activity_day7 item数据
- */
- public static function activity_day7_getItem($itemid)
- {
- return self::get_hash_item('activity_day7', $itemid);
- }
- /**
- * 章节表
- * @return \gate
- */
- public static function gate()
- {
- static $a = null;
- return self::initValue($a, 'gate');
- }
- /**
- * @return \sm_gate gate item数据
- */
- public static function gate_getItem($itemid)
- {
- return self::get_hash_item('gate', $itemid);
- }
- /**
- * 角色
- * @return \hero
- */
- public static function hero()
- {
- static $a = null;
- return self::initValue($a, 'hero');
- }
- /**
- * @return \sm_hero hero item数据
- */
- public static function hero_getItem($itemid)
- {
- return self::get_hash_item('hero', $itemid);
- }
- /**
- * 装备部位表
- * @return \equip_position
- */
- public static function equip_position()
- {
- static $a = null;
- return self::initValue($a, 'equip_position');
- }
- /**
- * @return \sm_equip_position equip_position item数据
- */
- public static function equip_position_getItem($itemid)
- {
- return self::get_hash_item('equip_position', $itemid);
- }
- /**
- * 装备升级表
- * @return \equip_levelupgrade
- */
- public static function equip_levelupgrade()
- {
- static $a = null;
- return self::initValue($a, 'equip_levelupgrade');
- }
- /**
- * @return \sm_equip_levelupgrade equip_levelupgrade item数据
- */
- public static function equip_levelupgrade_getItem($rarity, $qual, $posId, $level)
- {
- return self::get_hash_item('equip_levelupgrade', "$rarity-$qual-$posId-$level");
- }
- /**
- * 章节礼包表
- * @return \shop_gategift
- */
- public static function shop_gategift()
- {
- static $a = null;
- return self::initValue($a, 'shop_gategift');
- }
- /**
- * @return \sm_shop_gategift shop_gategift item数据
- */
- public static function shop_gategift_getItem($itemid)
- {
- return self::get_hash_item('shop_gategift', $itemid);
- }
- /**
- * 每日商店
- * @return \shop_daily
- */
- public static function shop_daily()
- {
- static $a = null;
- return self::initValue($a, 'shop_daily');
- }
- /**
- * @return \sm_shop_daily shop_daily item数据
- */
- public static function shop_daily_getItem($itemid)
- {
- return self::get_hash_item('shop_daily', $itemid);
- }
- /**
- * 钻石商店
- * @return \shop_cash
- */
- public static function shop_cash()
- {
- static $a = null;
- return self::initValue($a, 'shop_cash');
- }
- /**
- * @return \sm_shop_cash shop_cash item数据
- */
- public static function shop_cash_getItem($itemid)
- {
- return self::get_hash_item('shop_cash', $itemid);
- }
- /**
- * 金币商店
- * @return \shop_gold
- */
- public static function shop_gold()
- {
- static $a = null;
- return self::initValue($a, 'shop_gold');
- }
- /**
- * @return \sm_shop_gold shop_gold item数据
- */
- public static function shop_gold_getItem($itemid)
- {
- return self::get_hash_item('shop_gold', $itemid);
- }
- /**
- * 商城供给表-应该是废弃了
- * @return \shop_supply
- */
- public static function shop_supply()
- {
- static $a = null;
- return self::initValue($a, 'shop_supply');
- }
- /**
- * @return \sm_shop_supply shop_supply item数据
- */
- public static function shop_supply_getItem($itemid)
- {
- return self::get_hash_item('shop_supply', $itemid);
- }
- /**
- * 词条配置表
- * @return \predicate
- */
- public static function predicate()
- {
- static $a = null;
- return self::initValue($a, 'predicate');
- }
- /**
- * @return \sm_predicate predicate item数据
- */
- public static function predicate_getItem($itemid)
- {
- return self::get_hash_item('predicate', $itemid);
- }
- /**
- * 商城军备
- * @return \shop_junbei
- */
- public static function shop_junbei()
- {
- static $a = null;
- return self::initValue($a, 'shop_junbei');
- }
- /**
- * @return \sm_shop_junbei shop_junbei item数据
- */
- public static function shop_junbei_getItem($itemid)
- {
- return self::get_hash_item('shop_junbei', $itemid);
- }
- /**
- * 进化表
- * @return \evolve
- */
- public static function evolve()
- {
- static $a = null;
- return self::initValue($a, 'evolve');
- }
- /**
- * @return \sm_evolve evolve item数据
- */
- public static function evolve_getItem($itemid)
- {
- return self::get_hash_item('evolve', $itemid);
- }
- /**
- * 7日签到累计
- * @return \active_day7_accumulate
- */
- public static function active_day7_accumulate()
- {
- static $a = null;
- return self::initValue($a, 'active_day7_accumulate');
- }
- /**
- * @return \sm_active_day7_accumulate active_day7_accumulate item数据
- */
- public static function active_day7_accumulate_getItem($itemid)
- {
- return self::get_hash_item('active_day7_accumulate', $itemid);
- }
- /**
- * 宝石表
- * @return \gem
- */
- public static function gem()
- {
- static $a = null;
- return self::initValue($a, 'gem');
- }
- /**
- * @return \sm_gem gem item数据
- */
- public static function gem_getItem($itemid)
- {
- return self::get_hash_item('gem', $itemid);
- }
- /**
- * 秘宝表
- * @return \gate_sbox
- */
- public static function gate_sbox()
- {
- static $a = null;
- return self::initValue($a, 'gate_sbox');
- }
- /**
- * @return \sm_gate_sbox gate_sbox itemArray
- */
- public static function gate_sbox_getItemArray($key)
- {
- return self::get_hash_item('gate_sbox', $key);
- }
- /**
- * 最新的成就
- * @return \achieve_new
- */
- public static function achieve_new()
- {
- static $a = null;
- return self::initValue($a, 'achieve_new');
- }
- /**
- * @return \sm_achieve_new achieve_new item数据
- */
- public static function achieve_new_getItem($itemid)
- {
- return self::get_hash_item('achieve_new', $itemid);
- }
- /**
- * 人物属性
- * @return \heroattr
- */
- public static function heroattr()
- {
- static $a = null;
- return self::initValue($a, 'heroattr');
- }
- /**
- * @return \sm_heroattr heroattr item数据
- */
- public static function heroattr_getItem($itemid)
- {
- return self::get_hash_item('heroattr', $itemid);
- }
- /**
- * 剧情对话
- * @return \plots
- */
- public static function plots()
- {
- static $a = null;
- return self::initValue($a, 'plots');
- }
- /**
- * @return \sm_plots plots item数据
- */
- public static function plots_getItem($itemid)
- {
- return self::get_hash_item('plots', $itemid);
- }
- /**
- * 商城宝箱表
- * @return \shop_box
- */
- public static function shop_box()
- {
- static $a = null;
- return self::initValue($a, 'shop_box');
- }
- /**
- * @return \sm_shop_box shop_box item数据
- */
- public static function shop_box_getItem($itemid)
- {
- return self::get_hash_item('shop_box', $itemid);
- }
- /**
- * 商城月卡
- * @return \shop_monthcard
- */
- public static function shop_monthcard()
- {
- static $a = null;
- return self::initValue($a, 'shop_monthcard');
- }
- /**
- * @return \sm_shop_monthcard shop_monthcard item数据
- */
- public static function shop_monthcard_getItem($itemid)
- {
- return self::get_hash_item('shop_monthcard', $itemid);
- }
- /**
- * 7日狂欢活跃点奖励
- * @return \activepointreward
- */
- public static function activepointreward()
- {
- static $a = null;
- return self::initValue($a, 'activepointreward');
- }
- /**
- * @return \sm_activepointreward activepointreward item数据
- */
- public static function activepointreward_getItem($type, $pointId)
- {
- return self::get_hash_item('activepointreward', "$type-$pointId");
- }
- /**
- * 活动任务
- * @return \activeTask
- */
- public static function activeTask()
- {
- static $a = null;
- return self::initValue($a, 'activeTask');
- }
- /**
- * @return \sm_activeTask activeTask item数据
- */
- public static function activeTask_getItem($itemid)
- {
- return self::get_hash_item('activeTask', $itemid);
- }
- /**
- * 活动任务根据类型的不同分开
- * @return \activeTask_type
- */
- public static function activeTask_type()
- {
- static $a = null;
- return self::initValue($a, 'activeTask_type');
- }
- /**
- * @return \sm_activeTask_type activeTask_type itemArray
- */
- public static function activeTask_type_getItemArray($key)
- {
- return self::get_hash_item('activeTask_type', $key);
- }
- /**
- * 活动
- * @return \activity
- */
- public static function activity()
- {
- static $a = null;
- return self::initValue($a, 'activity');
- }
- /**
- * @return \sm_activity activity item数据
- */
- public static function activity_getItem($itemid)
- {
- return self::get_hash_item('activity', $itemid);
- }
- /**
- * 公告
- * @return \announcement
- */
- public static function announcement()
- {
- static $a = null;
- return self::initValue($a, 'announcement');
- }
- /**
- * @return \sm_announcement announcement item数据
- */
- public static function announcement_getItem($itemid)
- {
- return self::get_hash_item('announcement', $itemid);
- }
- /**
- * 战力荣誉榜信息
- * @return \rank_fightpowerreward
- */
- public static function rank_fightpowerreward()
- {
- static $a = null;
- return self::initValue($a, 'rank_fightpowerreward');
- }
- /**
- * @return \sm_rank_fightpowerreward rank_fightpowerreward item数据
- */
- public static function rank_fightpowerreward_getItem($itemid)
- {
- return self::get_hash_item('rank_fightpowerreward', $itemid);
- }
- /**
- * 主线荣誉榜信息
- * @return \rank_passgatereward
- */
- public static function rank_passgatereward()
- {
- static $a = null;
- return self::initValue($a, 'rank_passgatereward');
- }
- /**
- * @return \sm_rank_passgatereward rank_passgatereward item数据
- */
- public static function rank_passgatereward_getItem($itemid)
- {
- return self::get_hash_item('rank_passgatereward', $itemid);
- }
- /**
- * 玩家等级表
- * @return \player_level
- */
- public static function player_level()
- {
- static $a = null;
- return self::initValue($a, 'player_level');
- }
- /**
- * @return \sm_player_level player_level item数据
- */
- public static function player_level_getItem($itemid)
- {
- return self::get_hash_item('player_level', $itemid);
- }
- /**
- * 辅助:主线剧情解锁
- * @return \gate_unlock
- */
- public static function gate_unlock()
- {
- static $a = null;
- return self::initValue($a, 'gate_unlock');
- }
- /**
- * @return \sm_gate_unlock gate_unlock itemArray
- */
- public static function gate_unlock_getItemArray($key)
- {
- return self::get_hash_item('gate_unlock', $key);
- }
- /**
- * 辅助: 波次直查
- * @return \waveItem
- */
- public static function waveItem()
- {
- static $a = null;
- return self::initValue($a, 'waveItem');
- }
- /**
- * @return \sm_waveItem waveItem item数据
- */
- public static function waveItem_getItem($gateId, $waveId)
- {
- return self::get_hash_item('waveItem', "$gateId-$waveId");
- }
- /**
- * 道具宝箱表
- * @return \item_2023_box
- */
- public static function item_2023_box()
- {
- static $a = null;
- return self::initValue($a, 'item_2023_box');
- }
- /**
- * @return \sm_item_2023_box item_2023_box item数据
- */
- public static function item_2023_box_getItem($itemid)
- {
- return self::get_hash_item('item_2023_box', $itemid);
- }
- /**
- * 人物分类
- * @return \heroType_typeId
- */
- public static function heroType_typeId()
- {
- static $a = null;
- return self::initValue($a, 'heroType_typeId');
- }
- /**
- * @return \sm_heroType_typeId heroType_typeId itemArray
- */
- public static function heroType_typeId_getItemArray($key)
- {
- return self::get_hash_item('heroType_typeId', $key);
- }
- /**
- * 激活码表
- * @return \token_gift
- */
- public static function token_gift()
- {
- static $a = null;
- return self::initValue($a, 'token_gift');
- }
- /**
- * @return \sm_token_gift token_gift item数据
- */
- public static function token_gift_getItem($itemid)
- {
- return self::get_hash_item('token_gift', $itemid);
- }
- /**
- * 公共兑换码
- * @return \token_publicgift
- */
- public static function token_publicgift()
- {
- static $a = null;
- return self::initValue($a, 'token_publicgift');
- }
- /**
- * @return \sm_token_publicgift token_publicgift item数据
- */
- public static function token_publicgift_getItem($itemid)
- {
- return self::get_hash_item('token_publicgift', $itemid);
- }
- /**
- * 游戏功能解锁信息
- * @return \fun_unlock
- */
- public static function fun_unlock()
- {
- static $a = null;
- return self::initValue($a, 'fun_unlock');
- }
- /**
- * @return \sm_fun_unlock fun_unlock item数据
- */
- public static function fun_unlock_getItem($itemid)
- {
- return self::get_hash_item('fun_unlock', $itemid);
- }
- /**
- * 首充表
- * @return \firstrecharge_reward
- */
- public static function firstrecharge_reward()
- {
- static $a = null;
- return self::initValue($a, 'firstrecharge_reward');
- }
- /**
- * @return \sm_firstrecharge_reward firstrecharge_reward item数据
- */
- public static function firstrecharge_reward_getItem($itemid)
- {
- return self::get_hash_item('firstrecharge_reward', $itemid);
- }
- /**
- * 累计充值
- * @return \accumulaterecharge
- */
- public static function accumulaterecharge()
- {
- static $a = null;
- return self::initValue($a, 'accumulaterecharge');
- }
- /**
- * @return \sm_accumulaterecharge accumulaterecharge item数据
- */
- public static function accumulaterecharge_getItem($itemid)
- {
- return self::get_hash_item('accumulaterecharge', $itemid);
- }
- /**
- * 次级功能开启表
- * @return \subfun_unlock
- */
- public static function subfun_unlock()
- {
- static $a = null;
- return self::initValue($a, 'subfun_unlock');
- }
- /**
- * @return \sm_subfun_unlock subfun_unlock item数据
- */
- public static function subfun_unlock_getItem($itemid)
- {
- return self::get_hash_item('subfun_unlock', $itemid);
- }
- /**
- * 商城总表
- * @return \shop
- */
- public static function shop()
- {
- static $a = null;
- return self::initValue($a, 'shop');
- }
- /**
- * @return \sm_shop shop item数据
- */
- public static function shop_getItem($itemid)
- {
- return self::get_hash_item('shop', $itemid);
- }
- /**
- * 转盘抽奖
- * @return \activity_lottery_tree
- */
- public static function activity_lottery_tree()
- {
- static $a = null;
- return self::initValue($a, 'activity_lottery_tree');
- }
- /**
- * @return \sm_activity_lottery_tree activity_lottery_tree item数据
- */
- public static function activity_lottery_tree_getItem($itemid)
- {
- return self::get_hash_item('activity_lottery_tree', $itemid);
- }
- /**
- * 转盘抽奖累计次数奖励
- * @return \activity_lotterynum_accumulate
- */
- public static function activity_lotterynum_accumulate()
- {
- static $a = null;
- return self::initValue($a, 'activity_lotterynum_accumulate');
- }
- /**
- * @return \sm_activity_lotterynum_accumulate activity_lotterynum_accumulate item数据
- */
- public static function activity_lotterynum_accumulate_getItem($itemid)
- {
- return self::get_hash_item('activity_lotterynum_accumulate', $itemid);
- }
- /**
- * 人参果兑换稀有物资表
- * @return \activity_lotteryitem_exchange
- */
- public static function activity_lotteryitem_exchange()
- {
- static $a = null;
- return self::initValue($a, 'activity_lotteryitem_exchange');
- }
- /**
- * @return \sm_activity_lotteryitem_exchange activity_lotteryitem_exchange item数据
- */
- public static function activity_lotteryitem_exchange_getItem($itemid)
- {
- return self::get_hash_item('activity_lotteryitem_exchange', $itemid);
- }
- /**
- * 限时贩售
- * @return \activity_promopackinfo
- */
- public static function activity_promopackinfo()
- {
- static $a = null;
- return self::initValue($a, 'activity_promopackinfo');
- }
- /**
- * @return \sm_activity_promopackinfo activity_promopackinfo item数据
- */
- public static function activity_promopackinfo_getItem($itemid)
- {
- return self::get_hash_item('activity_promopackinfo', $itemid);
- }
- /**
- * 限时贩售不同礼包分类
- * @return \activity_promopackinfo_type
- */
- public static function activity_promopackinfo_type()
- {
- static $a = null;
- return self::initValue($a, 'activity_promopackinfo_type');
- }
- /**
- * @return \sm_activity_promopackinfo_type activity_promopackinfo_type itemArray
- */
- public static function activity_promopackinfo_type_getItemArray($key)
- {
- return self::get_hash_item('activity_promopackinfo_type', $key);
- }
- /**
- * 战令表
- * @return \activity_battlepass
- */
- public static function activity_battlepass()
- {
- static $a = null;
- return self::initValue($a, 'activity_battlepass');
- }
- /**
- * @return \sm_activity_battlepass activity_battlepass item数据
- */
- public static function activity_battlepass_getItem($itemid)
- {
- return self::get_hash_item('activity_battlepass', $itemid);
- }
- /**
- * 战令类型区别
- * @return \activity_battlepass_type
- */
- public static function activity_battlepass_type()
- {
- static $a = null;
- return self::initValue($a, 'activity_battlepass_type');
- }
- /**
- * @return \sm_activity_battlepass_type activity_battlepass_type itemArray
- */
- public static function activity_battlepass_type_getItemArray($key)
- {
- return self::get_hash_item('activity_battlepass_type', $key);
- }
- /**
- * 装备道具表
- * @return \equip
- */
- public static function equip()
- {
- static $a = null;
- return self::initValue($a, 'equip');
- }
- /**
- * @return \sm_equip equip item数据
- */
- public static function equip_getItem($itemid)
- {
- return self::get_hash_item('equip', $itemid);
- }
- /**
- * 宝石槽位表
- * @return \gem_slotposition
- */
- public static function gem_slotposition()
- {
- static $a = null;
- return self::initValue($a, 'gem_slotposition');
- }
- /**
- * @return \sm_gem_slotposition gem_slotposition item数据
- */
- public static function gem_slotposition_getItem($itemid)
- {
- return self::get_hash_item('gem_slotposition', $itemid);
- }
- /**
- * 装备合成表
- * @return \equip_compose
- */
- public static function equip_compose()
- {
- static $a = null;
- return self::initValue($a, 'equip_compose');
- }
- /**
- * @return \sm_equip_compose equip_compose item数据
- */
- public static function equip_compose_getItem($itemid)
- {
- return self::get_hash_item('equip_compose', $itemid);
- }
- /**
- * 装备套装
- * @return \equip_suit
- */
- public static function equip_suit()
- {
- static $a = null;
- return self::initValue($a, 'equip_suit');
- }
- /**
- * @return \sm_equip_suit equip_suit item数据
- */
- public static function equip_suit_getItem($itemid)
- {
- return self::get_hash_item('equip_suit', $itemid);
- }
- /**
- * 新手7日签到
- * @return \activity_day7sign_newplayer
- */
- public static function activity_day7sign_newplayer()
- {
- static $a = null;
- return self::initValue($a, 'activity_day7sign_newplayer');
- }
- /**
- * @return \sm_activity_day7sign_newplayer activity_day7sign_newplayer item数据
- */
- public static function activity_day7sign_newplayer_getItem($itemid)
- {
- return self::get_hash_item('activity_day7sign_newplayer', $itemid);
- }
- /**
- * 全局参数2
- * @return \glc2
- */
- public static function glc2()
- {
- static $a = null;
- return self::initValue($a, 'glc2');
- }
- /**
- * 战力公式: 装备系数表
- * @return \equip_power
- */
- public static function equip_power()
- {
- static $a = null;
- return self::initValue($a, 'equip_power');
- }
- /**
- * @return \sm_equip_power equip_power item数据
- */
- public static function equip_power_getItem($rarity, $qual, $position)
- {
- return self::get_hash_item('equip_power', "$rarity-$qual-$position");
- }
- /**
- * 新手引导表
- * @return \guide
- */
- public static function guide()
- {
- static $a = null;
- return self::initValue($a, 'guide');
- }
- /**
- * @return \sm_guide guide item数据
- */
- public static function guide_getItem($id, $stepId)
- {
- return self::get_hash_item('guide', "$id-$stepId");
- }
- /**
- * 当前版本(时间戳)
- * @return \ver
- */
- public static function ver()
- {
- static $a = null;
- return self::initValue($a, 'ver', false);
- }
- /**
- * 客户端配置数据
- * @return \client
- */
- public static function client()
- {
- static $a = null;
- return self::initValue($a, 'client', false);
- }
- }
|