GameConfig.php 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221
  1. <?php
  2. namespace loyalsoft;
  3. ////////////////////
  4. // 由CodeGenerator创建。
  5. // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  6. // author: gwang
  7. // 日期: 2020-07-08 16:38:44
  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 \item_yanling
  276. */
  277. public static function item_yanling() {
  278. static $a = null;
  279. return self::initValue($a, 'item_yanling');
  280. }
  281. /**
  282. * @return \sm_item_yanling item_yanling item数据
  283. */
  284. public static function item_yanling_getItem($itemid) {
  285. return self::get_hash_item('item_yanling', $itemid);
  286. }
  287. /**
  288. * 技能升级消耗金币
  289. * @return \skill_upgrade_cost
  290. */
  291. public static function skill_upgrade_cost() {
  292. static $a = null;
  293. return self::initValue($a, 'skill_upgrade_cost');
  294. }
  295. /**
  296. * @return \sm_skill_upgrade_cost skill_upgrade_cost item数据
  297. */
  298. public static function skill_upgrade_cost_getItem($itemid) {
  299. return self::get_hash_item('skill_upgrade_cost', $itemid);
  300. }
  301. /**
  302. * 商城
  303. * @return \shop
  304. */
  305. public static function shop() {
  306. static $a = null;
  307. return self::initValue($a, 'shop');
  308. }
  309. /**
  310. * @return \sm_shop shop item数据
  311. */
  312. public static function shop_getItem($itemid) {
  313. return self::get_hash_item('shop', $itemid);
  314. }
  315. /**
  316. * 停服计划
  317. * @return \service_schedule
  318. */
  319. public static function service_schedule() {
  320. static $a = null;
  321. return self::initValue($a, 'service_schedule');
  322. }
  323. /**
  324. * @return \sm_service_schedule service_schedule item数据
  325. */
  326. public static function service_schedule_getItem($itemid) {
  327. return self::get_hash_item('service_schedule', $itemid);
  328. }
  329. /**
  330. * 抽奖数据
  331. * @return \choujiang
  332. */
  333. public static function choujiang() {
  334. static $a = null;
  335. return self::initValue($a, 'choujiang');
  336. }
  337. /**
  338. * 无穷无尽关卡模式
  339. * @return \gate_forever
  340. */
  341. public static function gate_forever() {
  342. static $a = null;
  343. return self::initValue($a, 'gate_forever');
  344. }
  345. /**
  346. * @return \sm_gate_forever gate_forever item数据
  347. */
  348. public static function gate_forever_getItem($itemid) {
  349. return self::get_hash_item('gate_forever', $itemid);
  350. }
  351. /**
  352. * 系统邮件
  353. * @return \sysmail
  354. */
  355. public static function sysmail() {
  356. static $a = null;
  357. return self::initValue($a, 'sysmail');
  358. }
  359. /**
  360. * @return \sm_sysmail sysmail item数据
  361. */
  362. public static function sysmail_getItem($itemid) {
  363. return self::get_hash_item('sysmail', $itemid);
  364. }
  365. /**
  366. * 关卡【副本】
  367. * @return \gate_carbon
  368. */
  369. public static function gate_carbon() {
  370. static $a = null;
  371. return self::initValue($a, 'gate_carbon');
  372. }
  373. /**
  374. * @return \sm_gate_carbon gate_carbon item数据
  375. */
  376. public static function gate_carbon_getItem($itemid) {
  377. return self::get_hash_item('gate_carbon', $itemid);
  378. }
  379. /**
  380. * 竞技场 上榜单奖励
  381. * @return \pvp_rankreward
  382. */
  383. public static function pvp_rankreward() {
  384. static $a = null;
  385. return self::initValue($a, 'pvp_rankreward');
  386. }
  387. /**
  388. * @return \sm_pvp_rankreward pvp_rankreward item数据
  389. */
  390. public static function pvp_rankreward_getItem($itemid) {
  391. return self::get_hash_item('pvp_rankreward', $itemid);
  392. }
  393. /**
  394. * 竞技 商店
  395. * @return \pvp_shop
  396. */
  397. public static function pvp_shop() {
  398. static $a = null;
  399. return self::initValue($a, 'pvp_shop');
  400. }
  401. /**
  402. * @return \sm_pvp_shop pvp_shop item数据
  403. */
  404. public static function pvp_shop_getItem($itemid) {
  405. return self::get_hash_item('pvp_shop', $itemid);
  406. }
  407. /**
  408. * 熔炼实验室
  409. * @return \smelting
  410. */
  411. public static function smelting() {
  412. static $a = null;
  413. return self::initValue($a, 'smelting');
  414. }
  415. /**
  416. * @return \sm_smelting smelting item数据
  417. */
  418. public static function smelting_getItem($itemid) {
  419. return self::get_hash_item('smelting', $itemid);
  420. }
  421. /**
  422. * 配置的关卡相关的战斗数据
  423. * @return \gate_combat
  424. */
  425. public static function gate_combat() {
  426. static $a = null;
  427. return self::initValue($a, 'gate_combat');
  428. }
  429. /**
  430. * @return \sm_gate_combat gate_combat item数据
  431. */
  432. public static function gate_combat_getItem($itemid) {
  433. return self::get_hash_item('gate_combat', $itemid);
  434. }
  435. /**
  436. *
  437. * @return \gate_carbon_content
  438. */
  439. public static function gate_carbon_content() {
  440. static $a = null;
  441. return self::initValue($a, 'gate_carbon_content');
  442. }
  443. /**
  444. * @return \sm_gate_carbon_content gate_carbon_content item数据
  445. */
  446. public static function gate_carbon_content_getItem($itemid) {
  447. return self::get_hash_item('gate_carbon_content', $itemid);
  448. }
  449. /**
  450. * 抽奖保底数据
  451. * @return \choujiang_baodi
  452. */
  453. public static function choujiang_baodi() {
  454. static $a = null;
  455. return self::initValue($a, 'choujiang_baodi');
  456. }
  457. /**
  458. * @return \sm_choujiang_baodi choujiang_baodi item数据
  459. */
  460. public static function choujiang_baodi_getItem($typeId, $cishu) {
  461. return self::get_hash_item('choujiang_baodi', "$typeId-$cishu");
  462. }
  463. /**
  464. * 英雄的升级——成长可消耗的道具表
  465. * @return \hero_levelexp_costitem
  466. */
  467. public static function hero_levelexp_costitem() {
  468. static $a = null;
  469. return self::initValue($a, 'hero_levelexp_costitem');
  470. }
  471. /**
  472. * @return \sm_hero_levelexp_costitem hero_levelexp_costitem item数据
  473. */
  474. public static function hero_levelexp_costitem_getItem($itemid) {
  475. return self::get_hash_item('hero_levelexp_costitem', $itemid);
  476. }
  477. /**
  478. * 抽奖设置数据
  479. * @return \choujiang_settings
  480. */
  481. public static function choujiang_settings() {
  482. static $a = null;
  483. return self::initValue($a, 'choujiang_settings');
  484. }
  485. /**
  486. * @return \sm_choujiang_settings choujiang_settings item数据
  487. */
  488. public static function choujiang_settings_getItem($itemid) {
  489. return self::get_hash_item('choujiang_settings', $itemid);
  490. }
  491. /**
  492. * 引导步骤
  493. * @return \guide_step
  494. */
  495. public static function guide_step() {
  496. static $a = null;
  497. return self::initValue($a, 'guide_step');
  498. }
  499. /**
  500. * @return \sm_guide_step guide_step item数据
  501. */
  502. public static function guide_step_getItem($itemid) {
  503. return self::get_hash_item('guide_step', $itemid);
  504. }
  505. /**
  506. * 引导触发
  507. * @return \guide_trigger
  508. */
  509. public static function guide_trigger() {
  510. static $a = null;
  511. return self::initValue($a, 'guide_trigger');
  512. }
  513. /**
  514. * @return \sm_guide_trigger guide_trigger item数据
  515. */
  516. public static function guide_trigger_getItem($itemid) {
  517. return self::get_hash_item('guide_trigger', $itemid);
  518. }
  519. /**
  520. * 任务节点
  521. * @return \task_node
  522. */
  523. public static function task_node() {
  524. static $a = null;
  525. return self::initValue($a, 'task_node');
  526. }
  527. /**
  528. * @return \sm_task_node task_node item数据
  529. */
  530. public static function task_node_getItem($itemid) {
  531. return self::get_hash_item('task_node', $itemid);
  532. }
  533. /**
  534. * 宝箱
  535. * @return \box
  536. */
  537. public static function box() {
  538. static $a = null;
  539. return self::initValue($a, 'box');
  540. }
  541. /**
  542. * @return \sm_box box item数据
  543. */
  544. public static function box_getItem($itemid) {
  545. return self::get_hash_item('box', $itemid);
  546. }
  547. /**
  548. * 宝箱的奖池
  549. * @return \boxpool
  550. */
  551. public static function boxpool() {
  552. static $a = null;
  553. return self::initValue($a, 'boxpool');
  554. }
  555. /**
  556. * @return \sm_boxpool boxpool item数据
  557. */
  558. public static function boxpool_getItem($itemid) {
  559. return self::get_hash_item('boxpool', $itemid);
  560. }
  561. /**
  562. * 英雄————神血系统
  563. * @return \heroextra_godblood
  564. */
  565. public static function heroextra_godblood() {
  566. static $a = null;
  567. return self::initValue($a, 'heroextra_godblood');
  568. }
  569. /**
  570. * @return \sm_heroextra_godblood heroextra_godblood item数据
  571. */
  572. public static function heroextra_godblood_getItem($itemid) {
  573. return self::get_hash_item('heroextra_godblood', $itemid);
  574. }
  575. /**
  576. * 碎片
  577. * @return \segment
  578. */
  579. public static function segment() {
  580. static $a = null;
  581. return self::initValue($a, 'segment');
  582. }
  583. /**
  584. * @return \sm_segment segment item数据
  585. */
  586. public static function segment_getItem($itemid) {
  587. return self::get_hash_item('segment', $itemid);
  588. }
  589. /**
  590. *
  591. * @return \gate_world
  592. */
  593. public static function gate_world() {
  594. static $a = null;
  595. return self::initValue($a, 'gate_world');
  596. }
  597. /**
  598. * @return \sm_gate_world gate_world item数据
  599. */
  600. public static function gate_world_getItem($itemid) {
  601. return self::get_hash_item('gate_world', $itemid);
  602. }
  603. /**
  604. *
  605. * @return \gate_city
  606. */
  607. public static function gate_city() {
  608. static $a = null;
  609. return self::initValue($a, 'gate_city');
  610. }
  611. /**
  612. * @return \sm_gate_city gate_city item数据
  613. */
  614. public static function gate_city_getItem($itemid) {
  615. return self::get_hash_item('gate_city', $itemid);
  616. }
  617. /**
  618. * 神秘商城道具表-by goodstype
  619. * @return \secretshop_goodsType
  620. */
  621. public static function secretshop_goodsType() {
  622. static $a = null;
  623. return self::initValue($a, 'secretshop_goodsType');
  624. }
  625. /**
  626. * @return \sm_secretshop_goodsType secretshop_goodsType item数据
  627. */
  628. public static function secretshop_goodsType_getItem($itemid) {
  629. return self::get_hash_item('secretshop_goodsType', $itemid);
  630. }
  631. /**
  632. * 神秘商城刷新价格表
  633. * @return \secretshop_refresh
  634. */
  635. public static function secretshop_refresh() {
  636. static $a = null;
  637. return self::initValue($a, 'secretshop_refresh');
  638. }
  639. /**
  640. * @return \sm_secretshop_refresh secretshop_refresh item数据
  641. */
  642. public static function secretshop_refresh_getItem($itemid) {
  643. return self::get_hash_item('secretshop_refresh', $itemid);
  644. }
  645. /**
  646. * 神秘商城道具表-by typeId
  647. * @return \secretshop_typeId
  648. */
  649. public static function secretshop_typeId() {
  650. static $a = null;
  651. return self::initValue($a, 'secretshop_typeId');
  652. }
  653. /**
  654. * @return \sm_secretshop_typeId secretshop_typeId item数据
  655. */
  656. public static function secretshop_typeId_getItem($itemid) {
  657. return self::get_hash_item('secretshop_typeId', $itemid);
  658. }
  659. /**
  660. * 客户端版本信息
  661. * @return \clientVersionHistory
  662. */
  663. public static function clientVersionHistory() {
  664. static $a = null;
  665. return self::initValue($a, 'clientVersionHistory');
  666. }
  667. /**
  668. * @return \sm_clientVersionHistory clientVersionHistory item数据
  669. */
  670. public static function clientVersionHistory_getItem($itemid) {
  671. return self::get_hash_item('clientVersionHistory', $itemid);
  672. }
  673. /**
  674. * 分区列表
  675. * @return \zonelist
  676. */
  677. public static function zonelist() {
  678. static $a = null;
  679. return self::initValue($a, 'zonelist');
  680. }
  681. /**
  682. * @return \sm_zonelist zonelist item数据
  683. */
  684. public static function zonelist_getItem($itemid) {
  685. return self::get_hash_item('zonelist', $itemid);
  686. }
  687. /**
  688. * 兑换码礼包
  689. * @return \tokenGift
  690. */
  691. public static function tokenGift() {
  692. static $a = null;
  693. return self::initValue($a, 'tokenGift');
  694. }
  695. /**
  696. * @return \sm_tokenGift tokenGift item数据
  697. */
  698. public static function tokenGift_getItem($itemid) {
  699. return self::get_hash_item('tokenGift', $itemid);
  700. }
  701. /**
  702. * 活动配置
  703. * @return \activity
  704. */
  705. public static function activity() {
  706. static $a = null;
  707. return self::initValue($a, 'activity');
  708. }
  709. /**
  710. * @return \sm_activity activity item数据
  711. */
  712. public static function activity_getItem($itemid) {
  713. return self::get_hash_item('activity', $itemid);
  714. }
  715. /**
  716. * 碎片融合的概率表
  717. * @return \segment_ronghe
  718. */
  719. public static function segment_ronghe() {
  720. static $a = null;
  721. return self::initValue($a, 'segment_ronghe');
  722. }
  723. /**
  724. * @return \sm_segment_ronghe segment_ronghe item数据
  725. */
  726. public static function segment_ronghe_getItem($itemid) {
  727. return self::get_hash_item('segment_ronghe', $itemid);
  728. }
  729. /**
  730. * 碎片_按品质索引
  731. * @return \segment_byPinzhi
  732. */
  733. public static function segment_byPinzhi() {
  734. static $a = null;
  735. return self::initValue($a, 'segment_byPinzhi');
  736. }
  737. /**
  738. * @return \sm_segment_byPinzhi segment_byPinzhi item数据
  739. */
  740. public static function segment_byPinzhi_getItem($quailty, $itemType) {
  741. return self::get_hash_item('segment_byPinzhi', $quailty)->$itemType;
  742. }
  743. /**
  744. * 宝箱经验卡掉落数据
  745. * @return \boxJingYanCards
  746. */
  747. public static function boxJingYanCards() {
  748. static $a = null;
  749. return self::initValue($a, 'boxJingYanCards');
  750. }
  751. /**
  752. * @return \sm_boxJingYanCards boxJingYanCards item数据
  753. */
  754. public static function boxJingYanCards_getItem($itemid) {
  755. return self::get_hash_item('boxJingYanCards', $itemid);
  756. }
  757. /**
  758. * 活动: 在线礼包
  759. * @return \activity_onlinegift
  760. */
  761. public static function activity_onlinegift() {
  762. static $a = null;
  763. return self::initValue($a, 'activity_onlinegift');
  764. }
  765. /**
  766. * @return \sm_activity_onlinegift activity_onlinegift item数据
  767. */
  768. public static function activity_onlinegift_getItem($itemid) {
  769. return self::get_hash_item('activity_onlinegift', $itemid);
  770. }
  771. /**
  772. * GM号的UID
  773. * @return \GM_uids
  774. */
  775. public static function GM_uids() {
  776. static $a = null;
  777. return self::initValue($a, 'GM_uids');
  778. }
  779. /**
  780. * 活动, 全服注册礼包
  781. * @return \activity_reggift
  782. */
  783. public static function activity_reggift() {
  784. static $a = null;
  785. return self::initValue($a, 'activity_reggift');
  786. }
  787. /**
  788. * @return \sm_activity_reggift activity_reggift item数据
  789. */
  790. public static function activity_reggift_getItem($itemid) {
  791. return self::get_hash_item('activity_reggift', $itemid);
  792. }
  793. /**
  794. * 公会捐献卡牌奖励
  795. * @return \guilddonatereward
  796. */
  797. public static function guilddonatereward() {
  798. static $a = null;
  799. return self::initValue($a, 'guilddonatereward');
  800. }
  801. /**
  802. * @return \sm_guilddonatereward guilddonatereward item数据
  803. */
  804. public static function guilddonatereward_getItem($itemid) {
  805. return self::get_hash_item('guilddonatereward', $itemid);
  806. }
  807. /**
  808. * 公会等级相关数据
  809. * @return \guildlevel
  810. */
  811. public static function guildlevel() {
  812. static $a = null;
  813. return self::initValue($a, 'guildlevel');
  814. }
  815. /**
  816. * @return \sm_guildlevel guildlevel item数据
  817. */
  818. public static function guildlevel_getItem($itemid) {
  819. return self::get_hash_item('guildlevel', $itemid);
  820. }
  821. /**
  822. * 公会礼包
  823. * @return \guildlibao
  824. */
  825. public static function guildlibao() {
  826. static $a = null;
  827. return self::initValue($a, 'guildlibao');
  828. }
  829. /**
  830. * @return \sm_guildlibao guildlibao item数据
  831. */
  832. public static function guildlibao_getItem($itemid) {
  833. return self::get_hash_item('guildlibao', $itemid);
  834. }
  835. /**
  836. * 玩家初始化数据
  837. * @return \primordial_data
  838. */
  839. public static function primordial_data() {
  840. static $a = null;
  841. return self::initValue($a, 'primordial_data');
  842. }
  843. /**
  844. * 英雄技能升级的限定
  845. * @return \heroextra_skill_lv_limit
  846. */
  847. public static function heroextra_skill_lv_limit() {
  848. static $a = null;
  849. return self::initValue($a, 'heroextra_skill_lv_limit');
  850. }
  851. /**
  852. * @return \sm_heroextra_skill_lv_limit heroextra_skill_lv_limit item数据
  853. */
  854. public static function heroextra_skill_lv_limit_getItem($itemid) {
  855. return self::get_hash_item('heroextra_skill_lv_limit', $itemid);
  856. }
  857. /**
  858. * 武器类道具
  859. * @return \item_weapon
  860. */
  861. public static function item_weapon() {
  862. static $a = null;
  863. return self::initValue($a, 'item_weapon');
  864. }
  865. /**
  866. * @return \sm_item_weapon item_weapon item数据
  867. */
  868. public static function item_weapon_getItem($itemid) {
  869. return self::get_hash_item('item_weapon', $itemid);
  870. }
  871. /**
  872. * 礼包类道具
  873. * @return \item_package
  874. */
  875. public static function item_package() {
  876. static $a = null;
  877. return self::initValue($a, 'item_package');
  878. }
  879. /**
  880. * @return \sm_item_package item_package item数据
  881. */
  882. public static function item_package_getItem($itemid) {
  883. return self::get_hash_item('item_package', $itemid);
  884. }
  885. /**
  886. * 强化类道具
  887. * @return \item_stones
  888. */
  889. public static function item_stones() {
  890. static $a = null;
  891. return self::initValue($a, 'item_stones');
  892. }
  893. /**
  894. * @return \sm_item_stones item_stones item数据
  895. */
  896. public static function item_stones_getItem($itemid) {
  897. return self::get_hash_item('item_stones', $itemid);
  898. }
  899. /**
  900. * 药水类道具
  901. * @return \item_pills
  902. */
  903. public static function item_pills() {
  904. static $a = null;
  905. return self::initValue($a, 'item_pills');
  906. }
  907. /**
  908. * @return \sm_item_pills item_pills item数据
  909. */
  910. public static function item_pills_getItem($itemid) {
  911. return self::get_hash_item('item_pills', $itemid);
  912. }
  913. /**
  914. * buff类道具
  915. * @return \item_buffcard
  916. */
  917. public static function item_buffcard() {
  918. static $a = null;
  919. return self::initValue($a, 'item_buffcard');
  920. }
  921. /**
  922. * @return \sm_item_buffcard item_buffcard item数据
  923. */
  924. public static function item_buffcard_getItem($itemid) {
  925. return self::get_hash_item('item_buffcard', $itemid);
  926. }
  927. /**
  928. * 碎片类道具
  929. * @return \item_segment
  930. */
  931. public static function item_segment() {
  932. static $a = null;
  933. return self::initValue($a, 'item_segment');
  934. }
  935. /**
  936. * @return \sm_item_segment item_segment item数据
  937. */
  938. public static function item_segment_getItem($itemid) {
  939. return self::get_hash_item('item_segment', $itemid);
  940. }
  941. /**
  942. * 道具通用字段表
  943. * @return \item_base
  944. */
  945. public static function item_base() {
  946. static $a = null;
  947. return self::initValue($a, 'item_base');
  948. }
  949. /**
  950. * @return \sm_item_base item_base item数据
  951. */
  952. public static function item_base_getItem($itemid) {
  953. return self::get_hash_item('item_base', $itemid);
  954. }
  955. /**
  956. * 子技能表
  957. * @return \subSkill
  958. */
  959. public static function subSkill() {
  960. static $a = null;
  961. return self::initValue($a, 'subSkill');
  962. }
  963. /**
  964. * @return \sm_subSkill subSkill item数据
  965. */
  966. public static function subSkill_getItem($itemid) {
  967. return self::get_hash_item('subSkill', $itemid);
  968. }
  969. /**
  970. * 宝箱类道具
  971. * @return \item_box
  972. */
  973. public static function item_box() {
  974. static $a = null;
  975. return self::initValue($a, 'item_box');
  976. }
  977. /**
  978. * @return \sm_item_box item_box item数据
  979. */
  980. public static function item_box_getItem($itemid) {
  981. return self::get_hash_item('item_box', $itemid);
  982. }
  983. /**
  984. * 关卡-通关条件
  985. * @return \gate_passCondition
  986. */
  987. public static function gate_passCondition() {
  988. static $a = null;
  989. return self::initValue($a, 'gate_passCondition');
  990. }
  991. /**
  992. * @return \sm_gate_passCondition gate_passCondition item数据
  993. */
  994. public static function gate_passCondition_getItem($itemid) {
  995. return self::get_hash_item('gate_passCondition', $itemid);
  996. }
  997. /**
  998. * 元素相克关系表
  999. * @return \attack_relation
  1000. */
  1001. public static function attack_relation() {
  1002. static $a = null;
  1003. return self::initValue($a, 'attack_relation');
  1004. }
  1005. /**
  1006. * @return \sm_attack_relation attack_relation item数据
  1007. */
  1008. public static function attack_relation_getItem($attack1, $attack2) {
  1009. return self::get_hash_item('attack_relation', "$attack1-$attack2");
  1010. }
  1011. /**
  1012. * 战斗力榜全服突破奖励
  1013. * @return \rankreward_fpower
  1014. */
  1015. public static function rankreward_fpower() {
  1016. static $a = null;
  1017. return self::initValue($a, 'rankreward_fpower');
  1018. }
  1019. /**
  1020. * @return \sm_rankreward_fpower rankreward_fpower item数据
  1021. */
  1022. public static function rankreward_fpower_getItem($itemid) {
  1023. return self::get_hash_item('rankreward_fpower', $itemid);
  1024. }
  1025. /**
  1026. * 合体技能
  1027. * @return \skill_cross
  1028. */
  1029. public static function skill_cross() {
  1030. static $a = null;
  1031. return self::initValue($a, 'skill_cross');
  1032. }
  1033. /**
  1034. * @return \sm_skill_cross skill_cross item数据
  1035. */
  1036. public static function skill_cross_getItem($itemid) {
  1037. return self::get_hash_item('skill_cross', $itemid);
  1038. }
  1039. /**
  1040. * 通关榜突破奖励
  1041. * @return \rankreward_passgate
  1042. */
  1043. public static function rankreward_passgate() {
  1044. static $a = null;
  1045. return self::initValue($a, 'rankreward_passgate');
  1046. }
  1047. /**
  1048. * @return \sm_rankreward_passgate rankreward_passgate item数据
  1049. */
  1050. public static function rankreward_passgate_getItem($itemid) {
  1051. return self::get_hash_item('rankreward_passgate', $itemid);
  1052. }
  1053. /**
  1054. * 当前版本(时间戳)
  1055. * @return \ver
  1056. */
  1057. public static function ver() {
  1058. static $a = null;
  1059. return self::initValue($a, 'ver', false);
  1060. }
  1061. /**
  1062. * 客户端配置数据
  1063. * @return \client
  1064. */
  1065. public static function client() {
  1066. static $a = null;
  1067. return self::initValue($a, 'client', false);
  1068. }
  1069. }