GameConfig.php 32 KB

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