GameConfig.php 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  1. <?php
  2. namespace loyalsoft;
  3. ////////////////////
  4. // 由CodeGenerator创建。
  5. // Copyright (C) gwang (mail@wanggangzero.cn), Loyalsoft@sjz Inc
  6. // author: gwang
  7. // 日期: 2018-02-08 10:53:29
  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. * @return \globalsettings globalsettingsitem数据
  79. */
  80. public static function globalsettings_getItem($itemid) {
  81. return self::get_hash_item('globalsettings', $itemid);
  82. }
  83. /**
  84. * 英雄模块
  85. * @return \hero
  86. */
  87. public static function hero() {
  88. static $a = null;
  89. return self::initValue($a, 'hero');
  90. }
  91. /**
  92. * @return \sm_hero heroitem数据
  93. */
  94. public static function hero_getItem($itemid) {
  95. return self::get_hash_item('hero', $itemid);
  96. }
  97. /**
  98. * 英雄的升级(属性加成)
  99. * @return \heroextra_level
  100. */
  101. public static function heroextra_level() {
  102. static $a = null;
  103. return self::initValue($a, 'heroextra_level');
  104. }
  105. /**
  106. * @return \sm_heroextra_level heroextra_levelitem数据
  107. */
  108. public static function heroextra_level_getItem($itemid) {
  109. return self::get_hash_item('heroextra_level', $itemid);
  110. }
  111. /**
  112. * 开服七天活动
  113. * @return \day7
  114. */
  115. public static function day7() {
  116. static $a = null;
  117. return self::initValue($a, 'day7');
  118. }
  119. /**
  120. * @return \sm_day7 day7item数据
  121. */
  122. public static function day7_getItem($itemid) {
  123. return self::get_hash_item('day7', $itemid);
  124. }
  125. /**
  126. *
  127. * @return \item
  128. */
  129. public static function item() {
  130. static $a = null;
  131. return self::initValue($a, 'item');
  132. }
  133. /**
  134. * @return \sm_item itemitem数据
  135. */
  136. public static function item_getItem($itemid) {
  137. return self::get_hash_item('item', $itemid);
  138. }
  139. /**
  140. *
  141. * @return \itemlevel
  142. */
  143. public static function itemlevel() {
  144. static $a = null;
  145. return self::initValue($a, 'itemlevel');
  146. }
  147. /**
  148. * @return \sm_itemlevel itemlevelitem数据
  149. */
  150. public static function itemlevel_getItem($itemid) {
  151. return self::get_hash_item('itemlevel', $itemid);
  152. }
  153. /**
  154. * 英雄的好感度提升(消耗金币)
  155. * @return \heroextra_favor
  156. */
  157. public static function heroextra_favor() {
  158. static $a = null;
  159. return self::initValue($a, 'heroextra_favor');
  160. }
  161. /**
  162. * @return \sm_heroextra_favor heroextra_favoritem数据
  163. */
  164. public static function heroextra_favor_getItem($itemid) {
  165. return self::get_hash_item('heroextra_favor', $itemid);
  166. }
  167. /**
  168. * 英雄的升级——每级成长消耗经验需求表
  169. * @return \hero_levelexp
  170. */
  171. public static function hero_levelexp() {
  172. static $a = null;
  173. return self::initValue($a, 'hero_levelexp');
  174. }
  175. /**
  176. * @return \sm_hero_levelexp hero_levelexpitem数据
  177. */
  178. public static function hero_levelexp_getItem($itemid) {
  179. return self::get_hash_item('hero_levelexp', $itemid);
  180. }
  181. /**
  182. * 英雄的升星(消耗金币+ 属性加成)
  183. * @return \heroextra_star
  184. */
  185. public static function heroextra_star() {
  186. static $a = null;
  187. return self::initValue($a, 'heroextra_star');
  188. }
  189. /**
  190. * @return \sm_heroextra_star heroextra_staritem数据
  191. */
  192. public static function heroextra_star_getItem($itemid) {
  193. return self::get_hash_item('heroextra_star', $itemid);
  194. }
  195. /**
  196. * 英雄的升阶(消耗金币+ 属性加成)
  197. * @return \heroextra_dengjie
  198. */
  199. public static function heroextra_dengjie() {
  200. static $a = null;
  201. return self::initValue($a, 'heroextra_dengjie');
  202. }
  203. /**
  204. * @return \sm_heroextra_dengjie heroextra_dengjieitem数据
  205. */
  206. public static function heroextra_dengjie_getItem($itemid) {
  207. return self::get_hash_item('heroextra_dengjie', $itemid);
  208. }
  209. /**
  210. * 关卡
  211. * @return \gate
  212. */
  213. public static function gate() {
  214. static $a = null;
  215. return self::initValue($a, 'gate');
  216. }
  217. /**
  218. * @return \sm_gate gateitem数据
  219. */
  220. public static function gate_getItem($itemid) {
  221. return self::get_hash_item('gate', $itemid);
  222. }
  223. /**
  224. * 关卡波茨数据
  225. * @return \gatelevel
  226. */
  227. public static function gatelevel() {
  228. static $a = null;
  229. return self::initValue($a, 'gatelevel');
  230. }
  231. /**
  232. * @return \sm_gatelevel gatelevelitem数据
  233. */
  234. public static function gatelevel_getItem($itemid) {
  235. return self::get_hash_item('gatelevel', $itemid);
  236. }
  237. /**
  238. * 关卡—— 星级奖励
  239. * @return \gate_starreward
  240. */
  241. public static function gate_starreward() {
  242. static $a = null;
  243. return self::initValue($a, 'gate_starreward');
  244. }
  245. /**
  246. * @return \sm_gate_starreward gate_starrewarditem数据
  247. */
  248. public static function gate_starreward_getItem($itemid) {
  249. return self::get_hash_item('gate_starreward', $itemid);
  250. }
  251. /**
  252. * 任务
  253. * @return \task
  254. */
  255. public static function task() {
  256. static $a = null;
  257. return self::initValue($a, 'task');
  258. }
  259. /**
  260. * @return \sm_task taskitem数据
  261. */
  262. public static function task_getItem($itemid) {
  263. return self::get_hash_item('task', $itemid);
  264. }
  265. /**
  266. *
  267. * @return \playerlevel
  268. */
  269. public static function playerlevel() {
  270. static $a = null;
  271. return self::initValue($a, 'playerlevel');
  272. }
  273. /**
  274. * @return \sm_playerlevel playerlevelitem数据
  275. */
  276. public static function playerlevel_getItem($itemid) {
  277. return self::get_hash_item('playerlevel', $itemid);
  278. }
  279. /**
  280. * 技能升级消耗金币
  281. * @return \skill_shengji
  282. */
  283. public static function skill_shengji() {
  284. static $a = null;
  285. return self::initValue($a, 'skill_shengji');
  286. }
  287. /**
  288. * @return \sm_skill_shengji skill_shengjiitem数据
  289. */
  290. public static function skill_shengji_getItem($itemid) {
  291. return self::get_hash_item('skill_shengji', $itemid);
  292. }
  293. /**
  294. * 商城
  295. * @return \shop
  296. */
  297. public static function shop() {
  298. static $a = null;
  299. return self::initValue($a, 'shop');
  300. }
  301. /**
  302. * @return \sm_shop shopitem数据
  303. */
  304. public static function shop_getItem($itemid) {
  305. return self::get_hash_item('shop', $itemid);
  306. }
  307. /**
  308. * 停服计划
  309. * @return \service_schedule
  310. */
  311. public static function service_schedule() {
  312. static $a = null;
  313. return self::initValue($a, 'service_schedule');
  314. }
  315. /**
  316. * @return \sm_service_schedule service_scheduleitem数据
  317. */
  318. public static function service_schedule_getItem($itemid) {
  319. return self::get_hash_item('service_schedule', $itemid);
  320. }
  321. /**
  322. * 抽奖数据
  323. * @return \choujiang
  324. */
  325. public static function choujiang() {
  326. static $a = null;
  327. return self::initValue($a, 'choujiang');
  328. }
  329. /**
  330. * @return \sm_choujiang choujiangitem数据
  331. */
  332. public static function choujiang_getItem($itemid) {
  333. return self::get_hash_item('choujiang', $itemid);
  334. }
  335. /**
  336. * 无穷无尽关卡模式
  337. * @return \gate_forever
  338. */
  339. public static function gate_forever() {
  340. static $a = null;
  341. return self::initValue($a, 'gate_forever');
  342. }
  343. /**
  344. * @return \sm_gate_forever gate_foreveritem数据
  345. */
  346. public static function gate_forever_getItem($itemid) {
  347. return self::get_hash_item('gate_forever', $itemid);
  348. }
  349. /**
  350. * 系统邮件
  351. * @return \sysmail
  352. */
  353. public static function sysmail() {
  354. static $a = null;
  355. return self::initValue($a, 'sysmail');
  356. }
  357. /**
  358. * @return \sm_sysmail sysmailitem数据
  359. */
  360. public static function sysmail_getItem($itemid) {
  361. return self::get_hash_item('sysmail', $itemid);
  362. }
  363. /**
  364. * 关卡【副本】
  365. * @return \gate_carbon
  366. */
  367. public static function gate_carbon() {
  368. static $a = null;
  369. return self::initValue($a, 'gate_carbon');
  370. }
  371. /**
  372. * @return \sm_gate_carbon gate_carbonitem数据
  373. */
  374. public static function gate_carbon_getItem($itemid) {
  375. return self::get_hash_item('gate_carbon', $itemid);
  376. }
  377. /**
  378. * pvp分段奖励
  379. * @return \pvp_leaguereward
  380. */
  381. public static function pvp_leaguereward() {
  382. static $a = null;
  383. return self::initValue($a, 'pvp_leaguereward');
  384. }
  385. /**
  386. * @return \sm_pvp_leaguereward pvp_leaguerewarditem数据
  387. */
  388. public static function pvp_leaguereward_getItem($itemid) {
  389. return self::get_hash_item('pvp_leaguereward', $itemid);
  390. }
  391. /**
  392. * pvp 百名榜单奖励
  393. * @return \pvp_rankreward
  394. */
  395. public static function pvp_rankreward() {
  396. static $a = null;
  397. return self::initValue($a, 'pvp_rankreward');
  398. }
  399. /**
  400. * @return \sm_pvp_rankreward pvp_rankrewarditem数据
  401. */
  402. public static function pvp_rankreward_getItem($itemid) {
  403. return self::get_hash_item('pvp_rankreward', $itemid);
  404. }
  405. /**
  406. * pvp_ 分数段
  407. * @return \pvp_leaguescore
  408. */
  409. public static function pvp_leaguescore() {
  410. static $a = null;
  411. return self::initValue($a, 'pvp_leaguescore');
  412. }
  413. /**
  414. * @return \sm_pvp_leaguescore pvp_leaguescoreitem数据
  415. */
  416. public static function pvp_leaguescore_getItem($itemid) {
  417. return self::get_hash_item('pvp_leaguescore', $itemid);
  418. }
  419. /**
  420. * 熔炼实验室
  421. * @return \smelting
  422. */
  423. public static function smelting() {
  424. static $a = null;
  425. return self::initValue($a, 'smelting');
  426. }
  427. /**
  428. * @return \sm_smelting smeltingitem数据
  429. */
  430. public static function smelting_getItem($itemid) {
  431. return self::get_hash_item('smelting', $itemid);
  432. }
  433. /**
  434. * 配置的关卡相关的战斗数据
  435. * @return \gate_combat
  436. */
  437. public static function gate_combat() {
  438. static $a = null;
  439. return self::initValue($a, 'gate_combat');
  440. }
  441. /**
  442. * @return \sm_gate_combat gate_combatitem数据
  443. */
  444. public static function gate_combat_getItem($itemid) {
  445. return self::get_hash_item('gate_combat', $itemid);
  446. }
  447. /**
  448. *
  449. * @return \gate_carbon_content
  450. */
  451. public static function gate_carbon_content() {
  452. static $a = null;
  453. return self::initValue($a, 'gate_carbon_content');
  454. }
  455. /**
  456. * @return \sm_gate_carbon_content gate_carbon_contentitem数据
  457. */
  458. public static function gate_carbon_content_getItem($itemid) {
  459. return self::get_hash_item('gate_carbon_content', $itemid);
  460. }
  461. /**
  462. * pvp活跃奖励数据
  463. * @return \pvp_activityreward
  464. */
  465. public static function pvp_activityreward() {
  466. static $a = null;
  467. return self::initValue($a, 'pvp_activityreward');
  468. }
  469. /**
  470. * @return \sm_pvp_activityreward pvp_activityrewarditem数据
  471. */
  472. public static function pvp_activityreward_getItem($itemid) {
  473. return self::get_hash_item('pvp_activityreward', $itemid);
  474. }
  475. /**
  476. * 抽奖保底数据
  477. * @return \choujiang_baodi
  478. */
  479. public static function choujiang_baodi() {
  480. static $a = null;
  481. return self::initValue($a, 'choujiang_baodi');
  482. }
  483. /**
  484. * @return \sm_choujiang_baodi choujiang_baodiitem数据
  485. */
  486. public static function choujiang_baodi_getItem($typeId, $cishu) {
  487. return self::get_hash_item('choujiang_baodi', "$typeId-$cishu");
  488. }
  489. /**
  490. * 英雄的升级——成长可消耗的道具表
  491. * @return \hero_levelexp_costitem
  492. */
  493. public static function hero_levelexp_costitem() {
  494. static $a = null;
  495. return self::initValue($a, 'hero_levelexp_costitem');
  496. }
  497. /**
  498. * @return \sm_hero_levelexp_costitem hero_levelexp_costitemitem数据
  499. */
  500. public static function hero_levelexp_costitem_getItem($itemid) {
  501. return self::get_hash_item('hero_levelexp_costitem', $itemid);
  502. }
  503. /**
  504. * 抽奖设置数据
  505. * @return \choujiang_settings
  506. */
  507. public static function choujiang_settings() {
  508. static $a = null;
  509. return self::initValue($a, 'choujiang_settings');
  510. }
  511. /**
  512. * @return \sm_choujiang_settings choujiang_settingsitem数据
  513. */
  514. public static function choujiang_settings_getItem($itemid) {
  515. return self::get_hash_item('choujiang_settings', $itemid);
  516. }
  517. /**
  518. * 成就任务
  519. * @return \task_achi
  520. */
  521. public static function task_achi() {
  522. static $a = null;
  523. return self::initValue($a, 'task_achi');
  524. }
  525. /**
  526. * @return \sm_task_achi task_achiitem数据
  527. */
  528. public static function task_achi_getItem($itemid) {
  529. return self::get_hash_item('task_achi', $itemid);
  530. }
  531. /**
  532. * 宝箱
  533. * @return \box
  534. */
  535. public static function box() {
  536. static $a = null;
  537. return self::initValue($a, 'box');
  538. }
  539. /**
  540. * @return \sm_box boxitem数据
  541. */
  542. public static function box_getItem($itemid) {
  543. return self::get_hash_item('box', $itemid);
  544. }
  545. /**
  546. * 宝箱的奖池
  547. * @return \boxpool
  548. */
  549. public static function boxpool() {
  550. static $a = null;
  551. return self::initValue($a, 'boxpool');
  552. }
  553. /**
  554. * @return \sm_boxpool boxpoolitem数据
  555. */
  556. public static function boxpool_getItem($itemid) {
  557. return self::get_hash_item('boxpool', $itemid);
  558. }
  559. /**
  560. * 英雄————神血系统
  561. * @return \heroextra_godblood
  562. */
  563. public static function heroextra_godblood() {
  564. static $a = null;
  565. return self::initValue($a, 'heroextra_godblood');
  566. }
  567. /**
  568. * @return \sm_heroextra_godblood heroextra_godblooditem数据
  569. */
  570. public static function heroextra_godblood_getItem($itemid) {
  571. return self::get_hash_item('heroextra_godblood', $itemid);
  572. }
  573. /**
  574. * 碎片
  575. * @return \segment
  576. */
  577. public static function segment() {
  578. static $a = null;
  579. return self::initValue($a, 'segment');
  580. }
  581. /**
  582. * @return \sm_segment segmentitem数据
  583. */
  584. public static function segment_getItem($itemid) {
  585. return self::get_hash_item('segment', $itemid);
  586. }
  587. /**
  588. *
  589. * @return \gate_world
  590. */
  591. public static function gate_world() {
  592. static $a = null;
  593. return self::initValue($a, 'gate_world');
  594. }
  595. /**
  596. * @return \sm_gate_world gate_worlditem数据
  597. */
  598. public static function gate_world_getItem($itemid) {
  599. return self::get_hash_item('gate_world', $itemid);
  600. }
  601. /**
  602. *
  603. * @return \gate_city
  604. */
  605. public static function gate_city() {
  606. static $a = null;
  607. return self::initValue($a, 'gate_city');
  608. }
  609. /**
  610. * @return \sm_gate_city gate_cityitem数据
  611. */
  612. public static function gate_city_getItem($itemid) {
  613. return self::get_hash_item('gate_city', $itemid);
  614. }
  615. /**
  616. * 神秘商城道具表-by goodstype
  617. * @return \secretshop_goodsType
  618. */
  619. public static function secretshop_goodsType() {
  620. static $a = null;
  621. return self::initValue($a, 'secretshop_goodsType');
  622. }
  623. /**
  624. * @return \sm_secretshop_goodsType secretshop_goodsTypeitem数据
  625. */
  626. public static function secretshop_goodsType_getItem($itemid) {
  627. return self::get_hash_item('secretshop_goodsType', $itemid);
  628. }
  629. /**
  630. * 神秘商城刷新价格表
  631. * @return \secretshop_refresh
  632. */
  633. public static function secretshop_refresh() {
  634. static $a = null;
  635. return self::initValue($a, 'secretshop_refresh');
  636. }
  637. /**
  638. * @return \sm_secretshop_refresh secretshop_refreshitem数据
  639. */
  640. public static function secretshop_refresh_getItem($itemid) {
  641. return self::get_hash_item('secretshop_refresh', $itemid);
  642. }
  643. /**
  644. * 神秘商城道具表-by typeId
  645. * @return \secretshop_typeId
  646. */
  647. public static function secretshop_typeId() {
  648. static $a = null;
  649. return self::initValue($a, 'secretshop_typeId');
  650. }
  651. /**
  652. * @return \sm_secretshop_typeId secretshop_typeIditem数据
  653. */
  654. public static function secretshop_typeId_getItem($itemid) {
  655. return self::get_hash_item('secretshop_typeId', $itemid);
  656. }
  657. /**
  658. * 客户端版本信息
  659. * @return \clientVersionHistory
  660. */
  661. public static function clientVersionHistory() {
  662. static $a = null;
  663. return self::initValue($a, 'clientVersionHistory');
  664. }
  665. /**
  666. * @return \sm_clientVersionHistory clientVersionHistoryitem数据
  667. */
  668. public static function clientVersionHistory_getItem($itemid) {
  669. return self::get_hash_item('clientVersionHistory', $itemid);
  670. }
  671. /**
  672. * 分区列表
  673. * @return \zonelist
  674. */
  675. public static function zonelist() {
  676. static $a = null;
  677. return self::initValue($a, 'zonelist');
  678. }
  679. /**
  680. * @return \sm_zonelist zonelistitem数据
  681. */
  682. public static function zonelist_getItem($itemid) {
  683. return self::get_hash_item('zonelist', $itemid);
  684. }
  685. /**
  686. * 兑换码礼包
  687. * @return \tokenGift
  688. */
  689. public static function tokenGift() {
  690. static $a = null;
  691. return self::initValue($a, 'tokenGift');
  692. }
  693. /**
  694. * @return \sm_tokenGift tokenGiftitem数据
  695. */
  696. public static function tokenGift_getItem($itemid) {
  697. return self::get_hash_item('tokenGift', $itemid);
  698. }
  699. /**
  700. * 活动配置
  701. * @return \activity
  702. */
  703. public static function activity() {
  704. static $a = null;
  705. return self::initValue($a, 'activity');
  706. }
  707. /**
  708. * @return \sm_activity activityitem数据
  709. */
  710. public static function activity_getItem($itemid) {
  711. return self::get_hash_item('activity', $itemid);
  712. }
  713. /**
  714. * 碎片融合的概率表
  715. * @return \segment_ronghe
  716. */
  717. public static function segment_ronghe() {
  718. static $a = null;
  719. return self::initValue($a, 'segment_ronghe');
  720. }
  721. /**
  722. * @return \sm_segment_ronghe segment_rongheitem数据
  723. */
  724. public static function segment_ronghe_getItem($itemid) {
  725. return self::get_hash_item('segment_ronghe', $itemid);
  726. }
  727. /**
  728. * 碎片_按品质索引
  729. * @return \segment_byPinzhi
  730. */
  731. public static function segment_byPinzhi() {
  732. static $a = null;
  733. return self::initValue($a, 'segment_byPinzhi');
  734. }
  735. /**
  736. * @return \sm_segment_byPinzhi segment_byPinzhiitem数据
  737. */
  738. public static function segment_byPinzhi_getItem($quailty, $itemType) {
  739. return self::get_hash_item('segment_byPinzhi', $quailty)->$itemType;
  740. }
  741. /**
  742. * 宝箱经验卡掉落数据
  743. * @return \boxJingYanCards
  744. */
  745. public static function boxJingYanCards() {
  746. static $a = null;
  747. return self::initValue($a, 'boxJingYanCards');
  748. }
  749. /**
  750. * @return \sm_boxJingYanCards boxJingYanCardsitem数据
  751. */
  752. public static function boxJingYanCards_getItem($itemid) {
  753. return self::get_hash_item('boxJingYanCards', $itemid);
  754. }
  755. /**
  756. * 活动: 在线礼包
  757. * @return \activity_onlinegift
  758. */
  759. public static function activity_onlinegift() {
  760. static $a = null;
  761. return self::initValue($a, 'activity_onlinegift');
  762. }
  763. /**
  764. * @return \sm_activity_onlinegift activity_onlinegiftitem数据
  765. */
  766. public static function activity_onlinegift_getItem($itemid) {
  767. return self::get_hash_item('activity_onlinegift', $itemid);
  768. }
  769. /**
  770. * GM号的UID
  771. * @return \GM_uids
  772. */
  773. public static function GM_uids() {
  774. static $a = null;
  775. return self::initValue($a, 'GM_uids');
  776. }
  777. /**
  778. * @return \GM_uids GM_uidsitem数据
  779. */
  780. public static function GM_uids_getItem($itemid) {
  781. return self::get_hash_item('GM_uids', $itemid);
  782. }
  783. /**
  784. * 活动, 全服注册礼包
  785. * @return \activity_reggift
  786. */
  787. public static function activity_reggift() {
  788. static $a = null;
  789. return self::initValue($a, 'activity_reggift');
  790. }
  791. /**
  792. * @return \sm_activity_reggift activity_reggiftitem数据
  793. */
  794. public static function activity_reggift_getItem($itemid) {
  795. return self::get_hash_item('activity_reggift', $itemid);
  796. }
  797. /**
  798. * 公会捐献卡牌奖励
  799. * @return \guilddonatereward
  800. */
  801. public static function guilddonatereward() {
  802. static $a = null;
  803. return self::initValue($a, 'guilddonatereward');
  804. }
  805. /**
  806. * @return \sm_guilddonatereward guilddonaterewarditem数据
  807. */
  808. public static function guilddonatereward_getItem($itemid) {
  809. return self::get_hash_item('guilddonatereward', $itemid);
  810. }
  811. /**
  812. * 公会等级相关数据
  813. * @return \guildlevel
  814. */
  815. public static function guildlevel() {
  816. static $a = null;
  817. return self::initValue($a, 'guildlevel');
  818. }
  819. /**
  820. * @return \sm_guildlevel guildlevelitem数据
  821. */
  822. public static function guildlevel_getItem($itemid) {
  823. return self::get_hash_item('guildlevel', $itemid);
  824. }
  825. /**
  826. * 公会礼包
  827. * @return \guildlibao
  828. */
  829. public static function guildlibao() {
  830. static $a = null;
  831. return self::initValue($a, 'guildlibao');
  832. }
  833. /**
  834. * @return \sm_guildlibao guildlibaoitem数据
  835. */
  836. public static function guildlibao_getItem($itemid) {
  837. return self::get_hash_item('guildlibao', $itemid);
  838. }
  839. /**
  840. * 玩家初始化数据
  841. * @return \primordial_data
  842. */
  843. public static function primordial_data() {
  844. static $a = null;
  845. return self::initValue($a, 'primordial_data');
  846. }
  847. /**
  848. * @return \primordial_data primordial_dataitem数据
  849. */
  850. public static function primordial_data_getItem($itemid) {
  851. return self::get_hash_item('primordial_data', $itemid);
  852. }
  853. /**
  854. * 英雄技能升级的限定
  855. * @return \heroextra_jinengshengji
  856. */
  857. public static function heroextra_jinengshengji() {
  858. static $a = null;
  859. return self::initValue($a, 'heroextra_jinengshengji');
  860. }
  861. /**
  862. * @return \sm_heroextra_jinengshengji heroextra_jinengshengjiitem数据
  863. */
  864. public static function heroextra_jinengshengji_getItem($itemid) {
  865. return self::get_hash_item('heroextra_jinengshengji', $itemid);
  866. }
  867. /**
  868. * 当前版本(时间戳)
  869. * @return \ver
  870. */
  871. public static function ver() {
  872. static $a = null;
  873. return self::initValue($a, 'ver', false);
  874. }
  875. /**
  876. * 客户端配置数据
  877. * @return \client
  878. */
  879. public static function client() {
  880. static $a = null;
  881. return self::initValue($a, 'client', false);
  882. }
  883. }