GameConfig.php 29 KB

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