GameConfig.php 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148
  1. <?php
  2. namespace loyalsoft;
  3. ////////////////////
  4. // 由CodeGenerator创建。
  5. // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  6. // author: gwang
  7. // 日期: 2019-12-05 19:36:42
  8. ////////////////////
  9. /**
  10. * 常量配置数据
  11. */
  12. class GameConfig {
  13. // <editor-fold defaultstate="collapsed" desc=" 基础代码 ">
  14. /**
  15. * 是否启用codegen
  16. */
  17. private static function isCG() {
  18. return defined('CodeGen_Enabled') && CodeGen_Enabled;
  19. }
  20. /**
  21. * @var bool 分区是否使用独立的常量配置数据
  22. */
  23. private static $useZoneId = false;
  24. /**
  25. * 追加分区列表字符串
  26. * @return string
  27. */
  28. private static function zoneid() {
  29. 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. $key = 'gamecfg-' . $modelName . self::zoneid();
  41. if (is_null($a)) {
  42. if (self::isCG()) {
  43. $a = include $key . '.php';
  44. } else {
  45. $a = $isHash ? gMem()->hgetall($key) : gMem()->get($key);
  46. }
  47. }
  48. return $a;
  49. }
  50. /**
  51. * 获取hash结构的一个item
  52. * @param string $modelName 模块名称
  53. * @param mixed/string/int $itemId 索引
  54. * @return mixed
  55. */
  56. private static function get_hash_item($modelName, $itemId) {
  57. if (self::isCG()) {
  58. $data = self::$modelName();
  59. if (property_exists($data, $itemId)) {
  60. return $data->$itemId;
  61. }
  62. } else {
  63. $key = 'gamecfg-' . $modelName . self::zoneid();
  64. return gMem()->hget($key, $itemId);
  65. }
  66. return null;
  67. }
  68. // </editor-fold>
  69. /**
  70. * 全局参数
  71. * @return \globalsettings
  72. */
  73. public static function globalsettings() {
  74. static $a = null;
  75. return self::initValue($a, 'globalsettings');
  76. }
  77. /**
  78. * 英雄模块
  79. * @return \hero
  80. */
  81. public static function hero() {
  82. static $a = null;
  83. return self::initValue($a, 'hero');
  84. }
  85. /**
  86. * @return \sm_hero hero item数据
  87. */
  88. public static function hero_getItem($itemid) {
  89. return self::get_hash_item('hero', $itemid);
  90. }
  91. /**
  92. * 英雄的升级(属性加成)
  93. * @return \heroextra_level
  94. */
  95. public static function heroextra_level() {
  96. static $a = null;
  97. return self::initValue($a, 'heroextra_level');
  98. }
  99. /**
  100. * @return \sm_heroextra_level heroextra_level item数据
  101. */
  102. public static function heroextra_level_getItem($heroId, $quality) {
  103. return self::get_hash_item('heroextra_level', $heroId)->$quality;
  104. }
  105. /**
  106. * 开服七天活动
  107. * @return \day7
  108. */
  109. public static function day7() {
  110. static $a = null;
  111. return self::initValue($a, 'day7');
  112. }
  113. /**
  114. * @return \sm_day7 day7 item数据
  115. */
  116. public static function day7_getItem($itemid) {
  117. return self::get_hash_item('day7', $itemid);
  118. }
  119. /**
  120. *
  121. * @return \item
  122. */
  123. public static function item() {
  124. static $a = null;
  125. return self::initValue($a, 'item');
  126. }
  127. /**
  128. * @return \sm_item item item数据
  129. */
  130. public static function item_getItem($itemid) {
  131. return self::get_hash_item('item', $itemid);
  132. }
  133. /**
  134. *
  135. * @return \itemlevel
  136. */
  137. public static function itemlevel() {
  138. static $a = null;
  139. return self::initValue($a, 'itemlevel');
  140. }
  141. /**
  142. * @return \sm_itemlevel itemlevel item数据
  143. */
  144. public static function itemlevel_getItem($itemid) {
  145. return self::get_hash_item('itemlevel', $itemid);
  146. }
  147. /**
  148. * 英雄的好感度提升(消耗金币)
  149. * @return \heroextra_favor
  150. */
  151. public static function heroextra_favor() {
  152. static $a = null;
  153. return self::initValue($a, 'heroextra_favor');
  154. }
  155. /**
  156. * @return \sm_heroextra_favor heroextra_favor item数据
  157. */
  158. public static function heroextra_favor_getItem($itemid) {
  159. return self::get_hash_item('heroextra_favor', $itemid);
  160. }
  161. /**
  162. * 英雄的升级——每级成长消耗经验需求表
  163. * @return \hero_levelexp
  164. */
  165. public static function hero_levelexp() {
  166. static $a = null;
  167. return self::initValue($a, 'hero_levelexp');
  168. }
  169. /**
  170. * @return \sm_hero_levelexp hero_levelexp item数据
  171. */
  172. public static function hero_levelexp_getItem($itemid) {
  173. return self::get_hash_item('hero_levelexp', $itemid);
  174. }
  175. /**
  176. * 英雄的升星(消耗金币+ 属性加成)
  177. * @return \heroextra_star
  178. */
  179. public static function heroextra_star() {
  180. static $a = null;
  181. return self::initValue($a, 'heroextra_star');
  182. }
  183. /**
  184. * @return \sm_heroextra_star heroextra_star item数据
  185. */
  186. public static function heroextra_star_getItem($itemid) {
  187. return self::get_hash_item('heroextra_star', $itemid);
  188. }
  189. /**
  190. * 英雄的升阶(消耗金币+ 属性加成)
  191. * @return \heroextra_dengjie
  192. */
  193. public static function heroextra_dengjie() {
  194. static $a = null;
  195. return self::initValue($a, 'heroextra_dengjie');
  196. }
  197. /**
  198. * @return \sm_heroextra_dengjie heroextra_dengjie item数据
  199. */
  200. public static function heroextra_dengjie_getItem($itemid) {
  201. return self::get_hash_item('heroextra_dengjie', $itemid);
  202. }
  203. /**
  204. * 关卡
  205. * @return \gate
  206. */
  207. public static function gate() {
  208. static $a = null;
  209. return self::initValue($a, 'gate');
  210. }
  211. /**
  212. * @return \sm_gate gate item数据
  213. */
  214. public static function gate_getItem($itemid) {
  215. return self::get_hash_item('gate', $itemid);
  216. }
  217. /**
  218. * 关卡波茨数据
  219. * @return \gatelevel
  220. */
  221. public static function gatelevel() {
  222. static $a = null;
  223. return self::initValue($a, 'gatelevel');
  224. }
  225. /**
  226. * @return \sm_gatelevel gatelevel item数据
  227. */
  228. public static function gatelevel_getItem($itemid) {
  229. return self::get_hash_item('gatelevel', $itemid);
  230. }
  231. /**
  232. * 关卡—— 星级奖励
  233. * @return \gate_starreward
  234. */
  235. public static function gate_starreward() {
  236. static $a = null;
  237. return self::initValue($a, 'gate_starreward');
  238. }
  239. /**
  240. * @return \sm_gate_starreward gate_starreward item数据
  241. */
  242. public static function gate_starreward_getItem($itemid) {
  243. return self::get_hash_item('gate_starreward', $itemid);
  244. }
  245. /**
  246. * 任务
  247. * @return \task
  248. */
  249. public static function task() {
  250. static $a = null;
  251. return self::initValue($a, 'task');
  252. }
  253. /**
  254. * @return \sm_task task item数据
  255. */
  256. public static function task_getItem($itemid) {
  257. return self::get_hash_item('task', $itemid);
  258. }
  259. /**
  260. *
  261. * @return \playerlevel
  262. */
  263. public static function playerlevel() {
  264. static $a = null;
  265. return self::initValue($a, 'playerlevel');
  266. }
  267. /**
  268. * @return \sm_playerlevel playerlevel item数据
  269. */
  270. public static function playerlevel_getItem($itemid) {
  271. return self::get_hash_item('playerlevel', $itemid);
  272. }
  273. /**
  274. * 技能升级消耗金币
  275. * @return \skill_upgrade_cost
  276. */
  277. public static function skill_upgrade_cost() {
  278. static $a = null;
  279. return self::initValue($a, 'skill_upgrade_cost');
  280. }
  281. /**
  282. * @return \sm_skill_upgrade_cost skill_upgrade_cost item数据
  283. */
  284. public static function skill_upgrade_cost_getItem($itemid) {
  285. return self::get_hash_item('skill_upgrade_cost', $itemid);
  286. }
  287. /**
  288. * 商城
  289. * @return \shop
  290. */
  291. public static function shop() {
  292. static $a = null;
  293. return self::initValue($a, 'shop');
  294. }
  295. /**
  296. * @return \sm_shop shop item数据
  297. */
  298. public static function shop_getItem($itemid) {
  299. return self::get_hash_item('shop', $itemid);
  300. }
  301. /**
  302. * 停服计划
  303. * @return \service_schedule
  304. */
  305. public static function service_schedule() {
  306. static $a = null;
  307. return self::initValue($a, 'service_schedule');
  308. }
  309. /**
  310. * @return \sm_service_schedule service_schedule item数据
  311. */
  312. public static function service_schedule_getItem($itemid) {
  313. return self::get_hash_item('service_schedule', $itemid);
  314. }
  315. /**
  316. * 抽奖数据
  317. * @return \choujiang
  318. */
  319. public static function choujiang() {
  320. static $a = null;
  321. return self::initValue($a, 'choujiang');
  322. }
  323. /**
  324. * @return \sm_choujiang choujiang item数据
  325. */
  326. public static function choujiang_getItem($itemid) {
  327. return self::get_hash_item('choujiang', $itemid);
  328. }
  329. /**
  330. * 无穷无尽关卡模式
  331. * @return \gate_forever
  332. */
  333. public static function gate_forever() {
  334. static $a = null;
  335. return self::initValue($a, 'gate_forever');
  336. }
  337. /**
  338. * @return \sm_gate_forever gate_forever item数据
  339. */
  340. public static function gate_forever_getItem($itemid) {
  341. return self::get_hash_item('gate_forever', $itemid);
  342. }
  343. /**
  344. * 系统邮件
  345. * @return \sysmail
  346. */
  347. public static function sysmail() {
  348. static $a = null;
  349. return self::initValue($a, 'sysmail');
  350. }
  351. /**
  352. * @return \sm_sysmail sysmail item数据
  353. */
  354. public static function sysmail_getItem($itemid) {
  355. return self::get_hash_item('sysmail', $itemid);
  356. }
  357. /**
  358. * 关卡【副本】
  359. * @return \gate_carbon
  360. */
  361. public static function gate_carbon() {
  362. static $a = null;
  363. return self::initValue($a, 'gate_carbon');
  364. }
  365. /**
  366. * @return \sm_gate_carbon gate_carbon item数据
  367. */
  368. public static function gate_carbon_getItem($itemid) {
  369. return self::get_hash_item('gate_carbon', $itemid);
  370. }
  371. /**
  372. * pvp分段奖励
  373. * @return \pvp_leaguereward
  374. */
  375. public static function pvp_leaguereward() {
  376. static $a = null;
  377. return self::initValue($a, 'pvp_leaguereward');
  378. }
  379. /**
  380. * @return \sm_pvp_leaguereward pvp_leaguereward item数据
  381. */
  382. public static function pvp_leaguereward_getItem($itemid) {
  383. return self::get_hash_item('pvp_leaguereward', $itemid);
  384. }
  385. /**
  386. * pvp 百名榜单奖励
  387. * @return \pvp_rankreward
  388. */
  389. public static function pvp_rankreward() {
  390. static $a = null;
  391. return self::initValue($a, 'pvp_rankreward');
  392. }
  393. /**
  394. * @return \sm_pvp_rankreward pvp_rankreward item数据
  395. */
  396. public static function pvp_rankreward_getItem($itemid) {
  397. return self::get_hash_item('pvp_rankreward', $itemid);
  398. }
  399. /**
  400. * pvp_ 分数段
  401. * @return \pvp_leaguescore
  402. */
  403. public static function pvp_leaguescore() {
  404. static $a = null;
  405. return self::initValue($a, 'pvp_leaguescore');
  406. }
  407. /**
  408. * @return \sm_pvp_leaguescore pvp_leaguescore item数据
  409. */
  410. public static function pvp_leaguescore_getItem($itemid) {
  411. return self::get_hash_item('pvp_leaguescore', $itemid);
  412. }
  413. /**
  414. * 熔炼实验室
  415. * @return \smelting
  416. */
  417. public static function smelting() {
  418. static $a = null;
  419. return self::initValue($a, 'smelting');
  420. }
  421. /**
  422. * @return \sm_smelting smelting item数据
  423. */
  424. public static function smelting_getItem($itemid) {
  425. return self::get_hash_item('smelting', $itemid);
  426. }
  427. /**
  428. * 配置的关卡相关的战斗数据
  429. * @return \gate_combat
  430. */
  431. public static function gate_combat() {
  432. static $a = null;
  433. return self::initValue($a, 'gate_combat');
  434. }
  435. /**
  436. * @return \sm_gate_combat gate_combat item数据
  437. */
  438. public static function gate_combat_getItem($itemid) {
  439. return self::get_hash_item('gate_combat', $itemid);
  440. }
  441. /**
  442. *
  443. * @return \gate_carbon_content
  444. */
  445. public static function gate_carbon_content() {
  446. static $a = null;
  447. return self::initValue($a, 'gate_carbon_content');
  448. }
  449. /**
  450. * @return \sm_gate_carbon_content gate_carbon_content item数据
  451. */
  452. public static function gate_carbon_content_getItem($itemid) {
  453. return self::get_hash_item('gate_carbon_content', $itemid);
  454. }
  455. /**
  456. * pvp活跃奖励数据
  457. * @return \pvp_activityreward
  458. */
  459. public static function pvp_activityreward() {
  460. static $a = null;
  461. return self::initValue($a, 'pvp_activityreward');
  462. }
  463. /**
  464. * @return \sm_pvp_activityreward pvp_activityreward item数据
  465. */
  466. public static function pvp_activityreward_getItem($itemid) {
  467. return self::get_hash_item('pvp_activityreward', $itemid);
  468. }
  469. /**
  470. * 抽奖保底数据
  471. * @return \choujiang_baodi
  472. */
  473. public static function choujiang_baodi() {
  474. static $a = null;
  475. return self::initValue($a, 'choujiang_baodi');
  476. }
  477. /**
  478. * @return \sm_choujiang_baodi choujiang_baodi item数据
  479. */
  480. public static function choujiang_baodi_getItem($typeId, $cishu) {
  481. return self::get_hash_item('choujiang_baodi', "$typeId-$cishu");
  482. }
  483. /**
  484. * 英雄的升级——成长可消耗的道具表
  485. * @return \hero_levelexp_costitem
  486. */
  487. public static function hero_levelexp_costitem() {
  488. static $a = null;
  489. return self::initValue($a, 'hero_levelexp_costitem');
  490. }
  491. /**
  492. * @return \sm_hero_levelexp_costitem hero_levelexp_costitem item数据
  493. */
  494. public static function hero_levelexp_costitem_getItem($itemid) {
  495. return self::get_hash_item('hero_levelexp_costitem', $itemid);
  496. }
  497. /**
  498. * 抽奖设置数据
  499. * @return \choujiang_settings
  500. */
  501. public static function choujiang_settings() {
  502. static $a = null;
  503. return self::initValue($a, 'choujiang_settings');
  504. }
  505. /**
  506. * @return \sm_choujiang_settings choujiang_settings item数据
  507. */
  508. public static function choujiang_settings_getItem($itemid) {
  509. return self::get_hash_item('choujiang_settings', $itemid);
  510. }
  511. /**
  512. * 引导步骤
  513. * @return \guide_step
  514. */
  515. public static function guide_step() {
  516. static $a = null;
  517. return self::initValue($a, 'guide_step');
  518. }
  519. /**
  520. * @return \sm_guide_step guide_step item数据
  521. */
  522. public static function guide_step_getItem($itemid) {
  523. return self::get_hash_item('guide_step', $itemid);
  524. }
  525. /**
  526. * 引导触发
  527. * @return \guide_trigger
  528. */
  529. public static function guide_trigger() {
  530. static $a = null;
  531. return self::initValue($a, 'guide_trigger');
  532. }
  533. /**
  534. * @return \sm_guide_trigger guide_trigger item数据
  535. */
  536. public static function guide_trigger_getItem($itemid) {
  537. return self::get_hash_item('guide_trigger', $itemid);
  538. }
  539. /**
  540. * 成就任务
  541. * @return \task_achi
  542. */
  543. public static function task_achi() {
  544. static $a = null;
  545. return self::initValue($a, 'task_achi');
  546. }
  547. /**
  548. * @return \sm_task_achi task_achi item数据
  549. */
  550. public static function task_achi_getItem($itemid) {
  551. return self::get_hash_item('task_achi', $itemid);
  552. }
  553. /**
  554. * 宝箱
  555. * @return \box
  556. */
  557. public static function box() {
  558. static $a = null;
  559. return self::initValue($a, 'box');
  560. }
  561. /**
  562. * @return \sm_box box item数据
  563. */
  564. public static function box_getItem($itemid) {
  565. return self::get_hash_item('box', $itemid);
  566. }
  567. /**
  568. * 宝箱的奖池
  569. * @return \boxpool
  570. */
  571. public static function boxpool() {
  572. static $a = null;
  573. return self::initValue($a, 'boxpool');
  574. }
  575. /**
  576. * @return \sm_boxpool boxpool item数据
  577. */
  578. public static function boxpool_getItem($itemid) {
  579. return self::get_hash_item('boxpool', $itemid);
  580. }
  581. /**
  582. * 英雄————神血系统
  583. * @return \heroextra_godblood
  584. */
  585. public static function heroextra_godblood() {
  586. static $a = null;
  587. return self::initValue($a, 'heroextra_godblood');
  588. }
  589. /**
  590. * @return \sm_heroextra_godblood heroextra_godblood item数据
  591. */
  592. public static function heroextra_godblood_getItem($itemid) {
  593. return self::get_hash_item('heroextra_godblood', $itemid);
  594. }
  595. /**
  596. * 碎片
  597. * @return \segment
  598. */
  599. public static function segment() {
  600. static $a = null;
  601. return self::initValue($a, 'segment');
  602. }
  603. /**
  604. * @return \sm_segment segment item数据
  605. */
  606. public static function segment_getItem($itemid) {
  607. return self::get_hash_item('segment', $itemid);
  608. }
  609. /**
  610. *
  611. * @return \gate_world
  612. */
  613. public static function gate_world() {
  614. static $a = null;
  615. return self::initValue($a, 'gate_world');
  616. }
  617. /**
  618. * @return \sm_gate_world gate_world item数据
  619. */
  620. public static function gate_world_getItem($itemid) {
  621. return self::get_hash_item('gate_world', $itemid);
  622. }
  623. /**
  624. *
  625. * @return \gate_city
  626. */
  627. public static function gate_city() {
  628. static $a = null;
  629. return self::initValue($a, 'gate_city');
  630. }
  631. /**
  632. * @return \sm_gate_city gate_city item数据
  633. */
  634. public static function gate_city_getItem($itemid) {
  635. return self::get_hash_item('gate_city', $itemid);
  636. }
  637. /**
  638. * 神秘商城道具表-by goodstype
  639. * @return \secretshop_goodsType
  640. */
  641. public static function secretshop_goodsType() {
  642. static $a = null;
  643. return self::initValue($a, 'secretshop_goodsType');
  644. }
  645. /**
  646. * @return \sm_secretshop_goodsType secretshop_goodsType item数据
  647. */
  648. public static function secretshop_goodsType_getItem($itemid) {
  649. return self::get_hash_item('secretshop_goodsType', $itemid);
  650. }
  651. /**
  652. * 神秘商城刷新价格表
  653. * @return \secretshop_refresh
  654. */
  655. public static function secretshop_refresh() {
  656. static $a = null;
  657. return self::initValue($a, 'secretshop_refresh');
  658. }
  659. /**
  660. * @return \sm_secretshop_refresh secretshop_refresh item数据
  661. */
  662. public static function secretshop_refresh_getItem($itemid) {
  663. return self::get_hash_item('secretshop_refresh', $itemid);
  664. }
  665. /**
  666. * 神秘商城道具表-by typeId
  667. * @return \secretshop_typeId
  668. */
  669. public static function secretshop_typeId() {
  670. static $a = null;
  671. return self::initValue($a, 'secretshop_typeId');
  672. }
  673. /**
  674. * @return \sm_secretshop_typeId secretshop_typeId item数据
  675. */
  676. public static function secretshop_typeId_getItem($itemid) {
  677. return self::get_hash_item('secretshop_typeId', $itemid);
  678. }
  679. /**
  680. * 客户端版本信息
  681. * @return \clientVersionHistory
  682. */
  683. public static function clientVersionHistory() {
  684. static $a = null;
  685. return self::initValue($a, 'clientVersionHistory');
  686. }
  687. /**
  688. * @return \sm_clientVersionHistory clientVersionHistory item数据
  689. */
  690. public static function clientVersionHistory_getItem($itemid) {
  691. return self::get_hash_item('clientVersionHistory', $itemid);
  692. }
  693. /**
  694. * 分区列表
  695. * @return \zonelist
  696. */
  697. public static function zonelist() {
  698. static $a = null;
  699. return self::initValue($a, 'zonelist');
  700. }
  701. /**
  702. * @return \sm_zonelist zonelist item数据
  703. */
  704. public static function zonelist_getItem($itemid) {
  705. return self::get_hash_item('zonelist', $itemid);
  706. }
  707. /**
  708. * 兑换码礼包
  709. * @return \tokenGift
  710. */
  711. public static function tokenGift() {
  712. static $a = null;
  713. return self::initValue($a, 'tokenGift');
  714. }
  715. /**
  716. * @return \sm_tokenGift tokenGift item数据
  717. */
  718. public static function tokenGift_getItem($itemid) {
  719. return self::get_hash_item('tokenGift', $itemid);
  720. }
  721. /**
  722. * 活动配置
  723. * @return \activity
  724. */
  725. public static function activity() {
  726. static $a = null;
  727. return self::initValue($a, 'activity');
  728. }
  729. /**
  730. * @return \sm_activity activity item数据
  731. */
  732. public static function activity_getItem($itemid) {
  733. return self::get_hash_item('activity', $itemid);
  734. }
  735. /**
  736. * 碎片融合的概率表
  737. * @return \segment_ronghe
  738. */
  739. public static function segment_ronghe() {
  740. static $a = null;
  741. return self::initValue($a, 'segment_ronghe');
  742. }
  743. /**
  744. * @return \sm_segment_ronghe segment_ronghe item数据
  745. */
  746. public static function segment_ronghe_getItem($itemid) {
  747. return self::get_hash_item('segment_ronghe', $itemid);
  748. }
  749. /**
  750. * 碎片_按品质索引
  751. * @return \segment_byPinzhi
  752. */
  753. public static function segment_byPinzhi() {
  754. static $a = null;
  755. return self::initValue($a, 'segment_byPinzhi');
  756. }
  757. /**
  758. * @return \sm_segment_byPinzhi segment_byPinzhi item数据
  759. */
  760. public static function segment_byPinzhi_getItem($quailty, $itemType) {
  761. return self::get_hash_item('segment_byPinzhi', $quailty)->$itemType;
  762. }
  763. /**
  764. * 宝箱经验卡掉落数据
  765. * @return \boxJingYanCards
  766. */
  767. public static function boxJingYanCards() {
  768. static $a = null;
  769. return self::initValue($a, 'boxJingYanCards');
  770. }
  771. /**
  772. * @return \sm_boxJingYanCards boxJingYanCards item数据
  773. */
  774. public static function boxJingYanCards_getItem($itemid) {
  775. return self::get_hash_item('boxJingYanCards', $itemid);
  776. }
  777. /**
  778. * 活动: 在线礼包
  779. * @return \activity_onlinegift
  780. */
  781. public static function activity_onlinegift() {
  782. static $a = null;
  783. return self::initValue($a, 'activity_onlinegift');
  784. }
  785. /**
  786. * @return \sm_activity_onlinegift activity_onlinegift item数据
  787. */
  788. public static function activity_onlinegift_getItem($itemid) {
  789. return self::get_hash_item('activity_onlinegift', $itemid);
  790. }
  791. /**
  792. * GM号的UID
  793. * @return \GM_uids
  794. */
  795. public static function GM_uids() {
  796. static $a = null;
  797. return self::initValue($a, 'GM_uids');
  798. }
  799. /**
  800. * 活动, 全服注册礼包
  801. * @return \activity_reggift
  802. */
  803. public static function activity_reggift() {
  804. static $a = null;
  805. return self::initValue($a, 'activity_reggift');
  806. }
  807. /**
  808. * @return \sm_activity_reggift activity_reggift item数据
  809. */
  810. public static function activity_reggift_getItem($itemid) {
  811. return self::get_hash_item('activity_reggift', $itemid);
  812. }
  813. /**
  814. * 公会捐献卡牌奖励
  815. * @return \guilddonatereward
  816. */
  817. public static function guilddonatereward() {
  818. static $a = null;
  819. return self::initValue($a, 'guilddonatereward');
  820. }
  821. /**
  822. * @return \sm_guilddonatereward guilddonatereward item数据
  823. */
  824. public static function guilddonatereward_getItem($itemid) {
  825. return self::get_hash_item('guilddonatereward', $itemid);
  826. }
  827. /**
  828. * 公会等级相关数据
  829. * @return \guildlevel
  830. */
  831. public static function guildlevel() {
  832. static $a = null;
  833. return self::initValue($a, 'guildlevel');
  834. }
  835. /**
  836. * @return \sm_guildlevel guildlevel item数据
  837. */
  838. public static function guildlevel_getItem($itemid) {
  839. return self::get_hash_item('guildlevel', $itemid);
  840. }
  841. /**
  842. * 公会礼包
  843. * @return \guildlibao
  844. */
  845. public static function guildlibao() {
  846. static $a = null;
  847. return self::initValue($a, 'guildlibao');
  848. }
  849. /**
  850. * @return \sm_guildlibao guildlibao item数据
  851. */
  852. public static function guildlibao_getItem($itemid) {
  853. return self::get_hash_item('guildlibao', $itemid);
  854. }
  855. /**
  856. * 玩家初始化数据
  857. * @return \primordial_data
  858. */
  859. public static function primordial_data() {
  860. static $a = null;
  861. return self::initValue($a, 'primordial_data');
  862. }
  863. /**
  864. * 英雄技能升级的限定
  865. * @return \heroextra_skill_lv_limit
  866. */
  867. public static function heroextra_skill_lv_limit() {
  868. static $a = null;
  869. return self::initValue($a, 'heroextra_skill_lv_limit');
  870. }
  871. /**
  872. * @return \sm_heroextra_skill_lv_limit heroextra_skill_lv_limit item数据
  873. */
  874. public static function heroextra_skill_lv_limit_getItem($itemid) {
  875. return self::get_hash_item('heroextra_skill_lv_limit', $itemid);
  876. }
  877. /**
  878. * 武器类道具
  879. * @return \item_weapon
  880. */
  881. public static function item_weapon() {
  882. static $a = null;
  883. return self::initValue($a, 'item_weapon');
  884. }
  885. /**
  886. * @return \sm_item_weapon item_weapon item数据
  887. */
  888. public static function item_weapon_getItem($itemid) {
  889. return self::get_hash_item('item_weapon', $itemid);
  890. }
  891. /**
  892. * 礼包类道具
  893. * @return \item_package
  894. */
  895. public static function item_package() {
  896. static $a = null;
  897. return self::initValue($a, 'item_package');
  898. }
  899. /**
  900. * @return \sm_item_package item_package item数据
  901. */
  902. public static function item_package_getItem($itemid) {
  903. return self::get_hash_item('item_package', $itemid);
  904. }
  905. /**
  906. * 强化类道具
  907. * @return \item_stones
  908. */
  909. public static function item_stones() {
  910. static $a = null;
  911. return self::initValue($a, 'item_stones');
  912. }
  913. /**
  914. * @return \sm_item_stones item_stones item数据
  915. */
  916. public static function item_stones_getItem($itemid) {
  917. return self::get_hash_item('item_stones', $itemid);
  918. }
  919. /**
  920. * 药水类道具
  921. * @return \item_pills
  922. */
  923. public static function item_pills() {
  924. static $a = null;
  925. return self::initValue($a, 'item_pills');
  926. }
  927. /**
  928. * @return \sm_item_pills item_pills item数据
  929. */
  930. public static function item_pills_getItem($itemid) {
  931. return self::get_hash_item('item_pills', $itemid);
  932. }
  933. /**
  934. * buff类道具
  935. * @return \item_buffcard
  936. */
  937. public static function item_buffcard() {
  938. static $a = null;
  939. return self::initValue($a, 'item_buffcard');
  940. }
  941. /**
  942. * @return \sm_item_buffcard item_buffcard item数据
  943. */
  944. public static function item_buffcard_getItem($itemid) {
  945. return self::get_hash_item('item_buffcard', $itemid);
  946. }
  947. /**
  948. * 碎片类道具
  949. * @return \item_segment
  950. */
  951. public static function item_segment() {
  952. static $a = null;
  953. return self::initValue($a, 'item_segment');
  954. }
  955. /**
  956. * @return \sm_item_segment item_segment item数据
  957. */
  958. public static function item_segment_getItem($itemid) {
  959. return self::get_hash_item('item_segment', $itemid);
  960. }
  961. /**
  962. * 道具通用字段表
  963. * @return \item_base
  964. */
  965. public static function item_base() {
  966. static $a = null;
  967. return self::initValue($a, 'item_base');
  968. }
  969. /**
  970. * @return \sm_item_base item_base item数据
  971. */
  972. public static function item_base_getItem($itemid) {
  973. return self::get_hash_item('item_base', $itemid);
  974. }
  975. /**
  976. * 子技能表
  977. * @return \subSkill
  978. */
  979. public static function subSkill() {
  980. static $a = null;
  981. return self::initValue($a, 'subSkill');
  982. }
  983. /**
  984. * @return \sm_subSkill subSkill item数据
  985. */
  986. public static function subSkill_getItem($itemid) {
  987. return self::get_hash_item('subSkill', $itemid);
  988. }
  989. /**
  990. * 当前版本(时间戳)
  991. * @return \ver
  992. */
  993. public static function ver() {
  994. static $a = null;
  995. return self::initValue($a, 'ver', false);
  996. }
  997. /**
  998. * 客户端配置数据
  999. * @return \client
  1000. */
  1001. public static function client() {
  1002. static $a = null;
  1003. return self::initValue($a, 'client', false);
  1004. }
  1005. }