GameConfig.php 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399
  1. <?php
  2. ////////////////////
  3. // 由CodeGenerator创建。
  4. // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  5. // author: gwang
  6. // 日期: 2020-11-24 11:26:16
  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 \task_step
  371. */
  372. public static function task_step()
  373. {
  374. static $a = null;
  375. return self::initValue($a, 'task_step');
  376. }
  377. /**
  378. * @return \sm_task_step task_step item数据
  379. */
  380. public static function task_step_getItem($itemid)
  381. {
  382. return self::get_hash_item('task_step', $itemid);
  383. }
  384. /**
  385. * 任务卡
  386. * @return \item_taskcard
  387. */
  388. public static function item_taskcard()
  389. {
  390. static $a = null;
  391. return self::initValue($a, 'item_taskcard');
  392. }
  393. /**
  394. * @return \sm_item_taskcard item_taskcard item数据
  395. */
  396. public static function item_taskcard_getItem($itemid)
  397. {
  398. return self::get_hash_item('item_taskcard', $itemid);
  399. }
  400. /**
  401. * 无穷无尽关卡模式
  402. * @return \gate_forever
  403. */
  404. public static function gate_forever()
  405. {
  406. static $a = null;
  407. return self::initValue($a, 'gate_forever');
  408. }
  409. /**
  410. * @return \sm_gate_forever gate_forever item数据
  411. */
  412. public static function gate_forever_getItem($itemid)
  413. {
  414. return self::get_hash_item('gate_forever', $itemid);
  415. }
  416. /**
  417. * 系统邮件
  418. * @return \sysmail
  419. */
  420. public static function sysmail()
  421. {
  422. static $a = null;
  423. return self::initValue($a, 'sysmail');
  424. }
  425. /**
  426. * @return \sm_sysmail sysmail item数据
  427. */
  428. public static function sysmail_getItem($itemid)
  429. {
  430. return self::get_hash_item('sysmail', $itemid);
  431. }
  432. /**
  433. * 言灵附加随机表
  434. * @return \item_additional
  435. */
  436. public static function item_additional()
  437. {
  438. static $a = null;
  439. return self::initValue($a, 'item_additional');
  440. }
  441. /**
  442. * @return \sm_item_additional item_additional item数据
  443. */
  444. public static function item_additional_getItem($itemid)
  445. {
  446. return self::get_hash_item('item_additional', $itemid);
  447. }
  448. /**
  449. * 活跃点奖励表
  450. * @return \task_active_reward
  451. */
  452. public static function task_active_reward()
  453. {
  454. static $a = null;
  455. return self::initValue($a, 'task_active_reward');
  456. }
  457. /**
  458. * @return \sm_task_active_reward task_active_reward item数据
  459. */
  460. public static function task_active_reward_getItem($itemid)
  461. {
  462. return self::get_hash_item('task_active_reward', $itemid);
  463. }
  464. /**
  465. * 竞技场 上榜单奖励
  466. * @return \pvp_rankreward
  467. */
  468. public static function pvp_rankreward()
  469. {
  470. static $a = null;
  471. return self::initValue($a, 'pvp_rankreward');
  472. }
  473. /**
  474. * @return \sm_pvp_rankreward pvp_rankreward item数据
  475. */
  476. public static function pvp_rankreward_getItem($itemid)
  477. {
  478. return self::get_hash_item('pvp_rankreward', $itemid);
  479. }
  480. /**
  481. * 竞技 商店
  482. * @return \pvp_shop
  483. */
  484. public static function pvp_shop()
  485. {
  486. static $a = null;
  487. return self::initValue($a, 'pvp_shop');
  488. }
  489. /**
  490. * @return \sm_pvp_shop pvp_shop item数据
  491. */
  492. public static function pvp_shop_getItem($itemid)
  493. {
  494. return self::get_hash_item('pvp_shop', $itemid);
  495. }
  496. /**
  497. * 熔炼实验室
  498. * @return \smelting
  499. */
  500. public static function smelting()
  501. {
  502. static $a = null;
  503. return self::initValue($a, 'smelting');
  504. }
  505. /**
  506. * @return \sm_smelting smelting item数据
  507. */
  508. public static function smelting_getItem($itemid)
  509. {
  510. return self::get_hash_item('smelting', $itemid);
  511. }
  512. /**
  513. * 配置的关卡相关的战斗数据
  514. * @return \gate_combat
  515. */
  516. public static function gate_combat()
  517. {
  518. static $a = null;
  519. return self::initValue($a, 'gate_combat');
  520. }
  521. /**
  522. * @return \sm_gate_combat gate_combat item数据
  523. */
  524. public static function gate_combat_getItem($itemid)
  525. {
  526. return self::get_hash_item('gate_combat', $itemid);
  527. }
  528. /**
  529. * [废弃]
  530. * @return \gate_carbon_content
  531. */
  532. public static function gate_carbon_content()
  533. {
  534. static $a = null;
  535. return self::initValue($a, 'gate_carbon_content');
  536. }
  537. /**
  538. * @return \sm_gate_carbon_content gate_carbon_content item数据
  539. */
  540. public static function gate_carbon_content_getItem($itemid)
  541. {
  542. return self::get_hash_item('gate_carbon_content', $itemid);
  543. }
  544. /**
  545. * 每日任务
  546. * @return \task_daily
  547. */
  548. public static function task_daily()
  549. {
  550. static $a = null;
  551. return self::initValue($a, 'task_daily');
  552. }
  553. /**
  554. * @return \sm_task_daily task_daily item数据
  555. */
  556. public static function task_daily_getItem($itemid)
  557. {
  558. return self::get_hash_item('task_daily', $itemid);
  559. }
  560. /**
  561. * 抽奖保底数据
  562. * @return \choujiang_baodi
  563. */
  564. public static function choujiang_baodi()
  565. {
  566. static $a = null;
  567. return self::initValue($a, 'choujiang_baodi');
  568. }
  569. /**
  570. * @return \sm_choujiang_baodi choujiang_baodi item数据
  571. */
  572. public static function choujiang_baodi_getItem($typeId, $cishu)
  573. {
  574. return self::get_hash_item('choujiang_baodi', "$typeId-$cishu");
  575. }
  576. /**
  577. * 英雄的升级——成长可消耗的道具表
  578. * @return \hero_levelexp_costitem
  579. */
  580. public static function hero_levelexp_costitem()
  581. {
  582. static $a = null;
  583. return self::initValue($a, 'hero_levelexp_costitem');
  584. }
  585. /**
  586. * @return \sm_hero_levelexp_costitem hero_levelexp_costitem item数据
  587. */
  588. public static function hero_levelexp_costitem_getItem($itemid)
  589. {
  590. return self::get_hash_item('hero_levelexp_costitem', $itemid);
  591. }
  592. /**
  593. * 抽奖设置数据
  594. * @return \choujiang_settings
  595. */
  596. public static function choujiang_settings()
  597. {
  598. static $a = null;
  599. return self::initValue($a, 'choujiang_settings');
  600. }
  601. /**
  602. * @return \sm_choujiang_settings choujiang_settings item数据
  603. */
  604. public static function choujiang_settings_getItem($itemid)
  605. {
  606. return self::get_hash_item('choujiang_settings', $itemid);
  607. }
  608. /**
  609. * 引导步骤
  610. * @return \guide_step
  611. */
  612. public static function guide_step()
  613. {
  614. static $a = null;
  615. return self::initValue($a, 'guide_step');
  616. }
  617. /**
  618. * @return \sm_guide_step guide_step item数据
  619. */
  620. public static function guide_step_getItem($itemid)
  621. {
  622. return self::get_hash_item('guide_step', $itemid);
  623. }
  624. /**
  625. * 引导触发
  626. * @return \guide_trigger
  627. */
  628. public static function guide_trigger()
  629. {
  630. static $a = null;
  631. return self::initValue($a, 'guide_trigger');
  632. }
  633. /**
  634. * @return \sm_guide_trigger guide_trigger item数据
  635. */
  636. public static function guide_trigger_getItem($itemid)
  637. {
  638. return self::get_hash_item('guide_trigger', $itemid);
  639. }
  640. /**
  641. * 任务节点
  642. * @return \task_node
  643. */
  644. public static function task_node()
  645. {
  646. static $a = null;
  647. return self::initValue($a, 'task_node');
  648. }
  649. /**
  650. * @return \sm_task_node task_node item数据
  651. */
  652. public static function task_node_getItem($itemid)
  653. {
  654. return self::get_hash_item('task_node', $itemid);
  655. }
  656. /**
  657. * 宝箱
  658. * @return \box
  659. */
  660. public static function box()
  661. {
  662. static $a = null;
  663. return self::initValue($a, 'box');
  664. }
  665. /**
  666. * @return \sm_box box item数据
  667. */
  668. public static function box_getItem($itemid)
  669. {
  670. return self::get_hash_item('box', $itemid);
  671. }
  672. /**
  673. * 宝箱的奖池
  674. * @return \boxpool
  675. */
  676. public static function boxpool()
  677. {
  678. static $a = null;
  679. return self::initValue($a, 'boxpool');
  680. }
  681. /**
  682. * @return \sm_boxpool boxpool item数据
  683. */
  684. public static function boxpool_getItem($itemid)
  685. {
  686. return self::get_hash_item('boxpool', $itemid);
  687. }
  688. /**
  689. * 英雄————神血系统
  690. * @return \heroextra_godblood
  691. */
  692. public static function heroextra_godblood()
  693. {
  694. static $a = null;
  695. return self::initValue($a, 'heroextra_godblood');
  696. }
  697. /**
  698. * @return \sm_heroextra_godblood heroextra_godblood item数据
  699. */
  700. public static function heroextra_godblood_getItem($itemid)
  701. {
  702. return self::get_hash_item('heroextra_godblood', $itemid);
  703. }
  704. /**
  705. * 碎片
  706. * @return \segment
  707. */
  708. public static function segment()
  709. {
  710. static $a = null;
  711. return self::initValue($a, 'segment');
  712. }
  713. /**
  714. * @return \sm_segment segment item数据
  715. */
  716. public static function segment_getItem($itemid)
  717. {
  718. return self::get_hash_item('segment', $itemid);
  719. }
  720. /**
  721. *
  722. * @return \gate_world
  723. */
  724. public static function gate_world()
  725. {
  726. static $a = null;
  727. return self::initValue($a, 'gate_world');
  728. }
  729. /**
  730. * @return \sm_gate_world gate_world item数据
  731. */
  732. public static function gate_world_getItem($itemid)
  733. {
  734. return self::get_hash_item('gate_world', $itemid);
  735. }
  736. /**
  737. * [废弃]
  738. * @return \gate_city
  739. */
  740. public static function gate_city()
  741. {
  742. static $a = null;
  743. return self::initValue($a, 'gate_city');
  744. }
  745. /**
  746. * @return \sm_gate_city gate_city item数据
  747. */
  748. public static function gate_city_getItem($itemid)
  749. {
  750. return self::get_hash_item('gate_city', $itemid);
  751. }
  752. /**
  753. * 神秘商城道具表-by goodstype
  754. * @return \secretshop_goodsType
  755. */
  756. public static function secretshop_goodsType()
  757. {
  758. static $a = null;
  759. return self::initValue($a, 'secretshop_goodsType');
  760. }
  761. /**
  762. * @return \sm_secretshop_goodsType secretshop_goodsType item数据
  763. */
  764. public static function secretshop_goodsType_getItem($itemid)
  765. {
  766. return self::get_hash_item('secretshop_goodsType', $itemid);
  767. }
  768. /**
  769. * 神秘商城刷新价格表
  770. * @return \secretshop_refresh
  771. */
  772. public static function secretshop_refresh()
  773. {
  774. static $a = null;
  775. return self::initValue($a, 'secretshop_refresh');
  776. }
  777. /**
  778. * @return \sm_secretshop_refresh secretshop_refresh item数据
  779. */
  780. public static function secretshop_refresh_getItem($itemid)
  781. {
  782. return self::get_hash_item('secretshop_refresh', $itemid);
  783. }
  784. /**
  785. * 神秘商城道具表-by typeId
  786. * @return \secretshop_typeId
  787. */
  788. public static function secretshop_typeId()
  789. {
  790. static $a = null;
  791. return self::initValue($a, 'secretshop_typeId');
  792. }
  793. /**
  794. * @return \sm_secretshop_typeId secretshop_typeId item数据
  795. */
  796. public static function secretshop_typeId_getItem($itemid)
  797. {
  798. return self::get_hash_item('secretshop_typeId', $itemid);
  799. }
  800. /**
  801. * 客户端版本信息
  802. * @return \clientVersionHistory
  803. */
  804. public static function clientVersionHistory()
  805. {
  806. static $a = null;
  807. return self::initValue($a, 'clientVersionHistory');
  808. }
  809. /**
  810. * @return \sm_clientVersionHistory clientVersionHistory item数据
  811. */
  812. public static function clientVersionHistory_getItem($itemid)
  813. {
  814. return self::get_hash_item('clientVersionHistory', $itemid);
  815. }
  816. /**
  817. * 分区列表
  818. * @return \zonelist
  819. */
  820. public static function zonelist()
  821. {
  822. static $a = null;
  823. return self::initValue($a, 'zonelist');
  824. }
  825. /**
  826. * @return \sm_zonelist zonelist item数据
  827. */
  828. public static function zonelist_getItem($itemid)
  829. {
  830. return self::get_hash_item('zonelist', $itemid);
  831. }
  832. /**
  833. * 兑换码礼包
  834. * @return \tokenGift
  835. */
  836. public static function tokenGift()
  837. {
  838. static $a = null;
  839. return self::initValue($a, 'tokenGift');
  840. }
  841. /**
  842. * @return \sm_tokenGift tokenGift item数据
  843. */
  844. public static function tokenGift_getItem($itemid)
  845. {
  846. return self::get_hash_item('tokenGift', $itemid);
  847. }
  848. /**
  849. * 活动配置
  850. * @return \activity
  851. */
  852. public static function activity()
  853. {
  854. static $a = null;
  855. return self::initValue($a, 'activity');
  856. }
  857. /**
  858. * @return \sm_activity activity item数据
  859. */
  860. public static function activity_getItem($itemid)
  861. {
  862. return self::get_hash_item('activity', $itemid);
  863. }
  864. /**
  865. * 碎片融合的概率表
  866. * @return \segment_ronghe
  867. */
  868. public static function segment_ronghe()
  869. {
  870. static $a = null;
  871. return self::initValue($a, 'segment_ronghe');
  872. }
  873. /**
  874. * @return \sm_segment_ronghe segment_ronghe item数据
  875. */
  876. public static function segment_ronghe_getItem($itemid)
  877. {
  878. return self::get_hash_item('segment_ronghe', $itemid);
  879. }
  880. /**
  881. * 碎片_按品质索引
  882. * @return \segment_byPinzhi
  883. */
  884. public static function segment_byPinzhi()
  885. {
  886. static $a = null;
  887. return self::initValue($a, 'segment_byPinzhi');
  888. }
  889. /**
  890. * @return \sm_segment_byPinzhi segment_byPinzhi item数据
  891. */
  892. public static function segment_byPinzhi_getItem($quailty, $itemType)
  893. {
  894. return self::get_hash_item('segment_byPinzhi', $quailty)->$itemType;
  895. }
  896. /**
  897. * 宝箱经验卡掉落数据
  898. * @return \boxJingYanCards
  899. */
  900. public static function boxJingYanCards()
  901. {
  902. static $a = null;
  903. return self::initValue($a, 'boxJingYanCards');
  904. }
  905. /**
  906. * @return \sm_boxJingYanCards boxJingYanCards item数据
  907. */
  908. public static function boxJingYanCards_getItem($itemid)
  909. {
  910. return self::get_hash_item('boxJingYanCards', $itemid);
  911. }
  912. /**
  913. * 活动: 在线礼包
  914. * @return \activity_onlinegift
  915. */
  916. public static function activity_onlinegift()
  917. {
  918. static $a = null;
  919. return self::initValue($a, 'activity_onlinegift');
  920. }
  921. /**
  922. * @return \sm_activity_onlinegift activity_onlinegift item数据
  923. */
  924. public static function activity_onlinegift_getItem($itemid)
  925. {
  926. return self::get_hash_item('activity_onlinegift', $itemid);
  927. }
  928. /**
  929. * GM号的UID
  930. * @return \GM_uids
  931. */
  932. public static function GM_uids()
  933. {
  934. static $a = null;
  935. return self::initValue($a, 'GM_uids');
  936. }
  937. /**
  938. * 活动, 全服注册礼包
  939. * @return \activity_reggift
  940. */
  941. public static function activity_reggift()
  942. {
  943. static $a = null;
  944. return self::initValue($a, 'activity_reggift');
  945. }
  946. /**
  947. * @return \sm_activity_reggift activity_reggift item数据
  948. */
  949. public static function activity_reggift_getItem($itemid)
  950. {
  951. return self::get_hash_item('activity_reggift', $itemid);
  952. }
  953. /**
  954. * 错误信息表
  955. * @return \errmsg
  956. */
  957. public static function errmsg()
  958. {
  959. static $a = null;
  960. return self::initValue($a, 'errmsg');
  961. }
  962. /**
  963. * @return \sm_errmsg errmsg item数据
  964. */
  965. public static function errmsg_getItem($itemid)
  966. {
  967. return self::get_hash_item('errmsg', $itemid);
  968. }
  969. /**
  970. * 公会捐献卡牌奖励
  971. * @return \guilddonatereward
  972. */
  973. public static function guilddonatereward()
  974. {
  975. static $a = null;
  976. return self::initValue($a, 'guilddonatereward');
  977. }
  978. /**
  979. * @return \sm_guilddonatereward guilddonatereward item数据
  980. */
  981. public static function guilddonatereward_getItem($itemid)
  982. {
  983. return self::get_hash_item('guilddonatereward', $itemid);
  984. }
  985. /**
  986. * 公会等级相关数据
  987. * @return \guildlevel
  988. */
  989. public static function guildlevel()
  990. {
  991. static $a = null;
  992. return self::initValue($a, 'guildlevel');
  993. }
  994. /**
  995. * @return \sm_guildlevel guildlevel item数据
  996. */
  997. public static function guildlevel_getItem($itemid)
  998. {
  999. return self::get_hash_item('guildlevel', $itemid);
  1000. }
  1001. /**
  1002. * 公会礼包
  1003. * @return \guildlibao
  1004. */
  1005. public static function guildlibao()
  1006. {
  1007. static $a = null;
  1008. return self::initValue($a, 'guildlibao');
  1009. }
  1010. /**
  1011. * @return \sm_guildlibao guildlibao item数据
  1012. */
  1013. public static function guildlibao_getItem($itemid)
  1014. {
  1015. return self::get_hash_item('guildlibao', $itemid);
  1016. }
  1017. /**
  1018. * 玩家初始化数据
  1019. * @return \primordial_data
  1020. */
  1021. public static function primordial_data()
  1022. {
  1023. static $a = null;
  1024. return self::initValue($a, 'primordial_data');
  1025. }
  1026. /**
  1027. * 英雄技能升级的限定
  1028. * @return \heroextra_skill_lv_limit
  1029. */
  1030. public static function heroextra_skill_lv_limit()
  1031. {
  1032. static $a = null;
  1033. return self::initValue($a, 'heroextra_skill_lv_limit');
  1034. }
  1035. /**
  1036. * @return \sm_heroextra_skill_lv_limit heroextra_skill_lv_limit item数据
  1037. */
  1038. public static function heroextra_skill_lv_limit_getItem($itemid)
  1039. {
  1040. return self::get_hash_item('heroextra_skill_lv_limit', $itemid);
  1041. }
  1042. /**
  1043. * 武器类道具
  1044. * @return \item_weapon
  1045. */
  1046. public static function item_weapon()
  1047. {
  1048. static $a = null;
  1049. return self::initValue($a, 'item_weapon');
  1050. }
  1051. /**
  1052. * @return \sm_item_weapon item_weapon item数据
  1053. */
  1054. public static function item_weapon_getItem($itemid)
  1055. {
  1056. return self::get_hash_item('item_weapon', $itemid);
  1057. }
  1058. /**
  1059. * 礼包类道具
  1060. * @return \item_package
  1061. */
  1062. public static function item_package()
  1063. {
  1064. static $a = null;
  1065. return self::initValue($a, 'item_package');
  1066. }
  1067. /**
  1068. * @return \sm_item_package item_package item数据
  1069. */
  1070. public static function item_package_getItem($itemid)
  1071. {
  1072. return self::get_hash_item('item_package', $itemid);
  1073. }
  1074. /**
  1075. * 强化类道具
  1076. * @return \item_stones
  1077. */
  1078. public static function item_stones()
  1079. {
  1080. static $a = null;
  1081. return self::initValue($a, 'item_stones');
  1082. }
  1083. /**
  1084. * @return \sm_item_stones item_stones item数据
  1085. */
  1086. public static function item_stones_getItem($itemid)
  1087. {
  1088. return self::get_hash_item('item_stones', $itemid);
  1089. }
  1090. /**
  1091. * 药水类道具
  1092. * @return \item_pills
  1093. */
  1094. public static function item_pills()
  1095. {
  1096. static $a = null;
  1097. return self::initValue($a, 'item_pills');
  1098. }
  1099. /**
  1100. * @return \sm_item_pills item_pills item数据
  1101. */
  1102. public static function item_pills_getItem($itemid)
  1103. {
  1104. return self::get_hash_item('item_pills', $itemid);
  1105. }
  1106. /**
  1107. * buff类道具
  1108. * @return \item_buffcard
  1109. */
  1110. public static function item_buffcard()
  1111. {
  1112. static $a = null;
  1113. return self::initValue($a, 'item_buffcard');
  1114. }
  1115. /**
  1116. * @return \sm_item_buffcard item_buffcard item数据
  1117. */
  1118. public static function item_buffcard_getItem($itemid)
  1119. {
  1120. return self::get_hash_item('item_buffcard', $itemid);
  1121. }
  1122. /**
  1123. * 碎片类道具
  1124. * @return \item_segment
  1125. */
  1126. public static function item_segment()
  1127. {
  1128. static $a = null;
  1129. return self::initValue($a, 'item_segment');
  1130. }
  1131. /**
  1132. * @return \sm_item_segment item_segment item数据
  1133. */
  1134. public static function item_segment_getItem($itemid)
  1135. {
  1136. return self::get_hash_item('item_segment', $itemid);
  1137. }
  1138. /**
  1139. * 道具通用字段表
  1140. * @return \item_base
  1141. */
  1142. public static function item_base()
  1143. {
  1144. static $a = null;
  1145. return self::initValue($a, 'item_base');
  1146. }
  1147. /**
  1148. * @return \sm_item_base item_base item数据
  1149. */
  1150. public static function item_base_getItem($itemid)
  1151. {
  1152. return self::get_hash_item('item_base', $itemid);
  1153. }
  1154. /**
  1155. * 子技能表
  1156. * @return \subSkill
  1157. */
  1158. public static function subSkill()
  1159. {
  1160. static $a = null;
  1161. return self::initValue($a, 'subSkill');
  1162. }
  1163. /**
  1164. * @return \sm_subSkill subSkill item数据
  1165. */
  1166. public static function subSkill_getItem($itemid)
  1167. {
  1168. return self::get_hash_item('subSkill', $itemid);
  1169. }
  1170. /**
  1171. * 宝箱类道具
  1172. * @return \item_box
  1173. */
  1174. public static function item_box()
  1175. {
  1176. static $a = null;
  1177. return self::initValue($a, 'item_box');
  1178. }
  1179. /**
  1180. * @return \sm_item_box item_box item数据
  1181. */
  1182. public static function item_box_getItem($itemid)
  1183. {
  1184. return self::get_hash_item('item_box', $itemid);
  1185. }
  1186. /**
  1187. * 关卡-通关条件
  1188. * @return \gate_passCondition
  1189. */
  1190. public static function gate_passCondition()
  1191. {
  1192. static $a = null;
  1193. return self::initValue($a, 'gate_passCondition');
  1194. }
  1195. /**
  1196. * @return \sm_gate_passCondition gate_passCondition item数据
  1197. */
  1198. public static function gate_passCondition_getItem($itemid)
  1199. {
  1200. return self::get_hash_item('gate_passCondition', $itemid);
  1201. }
  1202. /**
  1203. * 元素相克关系表
  1204. * @return \attack_relation
  1205. */
  1206. public static function attack_relation()
  1207. {
  1208. static $a = null;
  1209. return self::initValue($a, 'attack_relation');
  1210. }
  1211. /**
  1212. * @return \sm_attack_relation attack_relation item数据
  1213. */
  1214. public static function attack_relation_getItem($attack1, $attack2)
  1215. {
  1216. return self::get_hash_item('attack_relation', "$attack1-$attack2");
  1217. }
  1218. /**
  1219. * 战斗力榜全服突破奖励
  1220. * @return \rankreward_fpower
  1221. */
  1222. public static function rankreward_fpower()
  1223. {
  1224. static $a = null;
  1225. return self::initValue($a, 'rankreward_fpower');
  1226. }
  1227. /**
  1228. * @return \sm_rankreward_fpower rankreward_fpower item数据
  1229. */
  1230. public static function rankreward_fpower_getItem($itemid)
  1231. {
  1232. return self::get_hash_item('rankreward_fpower', $itemid);
  1233. }
  1234. /**
  1235. * 合体技能
  1236. * @return \skill_cross
  1237. */
  1238. public static function skill_cross()
  1239. {
  1240. static $a = null;
  1241. return self::initValue($a, 'skill_cross');
  1242. }
  1243. /**
  1244. * @return \sm_skill_cross skill_cross item数据
  1245. */
  1246. public static function skill_cross_getItem($itemid)
  1247. {
  1248. return self::get_hash_item('skill_cross', $itemid);
  1249. }
  1250. /**
  1251. * 通关榜突破奖励
  1252. * @return \rankreward_passgate
  1253. */
  1254. public static function rankreward_passgate()
  1255. {
  1256. static $a = null;
  1257. return self::initValue($a, 'rankreward_passgate');
  1258. }
  1259. /**
  1260. * @return \sm_rankreward_passgate rankreward_passgate item数据
  1261. */
  1262. public static function rankreward_passgate_getItem($itemid)
  1263. {
  1264. return self::get_hash_item('rankreward_passgate', $itemid);
  1265. }
  1266. /**
  1267. * 言灵召唤书
  1268. * @return \item_yanlingbook
  1269. */
  1270. public static function item_yanlingbook()
  1271. {
  1272. static $a = null;
  1273. return self::initValue($a, 'item_yanlingbook');
  1274. }
  1275. /**
  1276. * @return \sm_item_yanlingbook item_yanlingbook item数据
  1277. */
  1278. public static function item_yanlingbook_getItem($itemid)
  1279. {
  1280. return self::get_hash_item('item_yanlingbook', $itemid);
  1281. }
  1282. /**
  1283. * 言灵进阶表
  1284. * @return \yanling_upgrade
  1285. */
  1286. public static function yanling_upgrade()
  1287. {
  1288. static $a = null;
  1289. return self::initValue($a, 'yanling_upgrade');
  1290. }
  1291. /**
  1292. * @return \sm_yanling_upgrade yanling_upgrade item数据
  1293. */
  1294. public static function yanling_upgrade_getItem($typeId, $grade)
  1295. {
  1296. return self::get_hash_item('yanling_upgrade', $typeId)->$grade;
  1297. }
  1298. /**
  1299. * 功能引导模块
  1300. * @return \guide_module
  1301. */
  1302. public static function guide_module()
  1303. {
  1304. static $a = null;
  1305. return self::initValue($a, 'guide_module');
  1306. }
  1307. /**
  1308. * @return \sm_guide_module guide_module item数据
  1309. */
  1310. public static function guide_module_getItem($itemid)
  1311. {
  1312. return self::get_hash_item('guide_module', $itemid);
  1313. }
  1314. /**
  1315. * 活动: 七日签到
  1316. * @return \activity_day7
  1317. */
  1318. public static function activity_day7()
  1319. {
  1320. static $a = null;
  1321. return self::initValue($a, 'activity_day7');
  1322. }
  1323. /**
  1324. * @return \sm_activity_day7 activity_day7 item数据
  1325. */
  1326. public static function activity_day7_getItem($itemid)
  1327. {
  1328. return self::get_hash_item('activity_day7', $itemid);
  1329. }
  1330. /**
  1331. * 限购商城
  1332. * @return \shop_limit
  1333. */
  1334. public static function shop_limit()
  1335. {
  1336. static $a = null;
  1337. return self::initValue($a, 'shop_limit');
  1338. }
  1339. /**
  1340. * @return \sm_shop_limit shop_limit item数据
  1341. */
  1342. public static function shop_limit_getItem($itemid)
  1343. {
  1344. return self::get_hash_item('shop_limit', $itemid);
  1345. }
  1346. /**
  1347. * 月卡商城
  1348. * @return \shop_monthVIP
  1349. */
  1350. public static function shop_monthVIP()
  1351. {
  1352. static $a = null;
  1353. return self::initValue($a, 'shop_monthVIP');
  1354. }
  1355. /**
  1356. * @return \sm_shop_monthVIP shop_monthVIP item数据
  1357. */
  1358. public static function shop_monthVIP_getItem($itemid)
  1359. {
  1360. return self::get_hash_item('shop_monthVIP', $itemid);
  1361. }
  1362. /**
  1363. * 掉落数据表
  1364. * @return \drop
  1365. */
  1366. public static function drop()
  1367. {
  1368. static $a = null;
  1369. return self::initValue($a, 'drop');
  1370. }
  1371. /**
  1372. * @return \sm_drop drop item数据
  1373. */
  1374. public static function drop_getItem($itemid)
  1375. {
  1376. return self::get_hash_item('drop', $itemid);
  1377. }
  1378. /**
  1379. * 当前版本(时间戳)
  1380. * @return \ver
  1381. */
  1382. public static function ver()
  1383. {
  1384. static $a = null;
  1385. return self::initValue($a, 'ver', false);
  1386. }
  1387. /**
  1388. * 客户端配置数据
  1389. * @return \client
  1390. */
  1391. public static function client()
  1392. {
  1393. static $a = null;
  1394. return self::initValue($a, 'client', false);
  1395. }
  1396. }