GameConfig.php 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389
  1. <?php
  2. ////////////////////
  3. // 由CodeGenerator创建。
  4. // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  5. // author: gwang
  6. // 日期: 2025-04-24 16:06:45
  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 \activity_flipCardLottery_lineIds
  1112. */
  1113. public static function activity_flipCardLottery_lineIds()
  1114. {
  1115. static $a = null;
  1116. return self::initValue($a, 'activity_flipCardLottery_lineIds');
  1117. }
  1118. /**
  1119. * @return \sm_activity_flipCardLottery_lineIds activity_flipCardLottery_lineIds item数据
  1120. */
  1121. public static function activity_flipCardLottery_lineIds_getItem($itemid)
  1122. {
  1123. return self::get_hash_item('activity_flipCardLottery_lineIds', $itemid);
  1124. }
  1125. /**
  1126. * 金蛇献瑞大奖表
  1127. * @return \activity_flipcardlottery_grandreward
  1128. */
  1129. public static function activity_flipcardlottery_grandreward()
  1130. {
  1131. static $a = null;
  1132. return self::initValue($a, 'activity_flipcardlottery_grandreward');
  1133. }
  1134. /**
  1135. * @return \sm_activity_flipcardlottery_grandreward activity_flipcardlottery_grandreward item数据
  1136. */
  1137. public static function activity_flipcardlottery_grandreward_getItem($itemid)
  1138. {
  1139. return self::get_hash_item('activity_flipcardlottery_grandreward', $itemid);
  1140. }
  1141. /**
  1142. * 金蛇累计表
  1143. * @return \activity_flipcardlottery_accumulate
  1144. */
  1145. public static function activity_flipcardlottery_accumulate()
  1146. {
  1147. static $a = null;
  1148. return self::initValue($a, 'activity_flipcardlottery_accumulate');
  1149. }
  1150. /**
  1151. * @return \sm_activity_flipcardlottery_accumulate activity_flipcardlottery_accumulate item数据
  1152. */
  1153. public static function activity_flipcardlottery_accumulate_getItem($itemid)
  1154. {
  1155. return self::get_hash_item('activity_flipcardlottery_accumulate', $itemid);
  1156. }
  1157. /**
  1158. * 金蛇兑换功能表
  1159. * @return \activity_flipcardlottery_exchange
  1160. */
  1161. public static function activity_flipcardlottery_exchange()
  1162. {
  1163. static $a = null;
  1164. return self::initValue($a, 'activity_flipcardlottery_exchange');
  1165. }
  1166. /**
  1167. * @return \sm_activity_flipcardlottery_exchange activity_flipcardlottery_exchange item数据
  1168. */
  1169. public static function activity_flipcardlottery_exchange_getItem($itemid)
  1170. {
  1171. return self::get_hash_item('activity_flipcardlottery_exchange', $itemid);
  1172. }
  1173. /**
  1174. * 世界boss排名奖励
  1175. * @return \worldboss_rankreward
  1176. */
  1177. public static function worldboss_rankreward()
  1178. {
  1179. static $a = null;
  1180. return self::initValue($a, 'worldboss_rankreward');
  1181. }
  1182. /**
  1183. * @return \sm_worldboss_rankreward worldboss_rankreward item数据
  1184. */
  1185. public static function worldboss_rankreward_getItem($itemid)
  1186. {
  1187. return self::get_hash_item('worldboss_rankreward', $itemid);
  1188. }
  1189. /**
  1190. * 世界boss奖励信息
  1191. * @return \worldboss_demagereward
  1192. */
  1193. public static function worldboss_demagereward()
  1194. {
  1195. static $a = null;
  1196. return self::initValue($a, 'worldboss_demagereward');
  1197. }
  1198. /**
  1199. * @return \sm_worldboss_demagereward worldboss_demagereward itemArray
  1200. */
  1201. public static function worldboss_demagereward_getItemArray($key)
  1202. {
  1203. return self::get_hash_item('worldboss_demagereward', $key);
  1204. }
  1205. /**
  1206. * 灵宠表
  1207. * @return \pet
  1208. */
  1209. public static function pet()
  1210. {
  1211. static $a = null;
  1212. return self::initValue($a, 'pet');
  1213. }
  1214. /**
  1215. * @return \sm_pet pet item数据
  1216. */
  1217. public static function pet_getItem($itemid)
  1218. {
  1219. return self::get_hash_item('pet', $itemid);
  1220. }
  1221. /**
  1222. * 灵宠的探索产出数据表
  1223. * @return \pet_exploreoutput
  1224. */
  1225. public static function pet_exploreoutput()
  1226. {
  1227. static $a = null;
  1228. return self::initValue($a, 'pet_exploreoutput');
  1229. }
  1230. /**
  1231. * @return \sm_pet_exploreoutput pet_exploreoutput item数据
  1232. */
  1233. public static function pet_exploreoutput_getItem($typeId, $qual)
  1234. {
  1235. return self::get_hash_item('pet_exploreoutput', "$typeId-$qual");
  1236. }
  1237. /**
  1238. * 灵宠等级表
  1239. * @return \pet_levelupgrade
  1240. */
  1241. public static function pet_levelupgrade()
  1242. {
  1243. static $a = null;
  1244. return self::initValue($a, 'pet_levelupgrade');
  1245. }
  1246. /**
  1247. * @return \sm_pet_levelupgrade pet_levelupgrade item数据
  1248. */
  1249. public static function pet_levelupgrade_getItem($rarity, $qual, $level)
  1250. {
  1251. return self::get_hash_item('pet_levelupgrade', "$rarity-$qual-$level");
  1252. }
  1253. /**
  1254. * 宠物合成表
  1255. * @return \pet_compose
  1256. */
  1257. public static function pet_compose()
  1258. {
  1259. static $a = null;
  1260. return self::initValue($a, 'pet_compose');
  1261. }
  1262. /**
  1263. * @return \sm_pet_compose pet_compose item数据
  1264. */
  1265. public static function pet_compose_getItem($itemid)
  1266. {
  1267. return self::get_hash_item('pet_compose', $itemid);
  1268. }
  1269. /**
  1270. * 宠物蛋
  1271. * @return \pet_egg
  1272. */
  1273. public static function pet_egg()
  1274. {
  1275. static $a = null;
  1276. return self::initValue($a, 'pet_egg');
  1277. }
  1278. /**
  1279. * @return \sm_pet_egg pet_egg item数据
  1280. */
  1281. public static function pet_egg_getItem($itemid)
  1282. {
  1283. return self::get_hash_item('pet_egg', $itemid);
  1284. }
  1285. /**
  1286. * 宠物探索区域表
  1287. * @return \pet_area_level
  1288. */
  1289. public static function pet_area_level()
  1290. {
  1291. static $a = null;
  1292. return self::initValue($a, 'pet_area_level');
  1293. }
  1294. /**
  1295. * @return \sm_pet_area_level pet_area_level item数据
  1296. */
  1297. public static function pet_area_level_getItem($areaId, $level)
  1298. {
  1299. return self::get_hash_item('pet_area_level', "$areaId-$level");
  1300. }
  1301. /**
  1302. *
  1303. * @return \pet_area
  1304. */
  1305. public static function pet_area()
  1306. {
  1307. static $a = null;
  1308. return self::initValue($a, 'pet_area');
  1309. }
  1310. /**
  1311. * @return \sm_pet_area pet_area itemArray
  1312. */
  1313. public static function pet_area_getItemArray($key)
  1314. {
  1315. return self::get_hash_item('pet_area', $key);
  1316. }
  1317. /**
  1318. * 宠物属性
  1319. * @return \pet_attr
  1320. */
  1321. public static function pet_attr()
  1322. {
  1323. static $a = null;
  1324. return self::initValue($a, 'pet_attr');
  1325. }
  1326. /**
  1327. * @return \sm_pet_attr pet_attr item数据
  1328. */
  1329. public static function pet_attr_getItem($rarity, $qual)
  1330. {
  1331. return self::get_hash_item('pet_attr', "$rarity-$qual");
  1332. }
  1333. /**
  1334. * 世家boss轮次表
  1335. * @return \worldboss_turnnum
  1336. */
  1337. public static function worldboss_turnnum()
  1338. {
  1339. static $a = null;
  1340. return self::initValue($a, 'worldboss_turnnum');
  1341. }
  1342. /**
  1343. * @return \sm_worldboss_turnnum worldboss_turnnum item数据
  1344. */
  1345. public static function worldboss_turnnum_getItem($itemid)
  1346. {
  1347. return self::get_hash_item('worldboss_turnnum', $itemid);
  1348. }
  1349. /**
  1350. * 宠物技能
  1351. * @return \pet_skills
  1352. */
  1353. public static function pet_skills()
  1354. {
  1355. static $a = null;
  1356. return self::initValue($a, 'pet_skills');
  1357. }
  1358. /**
  1359. * @return \sm_pet_skills pet_skills item数据
  1360. */
  1361. public static function pet_skills_getItem($itemid)
  1362. {
  1363. return self::get_hash_item('pet_skills', $itemid);
  1364. }
  1365. /**
  1366. * 当前版本(时间戳)
  1367. * @return \ver
  1368. */
  1369. public static function ver()
  1370. {
  1371. static $a = null;
  1372. return self::initValue($a, 'ver', false);
  1373. }
  1374. /**
  1375. * 客户端配置数据
  1376. * @return \client
  1377. */
  1378. public static function client()
  1379. {
  1380. static $a = null;
  1381. return self::initValue($a, 'client', false);
  1382. }
  1383. }