GameConfig.php 34 KB

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