GameConfig.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020
  1. <?php
  2. ////////////////////
  3. // 由CodeGenerator创建。
  4. // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  5. // author: gwang
  6. // 日期: 2019-10-30 16:37:16
  7. ////////////////////
  8. namespace loyalsoft;
  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($itemid) {
  103. return self::get_hash_item('heroextra_level', $itemid);
  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 \ver
  880. */
  881. public static function ver() {
  882. static $a = null;
  883. return self::initValue($a, 'ver', false);
  884. }
  885. /**
  886. * 客户端配置数据
  887. * @return \client
  888. */
  889. public static function client() {
  890. static $a = null;
  891. return self::initValue($a, 'client', false);
  892. }
  893. }