GameConfig.php 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105
  1. <?php
  2. ////////////////////
  3. // 由CodeGenerator创建。
  4. // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  5. // author: gwang
  6. // 日期: 2024-12-31 17:04:22
  7. ////////////////////
  8. namespace loyalsoft;
  9. /**
  10. * 常量配置数据
  11. */
  12. class GameConfig {
  13. // <editor-fold defaultstate="collapsed" desc=" 基础代码 ">
  14. /**
  15. * 是否启用codegen
  16. */
  17. private static function isCG() {
  18. return defined('CodeGen_Enabled') && CodeGen_Enabled;
  19. }
  20. /**
  21. * @var bool 分区是否使用独立的常量配置数据
  22. */
  23. private static $useZoneId = false;
  24. /**
  25. * 追加分区列表字符串
  26. * @return string
  27. */
  28. private static function zoneid() {
  29. global $zoneid;
  30. return self::$useZoneId ? "-zone$zoneid" : "";
  31. }
  32. /**
  33. * @return ClientVersion
  34. */
  35. private static function CV() {
  36. return req() ? req()->CV . '-' : "";
  37. }
  38. /**
  39. * 初始化指定变量, 非null的情况下直接跳出
  40. * 可能从文件中或者redis中获取原始数据对变量进行初始化
  41. * @param mixed $a 变量
  42. * @param string $modelName 用来初始化变量的资源名称
  43. * @param bool $isHash 数据是否采用hash结构(否:普通字符串)
  44. */
  45. static private function initValue(&$a, $modelName, $isHash = true) {
  46. $key = 'gamecfg-' . self::CV() . $modelName . self::zoneid();
  47. if (is_null($a)) {
  48. if (self::isCG()) {
  49. $a = include $key . '.php';
  50. if ($isHash) {
  51. $para = is_array($a) ? $a : (array) $a; # 转关联数组
  52. foreach ($para as $name => &$value) {
  53. $value = JsonUtil::decode($value); # 取参数中的或者默认值
  54. }
  55. $a = arr2obj($para);
  56. }
  57. } else {
  58. $a = $isHash ? gMem()->hgetall($key) : gMem()->get($key);
  59. }
  60. }
  61. return $a;
  62. }
  63. /**
  64. * 获取hash结构的一个item
  65. * @param string $modelName 模块名称
  66. * @param mixed/string/int $itemId 索引
  67. * @return mixed
  68. */
  69. private static function get_hash_item($modelName, $itemId) {
  70. if (self::isCG()) {
  71. $data = self::$modelName();
  72. // CLog::err(json_encode($data));
  73. if (property_exists($data, $itemId)) {
  74. return $data->$itemId;
  75. }
  76. } else {
  77. $key = 'gamecfg-' . self::CV() . $modelName . self::zoneid();
  78. return gMem()->hget($key, $itemId);
  79. }
  80. return null;
  81. }
  82. // </editor-fold>
  83. /**
  84. * 全局参数
  85. * @return \globalsettings
  86. */
  87. public static function globalsettings() {
  88. static $a = null;
  89. return self::initValue($a, 'globalsettings');
  90. }
  91. /**
  92. * 停服计划
  93. * @return \service_schedule
  94. */
  95. public static function service_schedule() {
  96. static $a = null;
  97. return self::initValue($a, 'service_schedule');
  98. }
  99. /**
  100. * @return \sm_service_schedule service_schedule item数据
  101. */
  102. public static function service_schedule_getItem($itemid) {
  103. return self::get_hash_item('service_schedule', $itemid);
  104. }
  105. /**
  106. * 道具表
  107. * @return \item
  108. */
  109. public static function item() {
  110. static $a = null;
  111. return self::initValue($a, 'item');
  112. }
  113. /**
  114. * @return \sm_item item item数据
  115. */
  116. public static function item_getItem($itemid) {
  117. return self::get_hash_item('item', $itemid);
  118. }
  119. /**
  120. * 系统邮件
  121. * @return \sysmail
  122. */
  123. public static function sysmail() {
  124. static $a = null;
  125. return self::initValue($a, 'sysmail');
  126. }
  127. /**
  128. * @return \sm_sysmail sysmail item数据
  129. */
  130. public static function sysmail_getItem($itemid) {
  131. return self::get_hash_item('sysmail', $itemid);
  132. }
  133. /**
  134. * 客户端版本信息
  135. * @return \clientVersionHistory
  136. */
  137. public static function clientVersionHistory() {
  138. static $a = null;
  139. return self::initValue($a, 'clientVersionHistory');
  140. }
  141. /**
  142. * @return \sm_clientVersionHistory clientVersionHistory item数据
  143. */
  144. public static function clientVersionHistory_getItem($itemid) {
  145. return self::get_hash_item('clientVersionHistory', $itemid);
  146. }
  147. /**
  148. * 错误信息表
  149. * @return \errmsg
  150. */
  151. public static function errmsg() {
  152. static $a = null;
  153. return self::initValue($a, 'errmsg');
  154. }
  155. /**
  156. * @return \sm_errmsg errmsg item数据
  157. */
  158. public static function errmsg_getItem($itemid) {
  159. return self::get_hash_item('errmsg', $itemid);
  160. }
  161. /**
  162. * 技能表
  163. * @return \skills
  164. */
  165. public static function skills() {
  166. static $a = null;
  167. return self::initValue($a, 'skills');
  168. }
  169. /**
  170. * @return \sm_skills skills item数据
  171. */
  172. public static function skills_getItem($itemid) {
  173. return self::get_hash_item('skills', $itemid);
  174. }
  175. /**
  176. * 战斗: 波次表
  177. * @return \waves
  178. */
  179. public static function waves() {
  180. static $a = null;
  181. return self::initValue($a, 'waves');
  182. }
  183. /**
  184. * @return \sm_waves waves itemArray
  185. */
  186. public static function waves_getItemArray($key) {
  187. return self::get_hash_item('waves', $key);
  188. }
  189. /**
  190. * 活动: 七日签到
  191. * @return \activity_day7
  192. */
  193. public static function activity_day7() {
  194. static $a = null;
  195. return self::initValue($a, 'activity_day7');
  196. }
  197. /**
  198. * @return \sm_activity_day7 activity_day7 item数据
  199. */
  200. public static function activity_day7_getItem($itemid) {
  201. return self::get_hash_item('activity_day7', $itemid);
  202. }
  203. /**
  204. * 章节表
  205. * @return \gate
  206. */
  207. public static function gate() {
  208. static $a = null;
  209. return self::initValue($a, 'gate');
  210. }
  211. /**
  212. * @return \sm_gate gate item数据
  213. */
  214. public static function gate_getItem($itemid) {
  215. return self::get_hash_item('gate', $itemid);
  216. }
  217. /**
  218. * 角色
  219. * @return \hero
  220. */
  221. public static function hero() {
  222. static $a = null;
  223. return self::initValue($a, 'hero');
  224. }
  225. /**
  226. * @return \sm_hero hero item数据
  227. */
  228. public static function hero_getItem($itemid) {
  229. return self::get_hash_item('hero', $itemid);
  230. }
  231. /**
  232. * 装备部位表
  233. * @return \equip_position
  234. */
  235. public static function equip_position() {
  236. static $a = null;
  237. return self::initValue($a, 'equip_position');
  238. }
  239. /**
  240. * @return \sm_equip_position equip_position item数据
  241. */
  242. public static function equip_position_getItem($itemid) {
  243. return self::get_hash_item('equip_position', $itemid);
  244. }
  245. /**
  246. * 装备升级表
  247. * @return \equip_levelupgrade
  248. */
  249. public static function equip_levelupgrade() {
  250. static $a = null;
  251. return self::initValue($a, 'equip_levelupgrade');
  252. }
  253. /**
  254. * @return \sm_equip_levelupgrade equip_levelupgrade item数据
  255. */
  256. public static function equip_levelupgrade_getItem($rarity, $qual, $posId, $level) {
  257. return self::get_hash_item('equip_levelupgrade', "$rarity-$qual-$posId-$level");
  258. }
  259. /**
  260. * 章节礼包表
  261. * @return \shop_gategift
  262. */
  263. public static function shop_gategift() {
  264. static $a = null;
  265. return self::initValue($a, 'shop_gategift');
  266. }
  267. /**
  268. * @return \sm_shop_gategift shop_gategift item数据
  269. */
  270. public static function shop_gategift_getItem($itemid) {
  271. return self::get_hash_item('shop_gategift', $itemid);
  272. }
  273. /**
  274. * 每日商店
  275. * @return \shop_daily
  276. */
  277. public static function shop_daily() {
  278. static $a = null;
  279. return self::initValue($a, 'shop_daily');
  280. }
  281. /**
  282. * @return \sm_shop_daily shop_daily item数据
  283. */
  284. public static function shop_daily_getItem($itemid) {
  285. return self::get_hash_item('shop_daily', $itemid);
  286. }
  287. /**
  288. * 钻石商店
  289. * @return \shop_cash
  290. */
  291. public static function shop_cash() {
  292. static $a = null;
  293. return self::initValue($a, 'shop_cash');
  294. }
  295. /**
  296. * @return \sm_shop_cash shop_cash item数据
  297. */
  298. public static function shop_cash_getItem($itemid) {
  299. return self::get_hash_item('shop_cash', $itemid);
  300. }
  301. /**
  302. * 金币商店
  303. * @return \shop_gold
  304. */
  305. public static function shop_gold() {
  306. static $a = null;
  307. return self::initValue($a, 'shop_gold');
  308. }
  309. /**
  310. * @return \sm_shop_gold shop_gold item数据
  311. */
  312. public static function shop_gold_getItem($itemid) {
  313. return self::get_hash_item('shop_gold', $itemid);
  314. }
  315. /**
  316. * 商城供给表-应该是废弃了
  317. * @return \shop_supply
  318. */
  319. public static function shop_supply() {
  320. static $a = null;
  321. return self::initValue($a, 'shop_supply');
  322. }
  323. /**
  324. * @return \sm_shop_supply shop_supply item数据
  325. */
  326. public static function shop_supply_getItem($itemid) {
  327. return self::get_hash_item('shop_supply', $itemid);
  328. }
  329. /**
  330. * 词条配置表
  331. * @return \predicate
  332. */
  333. public static function predicate() {
  334. static $a = null;
  335. return self::initValue($a, 'predicate');
  336. }
  337. /**
  338. * @return \sm_predicate predicate item数据
  339. */
  340. public static function predicate_getItem($itemid) {
  341. return self::get_hash_item('predicate', $itemid);
  342. }
  343. /**
  344. * 商城军备
  345. * @return \shop_junbei
  346. */
  347. public static function shop_junbei() {
  348. static $a = null;
  349. return self::initValue($a, 'shop_junbei');
  350. }
  351. /**
  352. * @return \sm_shop_junbei shop_junbei item数据
  353. */
  354. public static function shop_junbei_getItem($itemid) {
  355. return self::get_hash_item('shop_junbei', $itemid);
  356. }
  357. /**
  358. * 进化表
  359. * @return \evolve
  360. */
  361. public static function evolve() {
  362. static $a = null;
  363. return self::initValue($a, 'evolve');
  364. }
  365. /**
  366. * @return \sm_evolve evolve item数据
  367. */
  368. public static function evolve_getItem($itemid) {
  369. return self::get_hash_item('evolve', $itemid);
  370. }
  371. /**
  372. * 7日签到累计
  373. * @return \active_day7_accumulate
  374. */
  375. public static function active_day7_accumulate() {
  376. static $a = null;
  377. return self::initValue($a, 'active_day7_accumulate');
  378. }
  379. /**
  380. * @return \sm_active_day7_accumulate active_day7_accumulate item数据
  381. */
  382. public static function active_day7_accumulate_getItem($itemid) {
  383. return self::get_hash_item('active_day7_accumulate', $itemid);
  384. }
  385. /**
  386. * 宝石表
  387. * @return \gem
  388. */
  389. public static function gem() {
  390. static $a = null;
  391. return self::initValue($a, 'gem');
  392. }
  393. /**
  394. * @return \sm_gem gem item数据
  395. */
  396. public static function gem_getItem($itemid) {
  397. return self::get_hash_item('gem', $itemid);
  398. }
  399. /**
  400. * 秘宝表
  401. * @return \gate_sbox
  402. */
  403. public static function gate_sbox() {
  404. static $a = null;
  405. return self::initValue($a, 'gate_sbox');
  406. }
  407. /**
  408. * @return \sm_gate_sbox gate_sbox itemArray
  409. */
  410. public static function gate_sbox_getItemArray($key) {
  411. return self::get_hash_item('gate_sbox', $key);
  412. }
  413. /**
  414. * 最新的成就
  415. * @return \achieve_new
  416. */
  417. public static function achieve_new() {
  418. static $a = null;
  419. return self::initValue($a, 'achieve_new');
  420. }
  421. /**
  422. * @return \sm_achieve_new achieve_new item数据
  423. */
  424. public static function achieve_new_getItem($itemid) {
  425. return self::get_hash_item('achieve_new', $itemid);
  426. }
  427. /**
  428. * 人物属性
  429. * @return \heroattr
  430. */
  431. public static function heroattr() {
  432. static $a = null;
  433. return self::initValue($a, 'heroattr');
  434. }
  435. /**
  436. * @return \sm_heroattr heroattr item数据
  437. */
  438. public static function heroattr_getItem($itemid) {
  439. return self::get_hash_item('heroattr', $itemid);
  440. }
  441. /**
  442. * 剧情对话
  443. * @return \plots
  444. */
  445. public static function plots() {
  446. static $a = null;
  447. return self::initValue($a, 'plots');
  448. }
  449. /**
  450. * @return \sm_plots plots item数据
  451. */
  452. public static function plots_getItem($itemid) {
  453. return self::get_hash_item('plots', $itemid);
  454. }
  455. /**
  456. * 商城宝箱表
  457. * @return \shop_box
  458. */
  459. public static function shop_box() {
  460. static $a = null;
  461. return self::initValue($a, 'shop_box');
  462. }
  463. /**
  464. * @return \sm_shop_box shop_box item数据
  465. */
  466. public static function shop_box_getItem($itemid) {
  467. return self::get_hash_item('shop_box', $itemid);
  468. }
  469. /**
  470. * 商城月卡
  471. * @return \shop_monthcard
  472. */
  473. public static function shop_monthcard() {
  474. static $a = null;
  475. return self::initValue($a, 'shop_monthcard');
  476. }
  477. /**
  478. * @return \sm_shop_monthcard shop_monthcard item数据
  479. */
  480. public static function shop_monthcard_getItem($itemid) {
  481. return self::get_hash_item('shop_monthcard', $itemid);
  482. }
  483. /**
  484. * 7日狂欢活跃点奖励
  485. * @return \activepointreward
  486. */
  487. public static function activepointreward() {
  488. static $a = null;
  489. return self::initValue($a, 'activepointreward');
  490. }
  491. /**
  492. * @return \sm_activepointreward activepointreward item数据
  493. */
  494. public static function activepointreward_getItem($type, $pointId) {
  495. return self::get_hash_item('activepointreward', "$type-$pointId");
  496. }
  497. /**
  498. * 活动任务
  499. * @return \activeTask
  500. */
  501. public static function activeTask() {
  502. static $a = null;
  503. return self::initValue($a, 'activeTask');
  504. }
  505. /**
  506. * @return \sm_activeTask activeTask item数据
  507. */
  508. public static function activeTask_getItem($itemid) {
  509. return self::get_hash_item('activeTask', $itemid);
  510. }
  511. /**
  512. * 活动任务根据类型的不同分开
  513. * @return \activeTask_type
  514. */
  515. public static function activeTask_type() {
  516. static $a = null;
  517. return self::initValue($a, 'activeTask_type');
  518. }
  519. /**
  520. * @return \sm_activeTask_type activeTask_type itemArray
  521. */
  522. public static function activeTask_type_getItemArray($key) {
  523. return self::get_hash_item('activeTask_type', $key);
  524. }
  525. /**
  526. * 活动
  527. * @return \activity
  528. */
  529. public static function activity() {
  530. static $a = null;
  531. return self::initValue($a, 'activity');
  532. }
  533. /**
  534. * @return \sm_activity activity item数据
  535. */
  536. public static function activity_getItem($itemid) {
  537. return self::get_hash_item('activity', $itemid);
  538. }
  539. /**
  540. * 公告
  541. * @return \announcement
  542. */
  543. public static function announcement() {
  544. static $a = null;
  545. return self::initValue($a, 'announcement');
  546. }
  547. /**
  548. * @return \sm_announcement announcement item数据
  549. */
  550. public static function announcement_getItem($itemid) {
  551. return self::get_hash_item('announcement', $itemid);
  552. }
  553. /**
  554. * 战力荣誉榜信息
  555. * @return \rank_fightpowerreward
  556. */
  557. public static function rank_fightpowerreward() {
  558. static $a = null;
  559. return self::initValue($a, 'rank_fightpowerreward');
  560. }
  561. /**
  562. * @return \sm_rank_fightpowerreward rank_fightpowerreward item数据
  563. */
  564. public static function rank_fightpowerreward_getItem($itemid) {
  565. return self::get_hash_item('rank_fightpowerreward', $itemid);
  566. }
  567. /**
  568. * 主线荣誉榜信息
  569. * @return \rank_passgatereward
  570. */
  571. public static function rank_passgatereward() {
  572. static $a = null;
  573. return self::initValue($a, 'rank_passgatereward');
  574. }
  575. /**
  576. * @return \sm_rank_passgatereward rank_passgatereward item数据
  577. */
  578. public static function rank_passgatereward_getItem($itemid) {
  579. return self::get_hash_item('rank_passgatereward', $itemid);
  580. }
  581. /**
  582. * 玩家等级表
  583. * @return \player_level
  584. */
  585. public static function player_level() {
  586. static $a = null;
  587. return self::initValue($a, 'player_level');
  588. }
  589. /**
  590. * @return \sm_player_level player_level item数据
  591. */
  592. public static function player_level_getItem($itemid) {
  593. return self::get_hash_item('player_level', $itemid);
  594. }
  595. /**
  596. * 辅助:主线剧情解锁
  597. * @return \gate_unlock
  598. */
  599. public static function gate_unlock() {
  600. static $a = null;
  601. return self::initValue($a, 'gate_unlock');
  602. }
  603. /**
  604. * @return \sm_gate_unlock gate_unlock itemArray
  605. */
  606. public static function gate_unlock_getItemArray($key) {
  607. return self::get_hash_item('gate_unlock', $key);
  608. }
  609. /**
  610. * 辅助: 波次直查
  611. * @return \waveItem
  612. */
  613. public static function waveItem() {
  614. static $a = null;
  615. return self::initValue($a, 'waveItem');
  616. }
  617. /**
  618. * @return \sm_waveItem waveItem item数据
  619. */
  620. public static function waveItem_getItem($gateId, $waveId) {
  621. return self::get_hash_item('waveItem', "$gateId-$waveId");
  622. }
  623. /**
  624. * 道具宝箱表
  625. * @return \item_2023_box
  626. */
  627. public static function item_2023_box() {
  628. static $a = null;
  629. return self::initValue($a, 'item_2023_box');
  630. }
  631. /**
  632. * @return \sm_item_2023_box item_2023_box item数据
  633. */
  634. public static function item_2023_box_getItem($itemid) {
  635. return self::get_hash_item('item_2023_box', $itemid);
  636. }
  637. /**
  638. * 人物分类
  639. * @return \heroType_typeId
  640. */
  641. public static function heroType_typeId() {
  642. static $a = null;
  643. return self::initValue($a, 'heroType_typeId');
  644. }
  645. /**
  646. * @return \sm_heroType_typeId heroType_typeId itemArray
  647. */
  648. public static function heroType_typeId_getItemArray($key) {
  649. return self::get_hash_item('heroType_typeId', $key);
  650. }
  651. /**
  652. * 激活码表
  653. * @return \token_gift
  654. */
  655. public static function token_gift() {
  656. static $a = null;
  657. return self::initValue($a, 'token_gift');
  658. }
  659. /**
  660. * @return \sm_token_gift token_gift item数据
  661. */
  662. public static function token_gift_getItem($itemid) {
  663. return self::get_hash_item('token_gift', $itemid);
  664. }
  665. /**
  666. * 公共兑换码
  667. * @return \token_publicgift
  668. */
  669. public static function token_publicgift() {
  670. static $a = null;
  671. return self::initValue($a, 'token_publicgift');
  672. }
  673. /**
  674. * @return \sm_token_publicgift token_publicgift item数据
  675. */
  676. public static function token_publicgift_getItem($itemid) {
  677. return self::get_hash_item('token_publicgift', $itemid);
  678. }
  679. /**
  680. * 游戏功能解锁信息
  681. * @return \fun_unlock
  682. */
  683. public static function fun_unlock() {
  684. static $a = null;
  685. return self::initValue($a, 'fun_unlock');
  686. }
  687. /**
  688. * @return \sm_fun_unlock fun_unlock item数据
  689. */
  690. public static function fun_unlock_getItem($itemid) {
  691. return self::get_hash_item('fun_unlock', $itemid);
  692. }
  693. /**
  694. * 首充表
  695. * @return \firstrecharge_reward
  696. */
  697. public static function firstrecharge_reward() {
  698. static $a = null;
  699. return self::initValue($a, 'firstrecharge_reward');
  700. }
  701. /**
  702. * @return \sm_firstrecharge_reward firstrecharge_reward item数据
  703. */
  704. public static function firstrecharge_reward_getItem($itemid) {
  705. return self::get_hash_item('firstrecharge_reward', $itemid);
  706. }
  707. /**
  708. * 累计充值
  709. * @return \accumulaterecharge
  710. */
  711. public static function accumulaterecharge() {
  712. static $a = null;
  713. return self::initValue($a, 'accumulaterecharge');
  714. }
  715. /**
  716. * @return \sm_accumulaterecharge accumulaterecharge item数据
  717. */
  718. public static function accumulaterecharge_getItem($itemid) {
  719. return self::get_hash_item('accumulaterecharge', $itemid);
  720. }
  721. /**
  722. * 次级功能开启表
  723. * @return \subfun_unlock
  724. */
  725. public static function subfun_unlock() {
  726. static $a = null;
  727. return self::initValue($a, 'subfun_unlock');
  728. }
  729. /**
  730. * @return \sm_subfun_unlock subfun_unlock item数据
  731. */
  732. public static function subfun_unlock_getItem($itemid) {
  733. return self::get_hash_item('subfun_unlock', $itemid);
  734. }
  735. /**
  736. * 商城总表
  737. * @return \shop
  738. */
  739. public static function shop() {
  740. static $a = null;
  741. return self::initValue($a, 'shop');
  742. }
  743. /**
  744. * @return \sm_shop shop item数据
  745. */
  746. public static function shop_getItem($itemid) {
  747. return self::get_hash_item('shop', $itemid);
  748. }
  749. /**
  750. * 转盘抽奖
  751. * @return \activity_lottery_tree
  752. */
  753. public static function activity_lottery_tree() {
  754. static $a = null;
  755. return self::initValue($a, 'activity_lottery_tree');
  756. }
  757. /**
  758. * @return \sm_activity_lottery_tree activity_lottery_tree item数据
  759. */
  760. public static function activity_lottery_tree_getItem($itemid) {
  761. return self::get_hash_item('activity_lottery_tree', $itemid);
  762. }
  763. /**
  764. * 转盘抽奖累计次数奖励
  765. * @return \activity_lotterynum_accumulate
  766. */
  767. public static function activity_lotterynum_accumulate() {
  768. static $a = null;
  769. return self::initValue($a, 'activity_lotterynum_accumulate');
  770. }
  771. /**
  772. * @return \sm_activity_lotterynum_accumulate activity_lotterynum_accumulate item数据
  773. */
  774. public static function activity_lotterynum_accumulate_getItem($itemid) {
  775. return self::get_hash_item('activity_lotterynum_accumulate', $itemid);
  776. }
  777. /**
  778. * 人参果兑换稀有物资表
  779. * @return \activity_lotteryitem_exchange
  780. */
  781. public static function activity_lotteryitem_exchange() {
  782. static $a = null;
  783. return self::initValue($a, 'activity_lotteryitem_exchange');
  784. }
  785. /**
  786. * @return \sm_activity_lotteryitem_exchange activity_lotteryitem_exchange item数据
  787. */
  788. public static function activity_lotteryitem_exchange_getItem($itemid) {
  789. return self::get_hash_item('activity_lotteryitem_exchange', $itemid);
  790. }
  791. /**
  792. * 限时贩售
  793. * @return \activity_promopackinfo
  794. */
  795. public static function activity_promopackinfo() {
  796. static $a = null;
  797. return self::initValue($a, 'activity_promopackinfo');
  798. }
  799. /**
  800. * @return \sm_activity_promopackinfo activity_promopackinfo item数据
  801. */
  802. public static function activity_promopackinfo_getItem($itemid) {
  803. return self::get_hash_item('activity_promopackinfo', $itemid);
  804. }
  805. /**
  806. * 限时贩售不同礼包分类
  807. * @return \activity_promopackinfo_type
  808. */
  809. public static function activity_promopackinfo_type() {
  810. static $a = null;
  811. return self::initValue($a, 'activity_promopackinfo_type');
  812. }
  813. /**
  814. * @return \sm_activity_promopackinfo_type activity_promopackinfo_type itemArray
  815. */
  816. public static function activity_promopackinfo_type_getItemArray($key) {
  817. return self::get_hash_item('activity_promopackinfo_type', $key);
  818. }
  819. /**
  820. * 战令表
  821. * @return \activity_battlepass
  822. */
  823. public static function activity_battlepass() {
  824. static $a = null;
  825. return self::initValue($a, 'activity_battlepass');
  826. }
  827. /**
  828. * @return \sm_activity_battlepass activity_battlepass item数据
  829. */
  830. public static function activity_battlepass_getItem($itemid) {
  831. return self::get_hash_item('activity_battlepass', $itemid);
  832. }
  833. /**
  834. * 战令类型区别
  835. * @return \activity_battlepass_type
  836. */
  837. public static function activity_battlepass_type() {
  838. static $a = null;
  839. return self::initValue($a, 'activity_battlepass_type');
  840. }
  841. /**
  842. * @return \sm_activity_battlepass_type activity_battlepass_type itemArray
  843. */
  844. public static function activity_battlepass_type_getItemArray($key) {
  845. return self::get_hash_item('activity_battlepass_type', $key);
  846. }
  847. /**
  848. * 装备道具表
  849. * @return \equip
  850. */
  851. public static function equip() {
  852. static $a = null;
  853. return self::initValue($a, 'equip');
  854. }
  855. /**
  856. * @return \sm_equip equip item数据
  857. */
  858. public static function equip_getItem($itemid) {
  859. return self::get_hash_item('equip', $itemid);
  860. }
  861. /**
  862. * 宝石槽位表
  863. * @return \gem_slotposition
  864. */
  865. public static function gem_slotposition() {
  866. static $a = null;
  867. return self::initValue($a, 'gem_slotposition');
  868. }
  869. /**
  870. * @return \sm_gem_slotposition gem_slotposition item数据
  871. */
  872. public static function gem_slotposition_getItem($itemid) {
  873. return self::get_hash_item('gem_slotposition', $itemid);
  874. }
  875. /**
  876. * 装备合成表
  877. * @return \equip_compose
  878. */
  879. public static function equip_compose() {
  880. static $a = null;
  881. return self::initValue($a, 'equip_compose');
  882. }
  883. /**
  884. * @return \sm_equip_compose equip_compose item数据
  885. */
  886. public static function equip_compose_getItem($itemid) {
  887. return self::get_hash_item('equip_compose', $itemid);
  888. }
  889. /**
  890. * 装备套装
  891. * @return \equip_suit
  892. */
  893. public static function equip_suit() {
  894. static $a = null;
  895. return self::initValue($a, 'equip_suit');
  896. }
  897. /**
  898. * @return \sm_equip_suit equip_suit item数据
  899. */
  900. public static function equip_suit_getItem($itemid) {
  901. return self::get_hash_item('equip_suit', $itemid);
  902. }
  903. /**
  904. * 新手7日签到
  905. * @return \activity_day7sign_newplayer
  906. */
  907. public static function activity_day7sign_newplayer() {
  908. static $a = null;
  909. return self::initValue($a, 'activity_day7sign_newplayer');
  910. }
  911. /**
  912. * @return \sm_activity_day7sign_newplayer activity_day7sign_newplayer item数据
  913. */
  914. public static function activity_day7sign_newplayer_getItem($itemid) {
  915. return self::get_hash_item('activity_day7sign_newplayer', $itemid);
  916. }
  917. /**
  918. * 全局参数2
  919. * @return \glc2
  920. */
  921. public static function glc2() {
  922. static $a = null;
  923. return self::initValue($a, 'glc2');
  924. }
  925. /**
  926. * 战力公式: 装备系数表
  927. * @return \equip_power
  928. */
  929. public static function equip_power() {
  930. static $a = null;
  931. return self::initValue($a, 'equip_power');
  932. }
  933. /**
  934. * @return \sm_equip_power equip_power item数据
  935. */
  936. public static function equip_power_getItem($rarity, $qual, $position) {
  937. return self::get_hash_item('equip_power', "$rarity-$qual-$position");
  938. }
  939. /**
  940. * 新手引导表
  941. * @return \guide
  942. */
  943. public static function guide() {
  944. static $a = null;
  945. return self::initValue($a, 'guide');
  946. }
  947. /**
  948. * @return \sm_guide guide item数据
  949. */
  950. public static function guide_getItem($type, $stepId) {
  951. return self::get_hash_item('guide', "$type-$stepId");
  952. }
  953. /**
  954. * 当前版本(时间戳)
  955. * @return \ver
  956. */
  957. public static function ver() {
  958. static $a = null;
  959. return self::initValue($a, 'ver', false);
  960. }
  961. /**
  962. * 客户端配置数据
  963. * @return \client
  964. */
  965. public static function client() {
  966. static $a = null;
  967. return self::initValue($a, 'client', false);
  968. }
  969. }