GameConfig.php 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339
  1. <?php
  2. ////////////////////
  3. // 由CodeGenerator创建。
  4. // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  5. // author: gwang
  6. // 日期: 2025-03-30 16:28:00
  7. ////////////////////
  8. /**
  9. * 常量配置数据
  10. */
  11. class GameConfig {
  12. // <editor-fold defaultstate="collapsed" desc=" 基础代码 ">
  13. /**
  14. * 是否启用codegen
  15. */
  16. private static function isCG() {
  17. return defined('CodeGen_Enabled') && CodeGen_Enabled;
  18. }
  19. /**
  20. * @var bool 分区是否使用独立的常量配置数据
  21. */
  22. private static $useZoneId = false;
  23. /**
  24. * 追加分区列表字符串
  25. * @return string
  26. */
  27. private static function zoneid()
  28. {
  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. if (property_exists($data, $itemId)) {
  73. return $data->$itemId;
  74. }
  75. } else {
  76. $key = 'gamecfg-' . self::CV() . $modelName . self::zoneid();
  77. return gMem()->hget($key, $itemId);
  78. }
  79. return null;
  80. }
  81. // </editor-fold>
  82. /**
  83. * 全局参数
  84. * @return \globalsettings
  85. */
  86. public static function globalsettings()
  87. {
  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. {
  97. static $a = null;
  98. return self::initValue($a, 'service_schedule');
  99. }
  100. /**
  101. * @return \sm_service_schedule service_schedule item数据
  102. */
  103. public static function service_schedule_getItem($itemid)
  104. {
  105. return self::get_hash_item('service_schedule', $itemid);
  106. }
  107. /**
  108. * 道具表
  109. * @return \item
  110. */
  111. public static function item()
  112. {
  113. static $a = null;
  114. return self::initValue($a, 'item');
  115. }
  116. /**
  117. * @return \sm_item item item数据
  118. */
  119. public static function item_getItem($itemid)
  120. {
  121. return self::get_hash_item('item', $itemid);
  122. }
  123. /**
  124. * 系统邮件
  125. * @return \sysmail
  126. */
  127. public static function sysmail()
  128. {
  129. static $a = null;
  130. return self::initValue($a, 'sysmail');
  131. }
  132. /**
  133. * @return \sm_sysmail sysmail item数据
  134. */
  135. public static function sysmail_getItem($itemid)
  136. {
  137. return self::get_hash_item('sysmail', $itemid);
  138. }
  139. /**
  140. * 客户端版本信息
  141. * @return \clientVersionHistory
  142. */
  143. public static function clientVersionHistory()
  144. {
  145. static $a = null;
  146. return self::initValue($a, 'clientVersionHistory');
  147. }
  148. /**
  149. * @return \sm_clientVersionHistory clientVersionHistory item数据
  150. */
  151. public static function clientVersionHistory_getItem($itemid)
  152. {
  153. return self::get_hash_item('clientVersionHistory', $itemid);
  154. }
  155. /**
  156. * 错误信息表
  157. * @return \errmsg
  158. */
  159. public static function errmsg()
  160. {
  161. static $a = null;
  162. return self::initValue($a, 'errmsg');
  163. }
  164. /**
  165. * @return \sm_errmsg errmsg item数据
  166. */
  167. public static function errmsg_getItem($itemid)
  168. {
  169. return self::get_hash_item('errmsg', $itemid);
  170. }
  171. /**
  172. * 技能表
  173. * @return \skills
  174. */
  175. public static function skills()
  176. {
  177. static $a = null;
  178. return self::initValue($a, 'skills');
  179. }
  180. /**
  181. * @return \sm_skills skills item数据
  182. */
  183. public static function skills_getItem($itemid)
  184. {
  185. return self::get_hash_item('skills', $itemid);
  186. }
  187. /**
  188. * 战斗: 波次表
  189. * @return \waves
  190. */
  191. public static function waves()
  192. {
  193. static $a = null;
  194. return self::initValue($a, 'waves');
  195. }
  196. /**
  197. * @return \sm_waves waves itemArray
  198. */
  199. public static function waves_getItemArray($key)
  200. {
  201. return self::get_hash_item('waves', $key);
  202. }
  203. /**
  204. * 活动: 七日签到
  205. * @return \activity_day7
  206. */
  207. public static function activity_day7()
  208. {
  209. static $a = null;
  210. return self::initValue($a, 'activity_day7');
  211. }
  212. /**
  213. * @return \sm_activity_day7 activity_day7 item数据
  214. */
  215. public static function activity_day7_getItem($itemid)
  216. {
  217. return self::get_hash_item('activity_day7', $itemid);
  218. }
  219. /**
  220. * 章节表
  221. * @return \gate
  222. */
  223. public static function gate()
  224. {
  225. static $a = null;
  226. return self::initValue($a, 'gate');
  227. }
  228. /**
  229. * @return \sm_gate gate item数据
  230. */
  231. public static function gate_getItem($itemid)
  232. {
  233. return self::get_hash_item('gate', $itemid);
  234. }
  235. /**
  236. * 角色
  237. * @return \hero
  238. */
  239. public static function hero()
  240. {
  241. static $a = null;
  242. return self::initValue($a, 'hero');
  243. }
  244. /**
  245. * @return \sm_hero hero item数据
  246. */
  247. public static function hero_getItem($itemid)
  248. {
  249. return self::get_hash_item('hero', $itemid);
  250. }
  251. /**
  252. * 装备部位表
  253. * @return \equip_position
  254. */
  255. public static function equip_position()
  256. {
  257. static $a = null;
  258. return self::initValue($a, 'equip_position');
  259. }
  260. /**
  261. * @return \sm_equip_position equip_position item数据
  262. */
  263. public static function equip_position_getItem($itemid)
  264. {
  265. return self::get_hash_item('equip_position', $itemid);
  266. }
  267. /**
  268. * 装备升级表
  269. * @return \equip_levelupgrade
  270. */
  271. public static function equip_levelupgrade()
  272. {
  273. static $a = null;
  274. return self::initValue($a, 'equip_levelupgrade');
  275. }
  276. /**
  277. * @return \sm_equip_levelupgrade equip_levelupgrade item数据
  278. */
  279. public static function equip_levelupgrade_getItem($rarity, $qual, $posId, $level)
  280. {
  281. return self::get_hash_item('equip_levelupgrade', "$rarity-$qual-$posId-$level");
  282. }
  283. /**
  284. * 章节礼包表
  285. * @return \shop_gategift
  286. */
  287. public static function shop_gategift()
  288. {
  289. static $a = null;
  290. return self::initValue($a, 'shop_gategift');
  291. }
  292. /**
  293. * @return \sm_shop_gategift shop_gategift item数据
  294. */
  295. public static function shop_gategift_getItem($itemid)
  296. {
  297. return self::get_hash_item('shop_gategift', $itemid);
  298. }
  299. /**
  300. * 每日商店
  301. * @return \shop_daily
  302. */
  303. public static function shop_daily()
  304. {
  305. static $a = null;
  306. return self::initValue($a, 'shop_daily');
  307. }
  308. /**
  309. * @return \sm_shop_daily shop_daily item数据
  310. */
  311. public static function shop_daily_getItem($itemid)
  312. {
  313. return self::get_hash_item('shop_daily', $itemid);
  314. }
  315. /**
  316. * 钻石商店
  317. * @return \shop_cash
  318. */
  319. public static function shop_cash()
  320. {
  321. static $a = null;
  322. return self::initValue($a, 'shop_cash');
  323. }
  324. /**
  325. * @return \sm_shop_cash shop_cash item数据
  326. */
  327. public static function shop_cash_getItem($itemid)
  328. {
  329. return self::get_hash_item('shop_cash', $itemid);
  330. }
  331. /**
  332. * 金币商店
  333. * @return \shop_gold
  334. */
  335. public static function shop_gold()
  336. {
  337. static $a = null;
  338. return self::initValue($a, 'shop_gold');
  339. }
  340. /**
  341. * @return \sm_shop_gold shop_gold item数据
  342. */
  343. public static function shop_gold_getItem($itemid)
  344. {
  345. return self::get_hash_item('shop_gold', $itemid);
  346. }
  347. /**
  348. * 商城供给表-应该是废弃了
  349. * @return \shop_supply
  350. */
  351. public static function shop_supply()
  352. {
  353. static $a = null;
  354. return self::initValue($a, 'shop_supply');
  355. }
  356. /**
  357. * @return \sm_shop_supply shop_supply item数据
  358. */
  359. public static function shop_supply_getItem($itemid)
  360. {
  361. return self::get_hash_item('shop_supply', $itemid);
  362. }
  363. /**
  364. * 词条配置表
  365. * @return \predicate
  366. */
  367. public static function predicate()
  368. {
  369. static $a = null;
  370. return self::initValue($a, 'predicate');
  371. }
  372. /**
  373. * @return \sm_predicate predicate item数据
  374. */
  375. public static function predicate_getItem($itemid)
  376. {
  377. return self::get_hash_item('predicate', $itemid);
  378. }
  379. /**
  380. * 商城军备
  381. * @return \shop_junbei
  382. */
  383. public static function shop_junbei()
  384. {
  385. static $a = null;
  386. return self::initValue($a, 'shop_junbei');
  387. }
  388. /**
  389. * @return \sm_shop_junbei shop_junbei item数据
  390. */
  391. public static function shop_junbei_getItem($itemid)
  392. {
  393. return self::get_hash_item('shop_junbei', $itemid);
  394. }
  395. /**
  396. * 进化表
  397. * @return \evolve
  398. */
  399. public static function evolve()
  400. {
  401. static $a = null;
  402. return self::initValue($a, 'evolve');
  403. }
  404. /**
  405. * @return \sm_evolve evolve item数据
  406. */
  407. public static function evolve_getItem($itemid)
  408. {
  409. return self::get_hash_item('evolve', $itemid);
  410. }
  411. /**
  412. * 7日签到累计
  413. * @return \active_day7_accumulate
  414. */
  415. public static function active_day7_accumulate()
  416. {
  417. static $a = null;
  418. return self::initValue($a, 'active_day7_accumulate');
  419. }
  420. /**
  421. * @return \sm_active_day7_accumulate active_day7_accumulate item数据
  422. */
  423. public static function active_day7_accumulate_getItem($itemid)
  424. {
  425. return self::get_hash_item('active_day7_accumulate', $itemid);
  426. }
  427. /**
  428. * 宝石表
  429. * @return \gem
  430. */
  431. public static function gem()
  432. {
  433. static $a = null;
  434. return self::initValue($a, 'gem');
  435. }
  436. /**
  437. * @return \sm_gem gem item数据
  438. */
  439. public static function gem_getItem($itemid)
  440. {
  441. return self::get_hash_item('gem', $itemid);
  442. }
  443. /**
  444. * 秘宝表
  445. * @return \gate_sbox
  446. */
  447. public static function gate_sbox()
  448. {
  449. static $a = null;
  450. return self::initValue($a, 'gate_sbox');
  451. }
  452. /**
  453. * @return \sm_gate_sbox gate_sbox itemArray
  454. */
  455. public static function gate_sbox_getItemArray($key)
  456. {
  457. return self::get_hash_item('gate_sbox', $key);
  458. }
  459. /**
  460. * 最新的成就
  461. * @return \achieve_new
  462. */
  463. public static function achieve_new()
  464. {
  465. static $a = null;
  466. return self::initValue($a, 'achieve_new');
  467. }
  468. /**
  469. * @return \sm_achieve_new achieve_new item数据
  470. */
  471. public static function achieve_new_getItem($itemid)
  472. {
  473. return self::get_hash_item('achieve_new', $itemid);
  474. }
  475. /**
  476. * 人物属性
  477. * @return \heroattr
  478. */
  479. public static function heroattr()
  480. {
  481. static $a = null;
  482. return self::initValue($a, 'heroattr');
  483. }
  484. /**
  485. * @return \sm_heroattr heroattr item数据
  486. */
  487. public static function heroattr_getItem($itemid)
  488. {
  489. return self::get_hash_item('heroattr', $itemid);
  490. }
  491. /**
  492. * 剧情对话
  493. * @return \plots
  494. */
  495. public static function plots()
  496. {
  497. static $a = null;
  498. return self::initValue($a, 'plots');
  499. }
  500. /**
  501. * @return \sm_plots plots item数据
  502. */
  503. public static function plots_getItem($itemid)
  504. {
  505. return self::get_hash_item('plots', $itemid);
  506. }
  507. /**
  508. * 商城宝箱表
  509. * @return \shop_box
  510. */
  511. public static function shop_box()
  512. {
  513. static $a = null;
  514. return self::initValue($a, 'shop_box');
  515. }
  516. /**
  517. * @return \sm_shop_box shop_box item数据
  518. */
  519. public static function shop_box_getItem($itemid)
  520. {
  521. return self::get_hash_item('shop_box', $itemid);
  522. }
  523. /**
  524. * 商城月卡
  525. * @return \shop_monthcard
  526. */
  527. public static function shop_monthcard()
  528. {
  529. static $a = null;
  530. return self::initValue($a, 'shop_monthcard');
  531. }
  532. /**
  533. * @return \sm_shop_monthcard shop_monthcard item数据
  534. */
  535. public static function shop_monthcard_getItem($itemid)
  536. {
  537. return self::get_hash_item('shop_monthcard', $itemid);
  538. }
  539. /**
  540. * 7日狂欢活跃点奖励
  541. * @return \activepointreward
  542. */
  543. public static function activepointreward()
  544. {
  545. static $a = null;
  546. return self::initValue($a, 'activepointreward');
  547. }
  548. /**
  549. * @return \sm_activepointreward activepointreward item数据
  550. */
  551. public static function activepointreward_getItem($type, $pointId)
  552. {
  553. return self::get_hash_item('activepointreward', "$type-$pointId");
  554. }
  555. /**
  556. * 活动任务
  557. * @return \activeTask
  558. */
  559. public static function activeTask()
  560. {
  561. static $a = null;
  562. return self::initValue($a, 'activeTask');
  563. }
  564. /**
  565. * @return \sm_activeTask activeTask item数据
  566. */
  567. public static function activeTask_getItem($itemid)
  568. {
  569. return self::get_hash_item('activeTask', $itemid);
  570. }
  571. /**
  572. * 活动任务根据类型的不同分开
  573. * @return \activeTask_type
  574. */
  575. public static function activeTask_type()
  576. {
  577. static $a = null;
  578. return self::initValue($a, 'activeTask_type');
  579. }
  580. /**
  581. * @return \sm_activeTask_type activeTask_type itemArray
  582. */
  583. public static function activeTask_type_getItemArray($key)
  584. {
  585. return self::get_hash_item('activeTask_type', $key);
  586. }
  587. /**
  588. * 活动
  589. * @return \activity
  590. */
  591. public static function activity()
  592. {
  593. static $a = null;
  594. return self::initValue($a, 'activity');
  595. }
  596. /**
  597. * @return \sm_activity activity item数据
  598. */
  599. public static function activity_getItem($itemid)
  600. {
  601. return self::get_hash_item('activity', $itemid);
  602. }
  603. /**
  604. * 公告
  605. * @return \announcement
  606. */
  607. public static function announcement()
  608. {
  609. static $a = null;
  610. return self::initValue($a, 'announcement');
  611. }
  612. /**
  613. * @return \sm_announcement announcement item数据
  614. */
  615. public static function announcement_getItem($itemid)
  616. {
  617. return self::get_hash_item('announcement', $itemid);
  618. }
  619. /**
  620. * 战力荣誉榜信息
  621. * @return \rank_fightpowerreward
  622. */
  623. public static function rank_fightpowerreward()
  624. {
  625. static $a = null;
  626. return self::initValue($a, 'rank_fightpowerreward');
  627. }
  628. /**
  629. * @return \sm_rank_fightpowerreward rank_fightpowerreward item数据
  630. */
  631. public static function rank_fightpowerreward_getItem($itemid)
  632. {
  633. return self::get_hash_item('rank_fightpowerreward', $itemid);
  634. }
  635. /**
  636. * 主线荣誉榜信息
  637. * @return \rank_passgatereward
  638. */
  639. public static function rank_passgatereward()
  640. {
  641. static $a = null;
  642. return self::initValue($a, 'rank_passgatereward');
  643. }
  644. /**
  645. * @return \sm_rank_passgatereward rank_passgatereward item数据
  646. */
  647. public static function rank_passgatereward_getItem($itemid)
  648. {
  649. return self::get_hash_item('rank_passgatereward', $itemid);
  650. }
  651. /**
  652. * 玩家等级表
  653. * @return \player_level
  654. */
  655. public static function player_level()
  656. {
  657. static $a = null;
  658. return self::initValue($a, 'player_level');
  659. }
  660. /**
  661. * @return \sm_player_level player_level item数据
  662. */
  663. public static function player_level_getItem($itemid)
  664. {
  665. return self::get_hash_item('player_level', $itemid);
  666. }
  667. /**
  668. * 辅助:主线剧情解锁
  669. * @return \gate_unlock
  670. */
  671. public static function gate_unlock()
  672. {
  673. static $a = null;
  674. return self::initValue($a, 'gate_unlock');
  675. }
  676. /**
  677. * @return \sm_gate_unlock gate_unlock itemArray
  678. */
  679. public static function gate_unlock_getItemArray($key)
  680. {
  681. return self::get_hash_item('gate_unlock', $key);
  682. }
  683. /**
  684. * 辅助: 波次直查
  685. * @return \waveItem
  686. */
  687. public static function waveItem()
  688. {
  689. static $a = null;
  690. return self::initValue($a, 'waveItem');
  691. }
  692. /**
  693. * @return \sm_waveItem waveItem item数据
  694. */
  695. public static function waveItem_getItem($gateId, $waveId)
  696. {
  697. return self::get_hash_item('waveItem', "$gateId-$waveId");
  698. }
  699. /**
  700. * 道具宝箱表
  701. * @return \item_2023_box
  702. */
  703. public static function item_2023_box()
  704. {
  705. static $a = null;
  706. return self::initValue($a, 'item_2023_box');
  707. }
  708. /**
  709. * @return \sm_item_2023_box item_2023_box item数据
  710. */
  711. public static function item_2023_box_getItem($itemid)
  712. {
  713. return self::get_hash_item('item_2023_box', $itemid);
  714. }
  715. /**
  716. * 人物分类
  717. * @return \heroType_typeId
  718. */
  719. public static function heroType_typeId()
  720. {
  721. static $a = null;
  722. return self::initValue($a, 'heroType_typeId');
  723. }
  724. /**
  725. * @return \sm_heroType_typeId heroType_typeId itemArray
  726. */
  727. public static function heroType_typeId_getItemArray($key)
  728. {
  729. return self::get_hash_item('heroType_typeId', $key);
  730. }
  731. /**
  732. * 激活码表
  733. * @return \token_gift
  734. */
  735. public static function token_gift()
  736. {
  737. static $a = null;
  738. return self::initValue($a, 'token_gift');
  739. }
  740. /**
  741. * @return \sm_token_gift token_gift item数据
  742. */
  743. public static function token_gift_getItem($itemid)
  744. {
  745. return self::get_hash_item('token_gift', $itemid);
  746. }
  747. /**
  748. * 公共兑换码
  749. * @return \token_publicgift
  750. */
  751. public static function token_publicgift()
  752. {
  753. static $a = null;
  754. return self::initValue($a, 'token_publicgift');
  755. }
  756. /**
  757. * @return \sm_token_publicgift token_publicgift item数据
  758. */
  759. public static function token_publicgift_getItem($itemid)
  760. {
  761. return self::get_hash_item('token_publicgift', $itemid);
  762. }
  763. /**
  764. * 游戏功能解锁信息
  765. * @return \fun_unlock
  766. */
  767. public static function fun_unlock()
  768. {
  769. static $a = null;
  770. return self::initValue($a, 'fun_unlock');
  771. }
  772. /**
  773. * @return \sm_fun_unlock fun_unlock item数据
  774. */
  775. public static function fun_unlock_getItem($itemid)
  776. {
  777. return self::get_hash_item('fun_unlock', $itemid);
  778. }
  779. /**
  780. * 首充表
  781. * @return \firstrecharge_reward
  782. */
  783. public static function firstrecharge_reward()
  784. {
  785. static $a = null;
  786. return self::initValue($a, 'firstrecharge_reward');
  787. }
  788. /**
  789. * @return \sm_firstrecharge_reward firstrecharge_reward item数据
  790. */
  791. public static function firstrecharge_reward_getItem($itemid)
  792. {
  793. return self::get_hash_item('firstrecharge_reward', $itemid);
  794. }
  795. /**
  796. * 累计充值
  797. * @return \accumulaterecharge
  798. */
  799. public static function accumulaterecharge()
  800. {
  801. static $a = null;
  802. return self::initValue($a, 'accumulaterecharge');
  803. }
  804. /**
  805. * @return \sm_accumulaterecharge accumulaterecharge item数据
  806. */
  807. public static function accumulaterecharge_getItem($itemid)
  808. {
  809. return self::get_hash_item('accumulaterecharge', $itemid);
  810. }
  811. /**
  812. * 次级功能开启表
  813. * @return \subfun_unlock
  814. */
  815. public static function subfun_unlock()
  816. {
  817. static $a = null;
  818. return self::initValue($a, 'subfun_unlock');
  819. }
  820. /**
  821. * @return \sm_subfun_unlock subfun_unlock item数据
  822. */
  823. public static function subfun_unlock_getItem($itemid)
  824. {
  825. return self::get_hash_item('subfun_unlock', $itemid);
  826. }
  827. /**
  828. * 商城总表
  829. * @return \shop
  830. */
  831. public static function shop()
  832. {
  833. static $a = null;
  834. return self::initValue($a, 'shop');
  835. }
  836. /**
  837. * @return \sm_shop shop item数据
  838. */
  839. public static function shop_getItem($itemid)
  840. {
  841. return self::get_hash_item('shop', $itemid);
  842. }
  843. /**
  844. * 转盘抽奖
  845. * @return \activity_lottery_tree
  846. */
  847. public static function activity_lottery_tree()
  848. {
  849. static $a = null;
  850. return self::initValue($a, 'activity_lottery_tree');
  851. }
  852. /**
  853. * @return \sm_activity_lottery_tree activity_lottery_tree item数据
  854. */
  855. public static function activity_lottery_tree_getItem($itemid)
  856. {
  857. return self::get_hash_item('activity_lottery_tree', $itemid);
  858. }
  859. /**
  860. * 转盘抽奖累计次数奖励
  861. * @return \activity_lotterynum_accumulate
  862. */
  863. public static function activity_lotterynum_accumulate()
  864. {
  865. static $a = null;
  866. return self::initValue($a, 'activity_lotterynum_accumulate');
  867. }
  868. /**
  869. * @return \sm_activity_lotterynum_accumulate activity_lotterynum_accumulate item数据
  870. */
  871. public static function activity_lotterynum_accumulate_getItem($itemid)
  872. {
  873. return self::get_hash_item('activity_lotterynum_accumulate', $itemid);
  874. }
  875. /**
  876. * 人参果兑换稀有物资表
  877. * @return \activity_lotteryitem_exchange
  878. */
  879. public static function activity_lotteryitem_exchange()
  880. {
  881. static $a = null;
  882. return self::initValue($a, 'activity_lotteryitem_exchange');
  883. }
  884. /**
  885. * @return \sm_activity_lotteryitem_exchange activity_lotteryitem_exchange item数据
  886. */
  887. public static function activity_lotteryitem_exchange_getItem($itemid)
  888. {
  889. return self::get_hash_item('activity_lotteryitem_exchange', $itemid);
  890. }
  891. /**
  892. * 限时贩售
  893. * @return \activity_promopackinfo
  894. */
  895. public static function activity_promopackinfo()
  896. {
  897. static $a = null;
  898. return self::initValue($a, 'activity_promopackinfo');
  899. }
  900. /**
  901. * @return \sm_activity_promopackinfo activity_promopackinfo item数据
  902. */
  903. public static function activity_promopackinfo_getItem($itemid)
  904. {
  905. return self::get_hash_item('activity_promopackinfo', $itemid);
  906. }
  907. /**
  908. * 限时贩售不同礼包分类
  909. * @return \activity_promopackinfo_type
  910. */
  911. public static function activity_promopackinfo_type()
  912. {
  913. static $a = null;
  914. return self::initValue($a, 'activity_promopackinfo_type');
  915. }
  916. /**
  917. * @return \sm_activity_promopackinfo_type activity_promopackinfo_type itemArray
  918. */
  919. public static function activity_promopackinfo_type_getItemArray($key)
  920. {
  921. return self::get_hash_item('activity_promopackinfo_type', $key);
  922. }
  923. /**
  924. * 战令表
  925. * @return \activity_battlepass
  926. */
  927. public static function activity_battlepass()
  928. {
  929. static $a = null;
  930. return self::initValue($a, 'activity_battlepass');
  931. }
  932. /**
  933. * @return \sm_activity_battlepass activity_battlepass item数据
  934. */
  935. public static function activity_battlepass_getItem($itemid)
  936. {
  937. return self::get_hash_item('activity_battlepass', $itemid);
  938. }
  939. /**
  940. * 战令类型区别
  941. * @return \activity_battlepass_type
  942. */
  943. public static function activity_battlepass_type()
  944. {
  945. static $a = null;
  946. return self::initValue($a, 'activity_battlepass_type');
  947. }
  948. /**
  949. * @return \sm_activity_battlepass_type activity_battlepass_type itemArray
  950. */
  951. public static function activity_battlepass_type_getItemArray($key)
  952. {
  953. return self::get_hash_item('activity_battlepass_type', $key);
  954. }
  955. /**
  956. * 装备道具表
  957. * @return \equip
  958. */
  959. public static function equip()
  960. {
  961. static $a = null;
  962. return self::initValue($a, 'equip');
  963. }
  964. /**
  965. * @return \sm_equip equip item数据
  966. */
  967. public static function equip_getItem($itemid)
  968. {
  969. return self::get_hash_item('equip', $itemid);
  970. }
  971. /**
  972. * 宝石槽位表
  973. * @return \gem_slotposition
  974. */
  975. public static function gem_slotposition()
  976. {
  977. static $a = null;
  978. return self::initValue($a, 'gem_slotposition');
  979. }
  980. /**
  981. * @return \sm_gem_slotposition gem_slotposition item数据
  982. */
  983. public static function gem_slotposition_getItem($itemid)
  984. {
  985. return self::get_hash_item('gem_slotposition', $itemid);
  986. }
  987. /**
  988. * 装备合成表
  989. * @return \equip_compose
  990. */
  991. public static function equip_compose()
  992. {
  993. static $a = null;
  994. return self::initValue($a, 'equip_compose');
  995. }
  996. /**
  997. * @return \sm_equip_compose equip_compose item数据
  998. */
  999. public static function equip_compose_getItem($itemid)
  1000. {
  1001. return self::get_hash_item('equip_compose', $itemid);
  1002. }
  1003. /**
  1004. * 装备套装
  1005. * @return \equip_suit
  1006. */
  1007. public static function equip_suit()
  1008. {
  1009. static $a = null;
  1010. return self::initValue($a, 'equip_suit');
  1011. }
  1012. /**
  1013. * @return \sm_equip_suit equip_suit item数据
  1014. */
  1015. public static function equip_suit_getItem($itemid)
  1016. {
  1017. return self::get_hash_item('equip_suit', $itemid);
  1018. }
  1019. /**
  1020. * 新手7日签到
  1021. * @return \activity_day7sign_newplayer
  1022. */
  1023. public static function activity_day7sign_newplayer()
  1024. {
  1025. static $a = null;
  1026. return self::initValue($a, 'activity_day7sign_newplayer');
  1027. }
  1028. /**
  1029. * @return \sm_activity_day7sign_newplayer activity_day7sign_newplayer item数据
  1030. */
  1031. public static function activity_day7sign_newplayer_getItem($itemid)
  1032. {
  1033. return self::get_hash_item('activity_day7sign_newplayer', $itemid);
  1034. }
  1035. /**
  1036. * 全局参数2
  1037. * @return \glc2
  1038. */
  1039. public static function glc2()
  1040. {
  1041. static $a = null;
  1042. return self::initValue($a, 'glc2');
  1043. }
  1044. /**
  1045. * 战力公式: 装备系数表
  1046. * @return \equip_power
  1047. */
  1048. public static function equip_power()
  1049. {
  1050. static $a = null;
  1051. return self::initValue($a, 'equip_power');
  1052. }
  1053. /**
  1054. * @return \sm_equip_power equip_power item数据
  1055. */
  1056. public static function equip_power_getItem($rarity, $qual, $position)
  1057. {
  1058. return self::get_hash_item('equip_power', "$rarity-$qual-$position");
  1059. }
  1060. /**
  1061. * 新手引导表
  1062. * @return \guide
  1063. */
  1064. public static function guide()
  1065. {
  1066. static $a = null;
  1067. return self::initValue($a, 'guide');
  1068. }
  1069. /**
  1070. * @return \sm_guide guide item数据
  1071. */
  1072. public static function guide_getItem($id, $stepId)
  1073. {
  1074. return self::get_hash_item('guide', "$id-$stepId");
  1075. }
  1076. /**
  1077. * 连续在线礼包
  1078. * @return \activity_onlinegift
  1079. */
  1080. public static function activity_onlinegift()
  1081. {
  1082. static $a = null;
  1083. return self::initValue($a, 'activity_onlinegift');
  1084. }
  1085. /**
  1086. * @return \sm_activity_onlinegift activity_onlinegift item数据
  1087. */
  1088. public static function activity_onlinegift_getItem($itemid)
  1089. {
  1090. return self::get_hash_item('activity_onlinegift', $itemid);
  1091. }
  1092. /**
  1093. * 元宝购买道具活动
  1094. * @return \activity_cashmall
  1095. */
  1096. public static function activity_cashmall()
  1097. {
  1098. static $a = null;
  1099. return self::initValue($a, 'activity_cashmall');
  1100. }
  1101. /**
  1102. * @return \sm_activity_cashmall activity_cashmall item数据
  1103. */
  1104. public static function activity_cashmall_getItem($itemid)
  1105. {
  1106. return self::get_hash_item('activity_cashmall', $itemid);
  1107. }
  1108. /**
  1109. * 金蛇献瑞卡牌所属行列表
  1110. * @return \activity_flipCardLottery_lineIds
  1111. */
  1112. public static function activity_flipCardLottery_lineIds()
  1113. {
  1114. static $a = null;
  1115. return self::initValue($a, 'activity_flipCardLottery_lineIds');
  1116. }
  1117. /**
  1118. * @return \sm_activity_flipCardLottery_lineIds activity_flipCardLottery_lineIds item数据
  1119. */
  1120. public static function activity_flipCardLottery_lineIds_getItem($itemid)
  1121. {
  1122. return self::get_hash_item('activity_flipCardLottery_lineIds', $itemid);
  1123. }
  1124. /**
  1125. * 金蛇献瑞大奖表
  1126. * @return \activity_flipcardlottery_grandreward
  1127. */
  1128. public static function activity_flipcardlottery_grandreward()
  1129. {
  1130. static $a = null;
  1131. return self::initValue($a, 'activity_flipcardlottery_grandreward');
  1132. }
  1133. /**
  1134. * @return \sm_activity_flipcardlottery_grandreward activity_flipcardlottery_grandreward item数据
  1135. */
  1136. public static function activity_flipcardlottery_grandreward_getItem($itemid)
  1137. {
  1138. return self::get_hash_item('activity_flipcardlottery_grandreward', $itemid);
  1139. }
  1140. /**
  1141. * 金蛇累计表
  1142. * @return \activity_flipcardlottery_accumulate
  1143. */
  1144. public static function activity_flipcardlottery_accumulate()
  1145. {
  1146. static $a = null;
  1147. return self::initValue($a, 'activity_flipcardlottery_accumulate');
  1148. }
  1149. /**
  1150. * @return \sm_activity_flipcardlottery_accumulate activity_flipcardlottery_accumulate item数据
  1151. */
  1152. public static function activity_flipcardlottery_accumulate_getItem($itemid)
  1153. {
  1154. return self::get_hash_item('activity_flipcardlottery_accumulate', $itemid);
  1155. }
  1156. /**
  1157. * 金蛇兑换功能表
  1158. * @return \activity_flipcardlottery_exchange
  1159. */
  1160. public static function activity_flipcardlottery_exchange()
  1161. {
  1162. static $a = null;
  1163. return self::initValue($a, 'activity_flipcardlottery_exchange');
  1164. }
  1165. /**
  1166. * @return \sm_activity_flipcardlottery_exchange activity_flipcardlottery_exchange item数据
  1167. */
  1168. public static function activity_flipcardlottery_exchange_getItem($itemid)
  1169. {
  1170. return self::get_hash_item('activity_flipcardlottery_exchange', $itemid);
  1171. }
  1172. /**
  1173. * 世界boss排名奖励
  1174. * @return \worldboss_rankreward
  1175. */
  1176. public static function worldboss_rankreward()
  1177. {
  1178. static $a = null;
  1179. return self::initValue($a, 'worldboss_rankreward');
  1180. }
  1181. /**
  1182. * @return \sm_worldboss_rankreward worldboss_rankreward item数据
  1183. */
  1184. public static function worldboss_rankreward_getItem($itemid)
  1185. {
  1186. return self::get_hash_item('worldboss_rankreward', $itemid);
  1187. }
  1188. /**
  1189. * 世界boss奖励信息
  1190. * @return \worldboss_demagereward
  1191. */
  1192. public static function worldboss_demagereward()
  1193. {
  1194. static $a = null;
  1195. return self::initValue($a, 'worldboss_demagereward');
  1196. }
  1197. /**
  1198. * @return \sm_worldboss_demagereward worldboss_demagereward itemArray
  1199. */
  1200. public static function worldboss_demagereward_getItemArray($key)
  1201. {
  1202. return self::get_hash_item('worldboss_demagereward', $key);
  1203. }
  1204. /**
  1205. * 灵宠表
  1206. * @return \pet
  1207. */
  1208. public static function pet()
  1209. {
  1210. static $a = null;
  1211. return self::initValue($a, 'pet');
  1212. }
  1213. /**
  1214. * @return \sm_pet pet item数据
  1215. */
  1216. public static function pet_getItem($itemid)
  1217. {
  1218. return self::get_hash_item('pet', $itemid);
  1219. }
  1220. /**
  1221. * 灵宠的探索产出数据表
  1222. * @return \pet_exploreoutput
  1223. */
  1224. public static function pet_exploreoutput()
  1225. {
  1226. static $a = null;
  1227. return self::initValue($a, 'pet_exploreoutput');
  1228. }
  1229. /**
  1230. * @return \sm_pet_exploreoutput pet_exploreoutput item数据
  1231. */
  1232. public static function pet_exploreoutput_getItem($typeId, $qual)
  1233. {
  1234. return self::get_hash_item('pet_exploreoutput', "$typeId-$qual");
  1235. }
  1236. /**
  1237. * 灵宠等级表
  1238. * @return \pet_levelupgrade
  1239. */
  1240. public static function pet_levelupgrade()
  1241. {
  1242. static $a = null;
  1243. return self::initValue($a, 'pet_levelupgrade');
  1244. }
  1245. /**
  1246. * @return \sm_pet_levelupgrade pet_levelupgrade item数据
  1247. */
  1248. public static function pet_levelupgrade_getItem($rarity, $qual, $level)
  1249. {
  1250. return self::get_hash_item('pet_levelupgrade', "$rarity-$qual-$level");
  1251. }
  1252. /**
  1253. * 宠物合成表
  1254. * @return \pet_compose
  1255. */
  1256. public static function pet_compose()
  1257. {
  1258. static $a = null;
  1259. return self::initValue($a, 'pet_compose');
  1260. }
  1261. /**
  1262. * @return \sm_pet_compose pet_compose item数据
  1263. */
  1264. public static function pet_compose_getItem($itemid)
  1265. {
  1266. return self::get_hash_item('pet_compose', $itemid);
  1267. }
  1268. /**
  1269. * 宠物蛋
  1270. * @return \pet_egg
  1271. */
  1272. public static function pet_egg()
  1273. {
  1274. static $a = null;
  1275. return self::initValue($a, 'pet_egg');
  1276. }
  1277. /**
  1278. * @return \sm_pet_egg pet_egg item数据
  1279. */
  1280. public static function pet_egg_getItem($itemid)
  1281. {
  1282. return self::get_hash_item('pet_egg', $itemid);
  1283. }
  1284. /**
  1285. * 宠物探索区域表
  1286. * @return \pet_area_level
  1287. */
  1288. public static function pet_area_level()
  1289. {
  1290. static $a = null;
  1291. return self::initValue($a, 'pet_area_level');
  1292. }
  1293. /**
  1294. * @return \sm_pet_area_level pet_area_level item数据
  1295. */
  1296. public static function pet_area_level_getItem($areaId, $level)
  1297. {
  1298. return self::get_hash_item('pet_area_level', "$areaId-$level");
  1299. }
  1300. /**
  1301. *
  1302. * @return \pet_area
  1303. */
  1304. public static function pet_area()
  1305. {
  1306. static $a = null;
  1307. return self::initValue($a, 'pet_area');
  1308. }
  1309. /**
  1310. * @return \sm_pet_area pet_area itemArray
  1311. */
  1312. public static function pet_area_getItemArray($key)
  1313. {
  1314. return self::get_hash_item('pet_area', $key);
  1315. }
  1316. /**
  1317. * 当前版本(时间戳)
  1318. * @return \ver
  1319. */
  1320. public static function ver()
  1321. {
  1322. static $a = null;
  1323. return self::initValue($a, 'ver', false);
  1324. }
  1325. /**
  1326. * 客户端配置数据
  1327. * @return \client
  1328. */
  1329. public static function client()
  1330. {
  1331. static $a = null;
  1332. return self::initValue($a, 'client', false);
  1333. }
  1334. }