GameConfig.php 32 KB

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