GameConfig.php 30 KB

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