GameConfig.php 35 KB

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