GameConfig.php 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344
  1. <?php
  2. ////////////////////
  3. // 由CodeGenerator创建。
  4. // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  5. // author: gwang
  6. // 日期: 2020-09-02 14:55:33
  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. * 初始化指定变量, 非null的情况下直接跳出
  34. * 可能从文件中或者redis中获取原始数据对变量进行初始化
  35. * @param mixed $a 变量
  36. * @param string $modelName 用来初始化变量的资源名称
  37. * @param bool $isHash 数据是否采用hash结构(否:普通字符串)
  38. */
  39. static private function initValue(&$a, $modelName, $isHash = true)
  40. {
  41. $key = 'gamecfg-' . $modelName . self::zoneid();
  42. if (is_null($a)) {
  43. if (self::isCG()) {
  44. $a = include $key . '.php';
  45. } else {
  46. $a = $isHash ? gMem()->hgetall($key) : gMem()->get($key);
  47. }
  48. }
  49. return $a;
  50. }
  51. /**
  52. * 获取hash结构的一个item
  53. * @param string $modelName 模块名称
  54. * @param mixed/string/int $itemId 索引
  55. * @return mixed
  56. */
  57. private static function get_hash_item($modelName, $itemId)
  58. {
  59. if (self::isCG()) {
  60. $data = self::$modelName();
  61. if (property_exists($data, $itemId)) {
  62. return $data->$itemId;
  63. }
  64. } else {
  65. $key = 'gamecfg-' . $modelName . self::zoneid();
  66. return gMem()->hget($key, $itemId);
  67. }
  68. return null;
  69. }
  70. // </editor-fold>
  71. /**
  72. * 全局参数
  73. * @return \globalsettings
  74. */
  75. public static function globalsettings()
  76. {
  77. static $a = null;
  78. return self::initValue($a, 'globalsettings');
  79. }
  80. /**
  81. * 英雄模块
  82. * @return \hero
  83. */
  84. public static function hero()
  85. {
  86. static $a = null;
  87. return self::initValue($a, 'hero');
  88. }
  89. /**
  90. * @return \sm_hero hero item数据
  91. */
  92. public static function hero_getItem($itemid)
  93. {
  94. return self::get_hash_item('hero', $itemid);
  95. }
  96. /**
  97. * 英雄的升级(属性加成)
  98. * @return \heroextra_level
  99. */
  100. public static function heroextra_level()
  101. {
  102. static $a = null;
  103. return self::initValue($a, 'heroextra_level');
  104. }
  105. /**
  106. * @return \sm_heroextra_level heroextra_level item数据
  107. */
  108. public static function heroextra_level_getItem($heroId, $quality)
  109. {
  110. return self::get_hash_item('heroextra_level', $heroId)->$quality;
  111. }
  112. /**
  113. * 开服七天活动
  114. * @return \day7
  115. */
  116. public static function day7()
  117. {
  118. static $a = null;
  119. return self::initValue($a, 'day7');
  120. }
  121. /**
  122. * @return \sm_day7 day7 item数据
  123. */
  124. public static function day7_getItem($itemid)
  125. {
  126. return self::get_hash_item('day7', $itemid);
  127. }
  128. /**
  129. * [废弃]
  130. * @return \item
  131. */
  132. public static function item()
  133. {
  134. static $a = null;
  135. return self::initValue($a, 'item');
  136. }
  137. /**
  138. * @return \sm_item item item数据
  139. */
  140. public static function item_getItem($itemid)
  141. {
  142. return self::get_hash_item('item', $itemid);
  143. }
  144. /**
  145. * [废弃]
  146. * @return \itemlevel
  147. */
  148. public static function itemlevel()
  149. {
  150. static $a = null;
  151. return self::initValue($a, 'itemlevel');
  152. }
  153. /**
  154. * @return \sm_itemlevel itemlevel item数据
  155. */
  156. public static function itemlevel_getItem($itemid)
  157. {
  158. return self::get_hash_item('itemlevel', $itemid);
  159. }
  160. /**
  161. * 英雄的好感度提升(消耗金币)
  162. * @return \heroextra_favor
  163. */
  164. public static function heroextra_favor()
  165. {
  166. static $a = null;
  167. return self::initValue($a, 'heroextra_favor');
  168. }
  169. /**
  170. * @return \sm_heroextra_favor heroextra_favor item数据
  171. */
  172. public static function heroextra_favor_getItem($itemid)
  173. {
  174. return self::get_hash_item('heroextra_favor', $itemid);
  175. }
  176. /**
  177. * 英雄的升级——每级成长消耗经验需求表
  178. * @return \hero_levelexp
  179. */
  180. public static function hero_levelexp()
  181. {
  182. static $a = null;
  183. return self::initValue($a, 'hero_levelexp');
  184. }
  185. /**
  186. * @return \sm_hero_levelexp hero_levelexp item数据
  187. */
  188. public static function hero_levelexp_getItem($itemid)
  189. {
  190. return self::get_hash_item('hero_levelexp', $itemid);
  191. }
  192. /**
  193. * 英雄的升星(消耗金币+ 属性加成)
  194. * @return \heroextra_star
  195. */
  196. public static function heroextra_star()
  197. {
  198. static $a = null;
  199. return self::initValue($a, 'heroextra_star');
  200. }
  201. /**
  202. * @return \sm_heroextra_star heroextra_star item数据
  203. */
  204. public static function heroextra_star_getItem($itemid)
  205. {
  206. return self::get_hash_item('heroextra_star', $itemid);
  207. }
  208. /**
  209. * 英雄的升阶(消耗金币+ 属性加成)
  210. * @return \heroextra_dengjie
  211. */
  212. public static function heroextra_dengjie()
  213. {
  214. static $a = null;
  215. return self::initValue($a, 'heroextra_dengjie');
  216. }
  217. /**
  218. * @return \sm_heroextra_dengjie heroextra_dengjie item数据
  219. */
  220. public static function heroextra_dengjie_getItem($itemid)
  221. {
  222. return self::get_hash_item('heroextra_dengjie', $itemid);
  223. }
  224. /**
  225. * 关卡
  226. * @return \gate
  227. */
  228. public static function gate()
  229. {
  230. static $a = null;
  231. return self::initValue($a, 'gate');
  232. }
  233. /**
  234. * @return \sm_gate gate item数据
  235. */
  236. public static function gate_getItem($itemid)
  237. {
  238. return self::get_hash_item('gate', $itemid);
  239. }
  240. /**
  241. * 关卡波茨数据
  242. * @return \gatelevel
  243. */
  244. public static function gatelevel()
  245. {
  246. static $a = null;
  247. return self::initValue($a, 'gatelevel');
  248. }
  249. /**
  250. * @return \sm_gatelevel gatelevel item数据
  251. */
  252. public static function gatelevel_getItem($itemid)
  253. {
  254. return self::get_hash_item('gatelevel', $itemid);
  255. }
  256. /**
  257. * 关卡—— 星级奖励
  258. * @return \gate_starreward
  259. */
  260. public static function gate_starreward()
  261. {
  262. static $a = null;
  263. return self::initValue($a, 'gate_starreward');
  264. }
  265. /**
  266. * @return \sm_gate_starreward gate_starreward item数据
  267. */
  268. public static function gate_starreward_getItem($chapterId, $hardLevel)
  269. {
  270. return self::get_hash_item('gate_starreward', "$chapterId-$hardLevel");
  271. }
  272. /**
  273. * 任务
  274. * @return \task
  275. */
  276. public static function task()
  277. {
  278. static $a = null;
  279. return self::initValue($a, 'task');
  280. }
  281. /**
  282. * @return \sm_task task item数据
  283. */
  284. public static function task_getItem($itemid)
  285. {
  286. return self::get_hash_item('task', $itemid);
  287. }
  288. /**
  289. *
  290. * @return \playerlevel
  291. */
  292. public static function playerlevel()
  293. {
  294. static $a = null;
  295. return self::initValue($a, 'playerlevel');
  296. }
  297. /**
  298. * @return \sm_playerlevel playerlevel item数据
  299. */
  300. public static function playerlevel_getItem($itemid)
  301. {
  302. return self::get_hash_item('playerlevel', $itemid);
  303. }
  304. /**
  305. * 言灵类道具
  306. * @return \item_yanling
  307. */
  308. public static function item_yanling()
  309. {
  310. static $a = null;
  311. return self::initValue($a, 'item_yanling');
  312. }
  313. /**
  314. * @return \sm_item_yanling item_yanling item数据
  315. */
  316. public static function item_yanling_getItem($itemid)
  317. {
  318. return self::get_hash_item('item_yanling', $itemid);
  319. }
  320. /**
  321. * 技能升级消耗金币
  322. * @return \skill_upgrade_cost
  323. */
  324. public static function skill_upgrade_cost()
  325. {
  326. static $a = null;
  327. return self::initValue($a, 'skill_upgrade_cost');
  328. }
  329. /**
  330. * @return \sm_skill_upgrade_cost skill_upgrade_cost item数据
  331. */
  332. public static function skill_upgrade_cost_getItem($itemid)
  333. {
  334. return self::get_hash_item('skill_upgrade_cost', $itemid);
  335. }
  336. /**
  337. * 商城
  338. * @return \shop
  339. */
  340. public static function shop()
  341. {
  342. static $a = null;
  343. return self::initValue($a, 'shop');
  344. }
  345. /**
  346. * @return \sm_shop shop item数据
  347. */
  348. public static function shop_getItem($itemid)
  349. {
  350. return self::get_hash_item('shop', $itemid);
  351. }
  352. /**
  353. * 停服计划
  354. * @return \service_schedule
  355. */
  356. public static function service_schedule()
  357. {
  358. static $a = null;
  359. return self::initValue($a, 'service_schedule');
  360. }
  361. /**
  362. * @return \sm_service_schedule service_schedule item数据
  363. */
  364. public static function service_schedule_getItem($itemid)
  365. {
  366. return self::get_hash_item('service_schedule', $itemid);
  367. }
  368. /**
  369. * 抽奖数据
  370. * @return \choujiang
  371. */
  372. public static function choujiang()
  373. {
  374. static $a = null;
  375. return self::initValue($a, 'choujiang');
  376. }
  377. /**
  378. * 无穷无尽关卡模式
  379. * @return \gate_forever
  380. */
  381. public static function gate_forever()
  382. {
  383. static $a = null;
  384. return self::initValue($a, 'gate_forever');
  385. }
  386. /**
  387. * @return \sm_gate_forever gate_forever item数据
  388. */
  389. public static function gate_forever_getItem($itemid)
  390. {
  391. return self::get_hash_item('gate_forever', $itemid);
  392. }
  393. /**
  394. * 系统邮件
  395. * @return \sysmail
  396. */
  397. public static function sysmail()
  398. {
  399. static $a = null;
  400. return self::initValue($a, 'sysmail');
  401. }
  402. /**
  403. * @return \sm_sysmail sysmail item数据
  404. */
  405. public static function sysmail_getItem($itemid)
  406. {
  407. return self::get_hash_item('sysmail', $itemid);
  408. }
  409. /**
  410. * 关卡【副本】
  411. * @return \gate_carbon
  412. */
  413. public static function gate_carbon()
  414. {
  415. static $a = null;
  416. return self::initValue($a, 'gate_carbon');
  417. }
  418. /**
  419. * @return \sm_gate_carbon gate_carbon item数据
  420. */
  421. public static function gate_carbon_getItem($itemid)
  422. {
  423. return self::get_hash_item('gate_carbon', $itemid);
  424. }
  425. /**
  426. * 活跃点奖励表
  427. * @return \task_active_reward
  428. */
  429. public static function task_active_reward()
  430. {
  431. static $a = null;
  432. return self::initValue($a, 'task_active_reward');
  433. }
  434. /**
  435. * @return \sm_task_active_reward task_active_reward item数据
  436. */
  437. public static function task_active_reward_getItem($itemid)
  438. {
  439. return self::get_hash_item('task_active_reward', $itemid);
  440. }
  441. /**
  442. * 竞技场 上榜单奖励
  443. * @return \pvp_rankreward
  444. */
  445. public static function pvp_rankreward()
  446. {
  447. static $a = null;
  448. return self::initValue($a, 'pvp_rankreward');
  449. }
  450. /**
  451. * @return \sm_pvp_rankreward pvp_rankreward item数据
  452. */
  453. public static function pvp_rankreward_getItem($itemid)
  454. {
  455. return self::get_hash_item('pvp_rankreward', $itemid);
  456. }
  457. /**
  458. * 竞技 商店
  459. * @return \pvp_shop
  460. */
  461. public static function pvp_shop()
  462. {
  463. static $a = null;
  464. return self::initValue($a, 'pvp_shop');
  465. }
  466. /**
  467. * @return \sm_pvp_shop pvp_shop item数据
  468. */
  469. public static function pvp_shop_getItem($itemid)
  470. {
  471. return self::get_hash_item('pvp_shop', $itemid);
  472. }
  473. /**
  474. * 熔炼实验室
  475. * @return \smelting
  476. */
  477. public static function smelting()
  478. {
  479. static $a = null;
  480. return self::initValue($a, 'smelting');
  481. }
  482. /**
  483. * @return \sm_smelting smelting item数据
  484. */
  485. public static function smelting_getItem($itemid)
  486. {
  487. return self::get_hash_item('smelting', $itemid);
  488. }
  489. /**
  490. * 配置的关卡相关的战斗数据
  491. * @return \gate_combat
  492. */
  493. public static function gate_combat()
  494. {
  495. static $a = null;
  496. return self::initValue($a, 'gate_combat');
  497. }
  498. /**
  499. * @return \sm_gate_combat gate_combat item数据
  500. */
  501. public static function gate_combat_getItem($itemid)
  502. {
  503. return self::get_hash_item('gate_combat', $itemid);
  504. }
  505. /**
  506. * [废弃]
  507. * @return \gate_carbon_content
  508. */
  509. public static function gate_carbon_content()
  510. {
  511. static $a = null;
  512. return self::initValue($a, 'gate_carbon_content');
  513. }
  514. /**
  515. * @return \sm_gate_carbon_content gate_carbon_content item数据
  516. */
  517. public static function gate_carbon_content_getItem($itemid)
  518. {
  519. return self::get_hash_item('gate_carbon_content', $itemid);
  520. }
  521. /**
  522. * 每日任务
  523. * @return \task_daily
  524. */
  525. public static function task_daily()
  526. {
  527. static $a = null;
  528. return self::initValue($a, 'task_daily');
  529. }
  530. /**
  531. * @return \sm_task_daily task_daily item数据
  532. */
  533. public static function task_daily_getItem($itemid)
  534. {
  535. return self::get_hash_item('task_daily', $itemid);
  536. }
  537. /**
  538. * 抽奖保底数据
  539. * @return \choujiang_baodi
  540. */
  541. public static function choujiang_baodi()
  542. {
  543. static $a = null;
  544. return self::initValue($a, 'choujiang_baodi');
  545. }
  546. /**
  547. * @return \sm_choujiang_baodi choujiang_baodi item数据
  548. */
  549. public static function choujiang_baodi_getItem($typeId, $cishu)
  550. {
  551. return self::get_hash_item('choujiang_baodi', "$typeId-$cishu");
  552. }
  553. /**
  554. * 英雄的升级——成长可消耗的道具表
  555. * @return \hero_levelexp_costitem
  556. */
  557. public static function hero_levelexp_costitem()
  558. {
  559. static $a = null;
  560. return self::initValue($a, 'hero_levelexp_costitem');
  561. }
  562. /**
  563. * @return \sm_hero_levelexp_costitem hero_levelexp_costitem item数据
  564. */
  565. public static function hero_levelexp_costitem_getItem($itemid)
  566. {
  567. return self::get_hash_item('hero_levelexp_costitem', $itemid);
  568. }
  569. /**
  570. * 抽奖设置数据
  571. * @return \choujiang_settings
  572. */
  573. public static function choujiang_settings()
  574. {
  575. static $a = null;
  576. return self::initValue($a, 'choujiang_settings');
  577. }
  578. /**
  579. * @return \sm_choujiang_settings choujiang_settings item数据
  580. */
  581. public static function choujiang_settings_getItem($itemid)
  582. {
  583. return self::get_hash_item('choujiang_settings', $itemid);
  584. }
  585. /**
  586. * 引导步骤
  587. * @return \guide_step
  588. */
  589. public static function guide_step()
  590. {
  591. static $a = null;
  592. return self::initValue($a, 'guide_step');
  593. }
  594. /**
  595. * @return \sm_guide_step guide_step item数据
  596. */
  597. public static function guide_step_getItem($itemid)
  598. {
  599. return self::get_hash_item('guide_step', $itemid);
  600. }
  601. /**
  602. * 引导触发
  603. * @return \guide_trigger
  604. */
  605. public static function guide_trigger()
  606. {
  607. static $a = null;
  608. return self::initValue($a, 'guide_trigger');
  609. }
  610. /**
  611. * @return \sm_guide_trigger guide_trigger item数据
  612. */
  613. public static function guide_trigger_getItem($itemid)
  614. {
  615. return self::get_hash_item('guide_trigger', $itemid);
  616. }
  617. /**
  618. * 任务节点
  619. * @return \task_node
  620. */
  621. public static function task_node()
  622. {
  623. static $a = null;
  624. return self::initValue($a, 'task_node');
  625. }
  626. /**
  627. * @return \sm_task_node task_node item数据
  628. */
  629. public static function task_node_getItem($itemid)
  630. {
  631. return self::get_hash_item('task_node', $itemid);
  632. }
  633. /**
  634. * 宝箱
  635. * @return \box
  636. */
  637. public static function box()
  638. {
  639. static $a = null;
  640. return self::initValue($a, 'box');
  641. }
  642. /**
  643. * @return \sm_box box item数据
  644. */
  645. public static function box_getItem($itemid)
  646. {
  647. return self::get_hash_item('box', $itemid);
  648. }
  649. /**
  650. * 宝箱的奖池
  651. * @return \boxpool
  652. */
  653. public static function boxpool()
  654. {
  655. static $a = null;
  656. return self::initValue($a, 'boxpool');
  657. }
  658. /**
  659. * @return \sm_boxpool boxpool item数据
  660. */
  661. public static function boxpool_getItem($itemid)
  662. {
  663. return self::get_hash_item('boxpool', $itemid);
  664. }
  665. /**
  666. * 英雄————神血系统
  667. * @return \heroextra_godblood
  668. */
  669. public static function heroextra_godblood()
  670. {
  671. static $a = null;
  672. return self::initValue($a, 'heroextra_godblood');
  673. }
  674. /**
  675. * @return \sm_heroextra_godblood heroextra_godblood item数据
  676. */
  677. public static function heroextra_godblood_getItem($itemid)
  678. {
  679. return self::get_hash_item('heroextra_godblood', $itemid);
  680. }
  681. /**
  682. * 碎片
  683. * @return \segment
  684. */
  685. public static function segment()
  686. {
  687. static $a = null;
  688. return self::initValue($a, 'segment');
  689. }
  690. /**
  691. * @return \sm_segment segment item数据
  692. */
  693. public static function segment_getItem($itemid)
  694. {
  695. return self::get_hash_item('segment', $itemid);
  696. }
  697. /**
  698. *
  699. * @return \gate_world
  700. */
  701. public static function gate_world()
  702. {
  703. static $a = null;
  704. return self::initValue($a, 'gate_world');
  705. }
  706. /**
  707. * @return \sm_gate_world gate_world item数据
  708. */
  709. public static function gate_world_getItem($itemid)
  710. {
  711. return self::get_hash_item('gate_world', $itemid);
  712. }
  713. /**
  714. * [废弃]
  715. * @return \gate_city
  716. */
  717. public static function gate_city()
  718. {
  719. static $a = null;
  720. return self::initValue($a, 'gate_city');
  721. }
  722. /**
  723. * @return \sm_gate_city gate_city item数据
  724. */
  725. public static function gate_city_getItem($itemid)
  726. {
  727. return self::get_hash_item('gate_city', $itemid);
  728. }
  729. /**
  730. * 神秘商城道具表-by goodstype
  731. * @return \secretshop_goodsType
  732. */
  733. public static function secretshop_goodsType()
  734. {
  735. static $a = null;
  736. return self::initValue($a, 'secretshop_goodsType');
  737. }
  738. /**
  739. * @return \sm_secretshop_goodsType secretshop_goodsType item数据
  740. */
  741. public static function secretshop_goodsType_getItem($itemid)
  742. {
  743. return self::get_hash_item('secretshop_goodsType', $itemid);
  744. }
  745. /**
  746. * 神秘商城刷新价格表
  747. * @return \secretshop_refresh
  748. */
  749. public static function secretshop_refresh()
  750. {
  751. static $a = null;
  752. return self::initValue($a, 'secretshop_refresh');
  753. }
  754. /**
  755. * @return \sm_secretshop_refresh secretshop_refresh item数据
  756. */
  757. public static function secretshop_refresh_getItem($itemid)
  758. {
  759. return self::get_hash_item('secretshop_refresh', $itemid);
  760. }
  761. /**
  762. * 神秘商城道具表-by typeId
  763. * @return \secretshop_typeId
  764. */
  765. public static function secretshop_typeId()
  766. {
  767. static $a = null;
  768. return self::initValue($a, 'secretshop_typeId');
  769. }
  770. /**
  771. * @return \sm_secretshop_typeId secretshop_typeId item数据
  772. */
  773. public static function secretshop_typeId_getItem($itemid)
  774. {
  775. return self::get_hash_item('secretshop_typeId', $itemid);
  776. }
  777. /**
  778. * 客户端版本信息
  779. * @return \clientVersionHistory
  780. */
  781. public static function clientVersionHistory()
  782. {
  783. static $a = null;
  784. return self::initValue($a, 'clientVersionHistory');
  785. }
  786. /**
  787. * @return \sm_clientVersionHistory clientVersionHistory item数据
  788. */
  789. public static function clientVersionHistory_getItem($itemid)
  790. {
  791. return self::get_hash_item('clientVersionHistory', $itemid);
  792. }
  793. /**
  794. * 分区列表
  795. * @return \zonelist
  796. */
  797. public static function zonelist()
  798. {
  799. static $a = null;
  800. return self::initValue($a, 'zonelist');
  801. }
  802. /**
  803. * @return \sm_zonelist zonelist item数据
  804. */
  805. public static function zonelist_getItem($itemid)
  806. {
  807. return self::get_hash_item('zonelist', $itemid);
  808. }
  809. /**
  810. * 兑换码礼包
  811. * @return \tokenGift
  812. */
  813. public static function tokenGift()
  814. {
  815. static $a = null;
  816. return self::initValue($a, 'tokenGift');
  817. }
  818. /**
  819. * @return \sm_tokenGift tokenGift item数据
  820. */
  821. public static function tokenGift_getItem($itemid)
  822. {
  823. return self::get_hash_item('tokenGift', $itemid);
  824. }
  825. /**
  826. * 活动配置
  827. * @return \activity
  828. */
  829. public static function activity()
  830. {
  831. static $a = null;
  832. return self::initValue($a, 'activity');
  833. }
  834. /**
  835. * @return \sm_activity activity item数据
  836. */
  837. public static function activity_getItem($itemid)
  838. {
  839. return self::get_hash_item('activity', $itemid);
  840. }
  841. /**
  842. * 碎片融合的概率表
  843. * @return \segment_ronghe
  844. */
  845. public static function segment_ronghe()
  846. {
  847. static $a = null;
  848. return self::initValue($a, 'segment_ronghe');
  849. }
  850. /**
  851. * @return \sm_segment_ronghe segment_ronghe item数据
  852. */
  853. public static function segment_ronghe_getItem($itemid)
  854. {
  855. return self::get_hash_item('segment_ronghe', $itemid);
  856. }
  857. /**
  858. * 碎片_按品质索引
  859. * @return \segment_byPinzhi
  860. */
  861. public static function segment_byPinzhi()
  862. {
  863. static $a = null;
  864. return self::initValue($a, 'segment_byPinzhi');
  865. }
  866. /**
  867. * @return \sm_segment_byPinzhi segment_byPinzhi item数据
  868. */
  869. public static function segment_byPinzhi_getItem($quailty, $itemType)
  870. {
  871. return self::get_hash_item('segment_byPinzhi', $quailty)->$itemType;
  872. }
  873. /**
  874. * 宝箱经验卡掉落数据
  875. * @return \boxJingYanCards
  876. */
  877. public static function boxJingYanCards()
  878. {
  879. static $a = null;
  880. return self::initValue($a, 'boxJingYanCards');
  881. }
  882. /**
  883. * @return \sm_boxJingYanCards boxJingYanCards item数据
  884. */
  885. public static function boxJingYanCards_getItem($itemid)
  886. {
  887. return self::get_hash_item('boxJingYanCards', $itemid);
  888. }
  889. /**
  890. * 活动: 在线礼包
  891. * @return \activity_onlinegift
  892. */
  893. public static function activity_onlinegift()
  894. {
  895. static $a = null;
  896. return self::initValue($a, 'activity_onlinegift');
  897. }
  898. /**
  899. * @return \sm_activity_onlinegift activity_onlinegift item数据
  900. */
  901. public static function activity_onlinegift_getItem($itemid)
  902. {
  903. return self::get_hash_item('activity_onlinegift', $itemid);
  904. }
  905. /**
  906. * GM号的UID
  907. * @return \GM_uids
  908. */
  909. public static function GM_uids()
  910. {
  911. static $a = null;
  912. return self::initValue($a, 'GM_uids');
  913. }
  914. /**
  915. * 活动, 全服注册礼包
  916. * @return \activity_reggift
  917. */
  918. public static function activity_reggift()
  919. {
  920. static $a = null;
  921. return self::initValue($a, 'activity_reggift');
  922. }
  923. /**
  924. * @return \sm_activity_reggift activity_reggift item数据
  925. */
  926. public static function activity_reggift_getItem($itemid)
  927. {
  928. return self::get_hash_item('activity_reggift', $itemid);
  929. }
  930. /**
  931. * 公会捐献卡牌奖励
  932. * @return \guilddonatereward
  933. */
  934. public static function guilddonatereward()
  935. {
  936. static $a = null;
  937. return self::initValue($a, 'guilddonatereward');
  938. }
  939. /**
  940. * @return \sm_guilddonatereward guilddonatereward item数据
  941. */
  942. public static function guilddonatereward_getItem($itemid)
  943. {
  944. return self::get_hash_item('guilddonatereward', $itemid);
  945. }
  946. /**
  947. * 公会等级相关数据
  948. * @return \guildlevel
  949. */
  950. public static function guildlevel()
  951. {
  952. static $a = null;
  953. return self::initValue($a, 'guildlevel');
  954. }
  955. /**
  956. * @return \sm_guildlevel guildlevel item数据
  957. */
  958. public static function guildlevel_getItem($itemid)
  959. {
  960. return self::get_hash_item('guildlevel', $itemid);
  961. }
  962. /**
  963. * 公会礼包
  964. * @return \guildlibao
  965. */
  966. public static function guildlibao()
  967. {
  968. static $a = null;
  969. return self::initValue($a, 'guildlibao');
  970. }
  971. /**
  972. * @return \sm_guildlibao guildlibao item数据
  973. */
  974. public static function guildlibao_getItem($itemid)
  975. {
  976. return self::get_hash_item('guildlibao', $itemid);
  977. }
  978. /**
  979. * 玩家初始化数据
  980. * @return \primordial_data
  981. */
  982. public static function primordial_data()
  983. {
  984. static $a = null;
  985. return self::initValue($a, 'primordial_data');
  986. }
  987. /**
  988. * 英雄技能升级的限定
  989. * @return \heroextra_skill_lv_limit
  990. */
  991. public static function heroextra_skill_lv_limit()
  992. {
  993. static $a = null;
  994. return self::initValue($a, 'heroextra_skill_lv_limit');
  995. }
  996. /**
  997. * @return \sm_heroextra_skill_lv_limit heroextra_skill_lv_limit item数据
  998. */
  999. public static function heroextra_skill_lv_limit_getItem($itemid)
  1000. {
  1001. return self::get_hash_item('heroextra_skill_lv_limit', $itemid);
  1002. }
  1003. /**
  1004. * 武器类道具
  1005. * @return \item_weapon
  1006. */
  1007. public static function item_weapon()
  1008. {
  1009. static $a = null;
  1010. return self::initValue($a, 'item_weapon');
  1011. }
  1012. /**
  1013. * @return \sm_item_weapon item_weapon item数据
  1014. */
  1015. public static function item_weapon_getItem($itemid)
  1016. {
  1017. return self::get_hash_item('item_weapon', $itemid);
  1018. }
  1019. /**
  1020. * 礼包类道具
  1021. * @return \item_package
  1022. */
  1023. public static function item_package()
  1024. {
  1025. static $a = null;
  1026. return self::initValue($a, 'item_package');
  1027. }
  1028. /**
  1029. * @return \sm_item_package item_package item数据
  1030. */
  1031. public static function item_package_getItem($itemid)
  1032. {
  1033. return self::get_hash_item('item_package', $itemid);
  1034. }
  1035. /**
  1036. * 强化类道具
  1037. * @return \item_stones
  1038. */
  1039. public static function item_stones()
  1040. {
  1041. static $a = null;
  1042. return self::initValue($a, 'item_stones');
  1043. }
  1044. /**
  1045. * @return \sm_item_stones item_stones item数据
  1046. */
  1047. public static function item_stones_getItem($itemid)
  1048. {
  1049. return self::get_hash_item('item_stones', $itemid);
  1050. }
  1051. /**
  1052. * 药水类道具
  1053. * @return \item_pills
  1054. */
  1055. public static function item_pills()
  1056. {
  1057. static $a = null;
  1058. return self::initValue($a, 'item_pills');
  1059. }
  1060. /**
  1061. * @return \sm_item_pills item_pills item数据
  1062. */
  1063. public static function item_pills_getItem($itemid)
  1064. {
  1065. return self::get_hash_item('item_pills', $itemid);
  1066. }
  1067. /**
  1068. * buff类道具
  1069. * @return \item_buffcard
  1070. */
  1071. public static function item_buffcard()
  1072. {
  1073. static $a = null;
  1074. return self::initValue($a, 'item_buffcard');
  1075. }
  1076. /**
  1077. * @return \sm_item_buffcard item_buffcard item数据
  1078. */
  1079. public static function item_buffcard_getItem($itemid)
  1080. {
  1081. return self::get_hash_item('item_buffcard', $itemid);
  1082. }
  1083. /**
  1084. * 碎片类道具
  1085. * @return \item_segment
  1086. */
  1087. public static function item_segment()
  1088. {
  1089. static $a = null;
  1090. return self::initValue($a, 'item_segment');
  1091. }
  1092. /**
  1093. * @return \sm_item_segment item_segment item数据
  1094. */
  1095. public static function item_segment_getItem($itemid)
  1096. {
  1097. return self::get_hash_item('item_segment', $itemid);
  1098. }
  1099. /**
  1100. * 道具通用字段表
  1101. * @return \item_base
  1102. */
  1103. public static function item_base()
  1104. {
  1105. static $a = null;
  1106. return self::initValue($a, 'item_base');
  1107. }
  1108. /**
  1109. * @return \sm_item_base item_base item数据
  1110. */
  1111. public static function item_base_getItem($itemid)
  1112. {
  1113. return self::get_hash_item('item_base', $itemid);
  1114. }
  1115. /**
  1116. * 子技能表
  1117. * @return \subSkill
  1118. */
  1119. public static function subSkill()
  1120. {
  1121. static $a = null;
  1122. return self::initValue($a, 'subSkill');
  1123. }
  1124. /**
  1125. * @return \sm_subSkill subSkill item数据
  1126. */
  1127. public static function subSkill_getItem($itemid)
  1128. {
  1129. return self::get_hash_item('subSkill', $itemid);
  1130. }
  1131. /**
  1132. * 宝箱类道具
  1133. * @return \item_box
  1134. */
  1135. public static function item_box()
  1136. {
  1137. static $a = null;
  1138. return self::initValue($a, 'item_box');
  1139. }
  1140. /**
  1141. * @return \sm_item_box item_box item数据
  1142. */
  1143. public static function item_box_getItem($itemid)
  1144. {
  1145. return self::get_hash_item('item_box', $itemid);
  1146. }
  1147. /**
  1148. * 关卡-通关条件
  1149. * @return \gate_passCondition
  1150. */
  1151. public static function gate_passCondition()
  1152. {
  1153. static $a = null;
  1154. return self::initValue($a, 'gate_passCondition');
  1155. }
  1156. /**
  1157. * @return \sm_gate_passCondition gate_passCondition item数据
  1158. */
  1159. public static function gate_passCondition_getItem($itemid)
  1160. {
  1161. return self::get_hash_item('gate_passCondition', $itemid);
  1162. }
  1163. /**
  1164. * 元素相克关系表
  1165. * @return \attack_relation
  1166. */
  1167. public static function attack_relation()
  1168. {
  1169. static $a = null;
  1170. return self::initValue($a, 'attack_relation');
  1171. }
  1172. /**
  1173. * @return \sm_attack_relation attack_relation item数据
  1174. */
  1175. public static function attack_relation_getItem($attack1, $attack2)
  1176. {
  1177. return self::get_hash_item('attack_relation', "$attack1-$attack2");
  1178. }
  1179. /**
  1180. * 战斗力榜全服突破奖励
  1181. * @return \rankreward_fpower
  1182. */
  1183. public static function rankreward_fpower()
  1184. {
  1185. static $a = null;
  1186. return self::initValue($a, 'rankreward_fpower');
  1187. }
  1188. /**
  1189. * @return \sm_rankreward_fpower rankreward_fpower item数据
  1190. */
  1191. public static function rankreward_fpower_getItem($itemid)
  1192. {
  1193. return self::get_hash_item('rankreward_fpower', $itemid);
  1194. }
  1195. /**
  1196. * 合体技能
  1197. * @return \skill_cross
  1198. */
  1199. public static function skill_cross()
  1200. {
  1201. static $a = null;
  1202. return self::initValue($a, 'skill_cross');
  1203. }
  1204. /**
  1205. * @return \sm_skill_cross skill_cross item数据
  1206. */
  1207. public static function skill_cross_getItem($itemid)
  1208. {
  1209. return self::get_hash_item('skill_cross', $itemid);
  1210. }
  1211. /**
  1212. * 通关榜突破奖励
  1213. * @return \rankreward_passgate
  1214. */
  1215. public static function rankreward_passgate()
  1216. {
  1217. static $a = null;
  1218. return self::initValue($a, 'rankreward_passgate');
  1219. }
  1220. /**
  1221. * @return \sm_rankreward_passgate rankreward_passgate item数据
  1222. */
  1223. public static function rankreward_passgate_getItem($itemid)
  1224. {
  1225. return self::get_hash_item('rankreward_passgate', $itemid);
  1226. }
  1227. /**
  1228. * 言灵召唤书
  1229. * @return \item_yanlingbook
  1230. */
  1231. public static function item_yanlingbook()
  1232. {
  1233. static $a = null;
  1234. return self::initValue($a, 'item_yanlingbook');
  1235. }
  1236. /**
  1237. * @return \sm_item_yanlingbook item_yanlingbook item数据
  1238. */
  1239. public static function item_yanlingbook_getItem($itemid)
  1240. {
  1241. return self::get_hash_item('item_yanlingbook', $itemid);
  1242. }
  1243. /**
  1244. * 言灵进阶表
  1245. * @return \yanling_upgrade
  1246. */
  1247. public static function yanling_upgrade()
  1248. {
  1249. static $a = null;
  1250. return self::initValue($a, 'yanling_upgrade');
  1251. }
  1252. /**
  1253. * @return \sm_yanling_upgrade yanling_upgrade item数据
  1254. */
  1255. public static function yanling_upgrade_getItem($typeId, $grade)
  1256. {
  1257. return self::get_hash_item('yanling_upgrade', $typeId)->$grade;
  1258. }
  1259. /**
  1260. * 功能引导模块
  1261. * @return \guide_module
  1262. */
  1263. public static function guide_module()
  1264. {
  1265. static $a = null;
  1266. return self::initValue($a, 'guide_module');
  1267. }
  1268. /**
  1269. * @return \sm_guide_module guide_module item数据
  1270. */
  1271. public static function guide_module_getItem($itemid)
  1272. {
  1273. return self::get_hash_item('guide_module', $itemid);
  1274. }
  1275. /**
  1276. * 活动: 七日签到
  1277. * @return \activity_day7
  1278. */
  1279. public static function activity_day7()
  1280. {
  1281. static $a = null;
  1282. return self::initValue($a, 'activity_day7');
  1283. }
  1284. /**
  1285. * @return \sm_activity_day7 activity_day7 item数据
  1286. */
  1287. public static function activity_day7_getItem($itemid)
  1288. {
  1289. return self::get_hash_item('activity_day7', $itemid);
  1290. }
  1291. /**
  1292. * 限购商城
  1293. * @return \shop_limit
  1294. */
  1295. public static function shop_limit()
  1296. {
  1297. static $a = null;
  1298. return self::initValue($a, 'shop_limit');
  1299. }
  1300. /**
  1301. * @return \sm_shop_limit shop_limit item数据
  1302. */
  1303. public static function shop_limit_getItem($itemid)
  1304. {
  1305. return self::get_hash_item('shop_limit', $itemid);
  1306. }
  1307. /**
  1308. * 月卡商城
  1309. * @return \shop_monthVIP
  1310. */
  1311. public static function shop_monthVIP()
  1312. {
  1313. static $a = null;
  1314. return self::initValue($a, 'shop_monthVIP');
  1315. }
  1316. /**
  1317. * @return \sm_shop_monthVIP shop_monthVIP item数据
  1318. */
  1319. public static function shop_monthVIP_getItem($itemid)
  1320. {
  1321. return self::get_hash_item('shop_monthVIP', $itemid);
  1322. }
  1323. /**
  1324. * 当前版本(时间戳)
  1325. * @return \ver
  1326. */
  1327. public static function ver()
  1328. {
  1329. static $a = null;
  1330. return self::initValue($a, 'ver', false);
  1331. }
  1332. /**
  1333. * 客户端配置数据
  1334. * @return \client
  1335. */
  1336. public static function client()
  1337. {
  1338. static $a = null;
  1339. return self::initValue($a, 'client', false);
  1340. }
  1341. }