GameConfig.php 35 KB

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