schema.ts 19 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Changes to this file may cause incorrect behavior and will be lost if
  5. // the code is regenerated.
  6. // </auto-generated>
  7. //------------------------------------------------------------------------------
  8. import ByteBuf from '../bright/serialization/ByteBuf'
  9. export namespace test {
  10. export enum ETestQuality {
  11. /**
  12. * 最高品质
  13. */
  14. A = 1,
  15. /**
  16. * 黑色的
  17. */
  18. B = 2,
  19. /**
  20. * 蓝色的
  21. */
  22. C = 3,
  23. /**
  24. * 最差品质
  25. */
  26. D = 4,
  27. }
  28. }
  29. export namespace test {
  30. export enum AccessFlag {
  31. WRITE = 1,
  32. READ = 2,
  33. TRUNCATE = 4,
  34. NEW = 8,
  35. READ_WRITE = WRITE|READ,
  36. }
  37. }
  38. export namespace Hero {
  39. export enum Quality {
  40. /**
  41. * 普通
  42. */
  43. Normal = 1,
  44. /**
  45. * 高级
  46. */
  47. Senior = 2,
  48. /**
  49. * 稀有
  50. */
  51. Rare = 3,
  52. /**
  53. * 传说
  54. */
  55. Legend = 4,
  56. /**
  57. * 神话
  58. */
  59. Myth = 5,
  60. }
  61. }
  62. export namespace Hero {
  63. export enum AttackType {
  64. /**
  65. * 近战
  66. */
  67. CloseCombat = 1,
  68. /**
  69. * 远程
  70. */
  71. Remote = 2,
  72. }
  73. }
  74. export namespace test {
  75. /**
  76. * 这是个测试excel结构
  77. */
  78. export class TestExcelBean1 {
  79. constructor(_buf_: ByteBuf) {
  80. this.x1 = _buf_.ReadInt()
  81. this.x2 = _buf_.ReadString()
  82. this.x3 = _buf_.ReadInt()
  83. this.x4 = _buf_.ReadFloat()
  84. }
  85. /**
  86. * 最高品质
  87. */
  88. readonly x1: number
  89. /**
  90. * 黑色的
  91. */
  92. readonly x2: string
  93. /**
  94. * 蓝色的
  95. */
  96. readonly x3: number
  97. /**
  98. * 最差品质
  99. */
  100. readonly x4: number
  101. resolve(tables:Tables) {
  102. }
  103. }
  104. }
  105. export namespace test {
  106. /**
  107. * 这是个测试excel结构
  108. */
  109. export class TestExcelBean2 {
  110. constructor(_buf_: ByteBuf) {
  111. this.y1 = _buf_.ReadInt()
  112. this.y2 = _buf_.ReadString()
  113. this.y3 = _buf_.ReadFloat()
  114. }
  115. /**
  116. * 最高品质
  117. */
  118. readonly y1: number
  119. /**
  120. * 黑色的
  121. */
  122. readonly y2: string
  123. /**
  124. * 蓝色的
  125. */
  126. readonly y3: number
  127. resolve(tables:Tables) {
  128. }
  129. }
  130. }
  131. export namespace test {
  132. export abstract class Shape {
  133. static constructorFrom(_buf_: ByteBuf): Shape{
  134. switch (_buf_.ReadInt()) {
  135. case 2131829196: return new test.Circle(_buf_)
  136. case 694982337: return new test2.Rectangle(_buf_)
  137. default: throw new Error()
  138. }
  139. }
  140. constructor(_buf_: ByteBuf) {
  141. }
  142. resolve(tables:Tables) {
  143. }
  144. }
  145. }
  146. export namespace test {
  147. /**
  148. * 圆
  149. */
  150. export class Circle extends test.Shape {
  151. constructor(_buf_: ByteBuf) {
  152. super(_buf_)
  153. this.radius = _buf_.ReadFloat()
  154. }
  155. /**
  156. * 半径
  157. */
  158. readonly radius: number
  159. resolve(tables:Tables) {
  160. super.resolve(tables)
  161. }
  162. }
  163. }
  164. export namespace test2 {
  165. /**
  166. * 矩形
  167. */
  168. export class Rectangle extends test.Shape {
  169. constructor(_buf_: ByteBuf) {
  170. super(_buf_)
  171. this.width = _buf_.ReadFloat()
  172. this.height = _buf_.ReadFloat()
  173. }
  174. /**
  175. * 宽度
  176. */
  177. readonly width: number
  178. /**
  179. * 高度
  180. */
  181. readonly height: number
  182. resolve(tables:Tables) {
  183. super.resolve(tables)
  184. }
  185. }
  186. }
  187. export namespace Common {
  188. export class Reward {
  189. constructor(_buf_: ByteBuf) {
  190. this.itemid = _buf_.ReadInt()
  191. this.num = _buf_.ReadInt()
  192. }
  193. /**
  194. * 道具id
  195. */
  196. readonly itemid: number
  197. /**
  198. * 数量
  199. */
  200. readonly num: number
  201. resolve(tables:Tables) {
  202. }
  203. }
  204. }
  205. export class Item {
  206. constructor(_buf_: ByteBuf) {
  207. this.idx = _buf_.ReadInt()
  208. this.type = _buf_.ReadInt()
  209. this.name = _buf_.ReadString()
  210. }
  211. /**
  212. * 道具ID
  213. */
  214. readonly idx: number
  215. /**
  216. * 类型
  217. */
  218. readonly type: number
  219. /**
  220. * 道具名
  221. */
  222. readonly name: string
  223. resolve(tables:Tables) {
  224. }
  225. }
  226. export class System {
  227. constructor(_buf_: ByteBuf) {
  228. this.idx = _buf_.ReadInt()
  229. this.mainKey = _buf_.ReadString()
  230. this.value = _buf_.ReadString()
  231. }
  232. /**
  233. * IDX
  234. */
  235. readonly idx: number
  236. /**
  237. * 常量主键
  238. */
  239. readonly mainKey: string
  240. /**
  241. * 常量值
  242. */
  243. readonly value: string
  244. resolve(tables:Tables) {
  245. }
  246. }
  247. export class Skill {
  248. constructor(_buf_: ByteBuf) {
  249. this.idx = _buf_.ReadInt()
  250. this.remark = _buf_.ReadString()
  251. this.skillId = _buf_.ReadInt()
  252. this.level = _buf_.ReadInt()
  253. this.skillType = _buf_.ReadInt()
  254. this.cd = _buf_.ReadInt()
  255. this.triggerCondition = _buf_.ReadString()
  256. this.effects = _buf_.ReadString()
  257. this.buffId = _buf_.ReadString()
  258. this.skillName = _buf_.ReadString()
  259. this.desc = _buf_.ReadString()
  260. this.conflictSkillId = _buf_.ReadInt()
  261. }
  262. /**
  263. * 主键id
  264. */
  265. readonly idx: number
  266. /**
  267. * 备注
  268. */
  269. readonly remark: string
  270. /**
  271. * 技能ID
  272. */
  273. readonly skillId: number
  274. /**
  275. * 等级
  276. */
  277. readonly level: number
  278. /**
  279. * 类型
  280. */
  281. readonly skillType: number
  282. /**
  283. * 冷却时间
  284. */
  285. readonly cd: number
  286. /**
  287. * 技能触发条件
  288. */
  289. readonly triggerCondition: string
  290. /**
  291. * 效果列表
  292. */
  293. readonly effects: string
  294. /**
  295. * buff
  296. */
  297. readonly buffId: string
  298. /**
  299. * 技能名字
  300. */
  301. readonly skillName: string
  302. /**
  303. * 技能描述
  304. */
  305. readonly desc: string
  306. /**
  307. * 冲突的技能id
  308. */
  309. readonly conflictSkillId: number
  310. resolve(tables:Tables) {
  311. }
  312. }
  313. export class HeroLevel {
  314. constructor(_buf_: ByteBuf) {
  315. this.id = _buf_.ReadInt()
  316. this.level = _buf_.ReadInt()
  317. { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.unlockSkill = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.unlockSkill.push(_e0);}}
  318. this.unlockSkillDesc = _buf_.ReadString()
  319. this.atk = _buf_.ReadInt()
  320. this.atkSpeed = _buf_.ReadInt()
  321. }
  322. /**
  323. * 英雄ID
  324. */
  325. readonly id: number
  326. /**
  327. * 等级
  328. */
  329. readonly level: number
  330. /**
  331. * 英雄解锁技能
  332. */
  333. readonly unlockSkill: number[]
  334. /**
  335. * 解锁技能描述
  336. */
  337. readonly unlockSkillDesc: string
  338. /**
  339. * 攻击力
  340. */
  341. readonly atk: number
  342. /**
  343. * 攻击速度
  344. */
  345. readonly atkSpeed: number
  346. resolve(tables:Tables) {
  347. }
  348. }
  349. export class WaveRewards {
  350. constructor(_buf_: ByteBuf) {
  351. this.idx = _buf_.ReadInt()
  352. this.waveMin = _buf_.ReadInt()
  353. this.waveMax = _buf_.ReadInt()
  354. this.level = _buf_.ReadInt()
  355. { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.rewards = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Reward(_buf_); this.rewards.push(_e0);}}
  356. }
  357. /**
  358. * idx
  359. */
  360. readonly idx: number
  361. /**
  362. * 波数下限
  363. */
  364. readonly waveMin: number
  365. /**
  366. * 波数上限
  367. */
  368. readonly waveMax: number
  369. /**
  370. * 难度
  371. */
  372. readonly level: number
  373. /**
  374. * 奖励列表
  375. */
  376. readonly rewards: Common.Reward[]
  377. resolve(tables:Tables) {
  378. for (let _e of this.rewards) { _e?.resolve(tables); }
  379. }
  380. }
  381. export class Wave {
  382. constructor(_buf_: ByteBuf) {
  383. this.waveIndex = _buf_.ReadInt()
  384. this.level = _buf_.ReadInt()
  385. this.model = _buf_.ReadInt()
  386. this.counter = _buf_.ReadInt()
  387. this.hp = _buf_.ReadInt()
  388. this.speed = _buf_.ReadInt()
  389. this.gap = _buf_.ReadInt()
  390. this.isboss = _buf_.ReadInt()
  391. this.perAddCoid = _buf_.ReadInt()
  392. this.perAddGem = _buf_.ReadInt()
  393. }
  394. /**
  395. * 波数
  396. */
  397. readonly waveIndex: number
  398. /**
  399. * 难度
  400. */
  401. readonly level: number
  402. /**
  403. * 怪物模型
  404. */
  405. readonly model: number
  406. /**
  407. * 数量
  408. */
  409. readonly counter: number
  410. /**
  411. * 血量
  412. */
  413. readonly hp: number
  414. /**
  415. * 速度
  416. */
  417. readonly speed: number
  418. /**
  419. * 间距
  420. */
  421. readonly gap: number
  422. /**
  423. * 是否是boss
  424. */
  425. readonly isboss: number
  426. /**
  427. * 每只怪增加局内金币
  428. */
  429. readonly perAddCoid: number
  430. /**
  431. * 每只怪增加局内宝石
  432. */
  433. readonly perAddGem: number
  434. resolve(tables:Tables) {
  435. }
  436. }
  437. export class Hero {
  438. constructor(_buf_: ByteBuf) {
  439. this.id = _buf_.ReadInt()
  440. this.quality = _buf_.ReadInt()
  441. this.attacktype = _buf_.ReadInt()
  442. this.name = _buf_.ReadString()
  443. { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.skills = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.skills.push(_e0);}}
  444. }
  445. /**
  446. * 英雄ID
  447. */
  448. readonly id: number
  449. /**
  450. * 品质
  451. */
  452. readonly quality: Hero.Quality
  453. /**
  454. * 攻击类型
  455. */
  456. readonly attacktype: Hero.AttackType
  457. /**
  458. * 名字
  459. */
  460. readonly name: string
  461. /**
  462. * 技能列表
  463. */
  464. readonly skills: number[]
  465. resolve(tables:Tables) {
  466. }
  467. }
  468. export class SkillBuff {
  469. constructor(_buf_: ByteBuf) {
  470. this.idx = _buf_.ReadInt()
  471. this.remark = _buf_.ReadString()
  472. this.type = _buf_.ReadInt()
  473. this.parameters = _buf_.ReadString()
  474. this.probability = _buf_.ReadInt()
  475. this.triggerCondition = _buf_.ReadString()
  476. this.effectType = _buf_.ReadInt()
  477. this.duration = _buf_.ReadInt()
  478. this.overlapTimes = _buf_.ReadInt()
  479. this.uniqueGain = _buf_.ReadBool()
  480. this.halo = _buf_.ReadBool()
  481. this.attributes = _buf_.ReadString()
  482. this.mixBufficon = _buf_.ReadInt()
  483. this.skillShowId = _buf_.ReadInt()
  484. this.floatingTextId = _buf_.ReadInt()
  485. }
  486. /**
  487. * buffid
  488. */
  489. readonly idx: number
  490. /**
  491. * 备注
  492. */
  493. readonly remark: string
  494. /**
  495. * buff类型
  496. */
  497. readonly type: number
  498. /**
  499. * buff参数
  500. */
  501. readonly parameters: string
  502. /**
  503. * 触发概率
  504. */
  505. readonly probability: number
  506. /**
  507. * 触发条件
  508. */
  509. readonly triggerCondition: string
  510. /**
  511. * 效果类型
  512. */
  513. readonly effectType: number
  514. /**
  515. * 持续时间
  516. */
  517. readonly duration: number
  518. /**
  519. * 叠加次数
  520. */
  521. readonly overlapTimes: number
  522. /**
  523. * 唯一增益
  524. */
  525. readonly uniqueGain: boolean
  526. /**
  527. * 是否是光环
  528. */
  529. readonly halo: boolean
  530. /**
  531. * buff增加的属性
  532. */
  533. readonly attributes: string
  534. /**
  535. * 是否合并
  536. */
  537. readonly mixBufficon: number
  538. /**
  539. * 效果id
  540. */
  541. readonly skillShowId: number
  542. /**
  543. * 飘字id
  544. */
  545. readonly floatingTextId: number
  546. resolve(tables:Tables) {
  547. }
  548. }
  549. /**
  550. * 英雄表.xlsx
  551. */
  552. export class TbHero {
  553. private _dataMap: Map<number, Hero>
  554. private _dataList: Hero[]
  555. constructor(_buf_: ByteBuf) {
  556. this._dataMap = new Map<number, Hero>()
  557. this._dataList = []
  558. for(let n = _buf_.ReadInt(); n > 0; n--) {
  559. let _v: Hero
  560. _v = new Hero(_buf_)
  561. this._dataList.push(_v)
  562. this._dataMap.set(_v.id, _v)
  563. }
  564. }
  565. getDataMap(): Map<number, Hero> { return this._dataMap; }
  566. getDataList(): Hero[] { return this._dataList; }
  567. get(key: number): Hero | undefined {
  568. return this._dataMap.get(key);
  569. }
  570. resolve(tables:Tables) {
  571. for(let data of this._dataList)
  572. {
  573. data.resolve(tables)
  574. }
  575. }
  576. }
  577. /**
  578. * 英雄等级表.xlsx
  579. */
  580. export class TbHeroLevel {
  581. private _dataList: HeroLevel[]
  582. constructor(_buf_: ByteBuf) {
  583. this._dataList = []
  584. for(let n = _buf_.ReadInt(); n > 0; n--) {
  585. let _v: HeroLevel
  586. _v = new HeroLevel(_buf_)
  587. this._dataList.push(_v)
  588. }
  589. }
  590. getDataList(): HeroLevel[] { return this._dataList }
  591. get(index: number): HeroLevel | undefined { return this._dataList[index] }
  592. resolve(tables:Tables) {
  593. for(let data of this._dataList)
  594. {
  595. data.resolve(tables)
  596. }
  597. }
  598. }
  599. /**
  600. * ZD技能Buff.xlsx
  601. */
  602. export class TbSkillBuff {
  603. private _dataMap: Map<number, SkillBuff>
  604. private _dataList: SkillBuff[]
  605. constructor(_buf_: ByteBuf) {
  606. this._dataMap = new Map<number, SkillBuff>()
  607. this._dataList = []
  608. for(let n = _buf_.ReadInt(); n > 0; n--) {
  609. let _v: SkillBuff
  610. _v = new SkillBuff(_buf_)
  611. this._dataList.push(_v)
  612. this._dataMap.set(_v.idx, _v)
  613. }
  614. }
  615. getDataMap(): Map<number, SkillBuff> { return this._dataMap; }
  616. getDataList(): SkillBuff[] { return this._dataList; }
  617. get(key: number): SkillBuff | undefined {
  618. return this._dataMap.get(key);
  619. }
  620. resolve(tables:Tables) {
  621. for(let data of this._dataList)
  622. {
  623. data.resolve(tables)
  624. }
  625. }
  626. }
  627. /**
  628. * ZD技能表.xlsx
  629. */
  630. export class TbSkill {
  631. private _dataList: Skill[]
  632. constructor(_buf_: ByteBuf) {
  633. this._dataList = []
  634. for(let n = _buf_.ReadInt(); n > 0; n--) {
  635. let _v: Skill
  636. _v = new Skill(_buf_)
  637. this._dataList.push(_v)
  638. }
  639. }
  640. getDataList(): Skill[] { return this._dataList }
  641. get(index: number): Skill | undefined { return this._dataList[index] }
  642. resolve(tables:Tables) {
  643. for(let data of this._dataList)
  644. {
  645. data.resolve(tables)
  646. }
  647. }
  648. }
  649. /**
  650. * 波数表.xlsx
  651. */
  652. export class TbWave {
  653. private _dataList: Wave[]
  654. constructor(_buf_: ByteBuf) {
  655. this._dataList = []
  656. for(let n = _buf_.ReadInt(); n > 0; n--) {
  657. let _v: Wave
  658. _v = new Wave(_buf_)
  659. this._dataList.push(_v)
  660. }
  661. }
  662. getDataList(): Wave[] { return this._dataList }
  663. get(index: number): Wave | undefined { return this._dataList[index] }
  664. resolve(tables:Tables) {
  665. for(let data of this._dataList)
  666. {
  667. data.resolve(tables)
  668. }
  669. }
  670. }
  671. /**
  672. * 波数奖励表.xlsx
  673. */
  674. export class TbWaveRewards {
  675. private _dataMap: Map<number, WaveRewards>
  676. private _dataList: WaveRewards[]
  677. constructor(_buf_: ByteBuf) {
  678. this._dataMap = new Map<number, WaveRewards>()
  679. this._dataList = []
  680. for(let n = _buf_.ReadInt(); n > 0; n--) {
  681. let _v: WaveRewards
  682. _v = new WaveRewards(_buf_)
  683. this._dataList.push(_v)
  684. this._dataMap.set(_v.idx, _v)
  685. }
  686. }
  687. getDataMap(): Map<number, WaveRewards> { return this._dataMap; }
  688. getDataList(): WaveRewards[] { return this._dataList; }
  689. get(key: number): WaveRewards | undefined {
  690. return this._dataMap.get(key);
  691. }
  692. resolve(tables:Tables) {
  693. for(let data of this._dataList)
  694. {
  695. data.resolve(tables)
  696. }
  697. }
  698. }
  699. /**
  700. * 道具表.xlsx
  701. */
  702. export class TbItem {
  703. private _dataMap: Map<number, Item>
  704. private _dataList: Item[]
  705. constructor(_buf_: ByteBuf) {
  706. this._dataMap = new Map<number, Item>()
  707. this._dataList = []
  708. for(let n = _buf_.ReadInt(); n > 0; n--) {
  709. let _v: Item
  710. _v = new Item(_buf_)
  711. this._dataList.push(_v)
  712. this._dataMap.set(_v.idx, _v)
  713. }
  714. }
  715. getDataMap(): Map<number, Item> { return this._dataMap; }
  716. getDataList(): Item[] { return this._dataList; }
  717. get(key: number): Item | undefined {
  718. return this._dataMap.get(key);
  719. }
  720. resolve(tables:Tables) {
  721. for(let data of this._dataList)
  722. {
  723. data.resolve(tables)
  724. }
  725. }
  726. }
  727. /**
  728. * 系统常量表.xlsx
  729. */
  730. export class TbSystem {
  731. private _dataMap: Map<string, System>
  732. private _dataList: System[]
  733. constructor(_buf_: ByteBuf) {
  734. this._dataMap = new Map<string, System>()
  735. this._dataList = []
  736. for(let n = _buf_.ReadInt(); n > 0; n--) {
  737. let _v: System
  738. _v = new System(_buf_)
  739. this._dataList.push(_v)
  740. this._dataMap.set(_v.mainKey, _v)
  741. }
  742. }
  743. getDataMap(): Map<string, System> { return this._dataMap; }
  744. getDataList(): System[] { return this._dataList; }
  745. get(key: string): System | undefined {
  746. return this._dataMap.get(key);
  747. }
  748. resolve(tables:Tables) {
  749. for(let data of this._dataList)
  750. {
  751. data.resolve(tables)
  752. }
  753. }
  754. }
  755. type ByteBufLoader = (file: string) => ByteBuf
  756. export class Tables {
  757. private _TbHero: TbHero
  758. /**
  759. * 英雄表.xlsx
  760. */
  761. get TbHero(): TbHero { return this._TbHero;}
  762. private _TbHeroLevel: TbHeroLevel
  763. /**
  764. * 英雄等级表.xlsx
  765. */
  766. get TbHeroLevel(): TbHeroLevel { return this._TbHeroLevel;}
  767. private _TbSkillBuff: TbSkillBuff
  768. /**
  769. * ZD技能Buff.xlsx
  770. */
  771. get TbSkillBuff(): TbSkillBuff { return this._TbSkillBuff;}
  772. private _TbSkill: TbSkill
  773. /**
  774. * ZD技能表.xlsx
  775. */
  776. get TbSkill(): TbSkill { return this._TbSkill;}
  777. private _TbWave: TbWave
  778. /**
  779. * 波数表.xlsx
  780. */
  781. get TbWave(): TbWave { return this._TbWave;}
  782. private _TbWaveRewards: TbWaveRewards
  783. /**
  784. * 波数奖励表.xlsx
  785. */
  786. get TbWaveRewards(): TbWaveRewards { return this._TbWaveRewards;}
  787. private _TbItem: TbItem
  788. /**
  789. * 道具表.xlsx
  790. */
  791. get TbItem(): TbItem { return this._TbItem;}
  792. private _TbSystem: TbSystem
  793. /**
  794. * 系统常量表.xlsx
  795. */
  796. get TbSystem(): TbSystem { return this._TbSystem;}
  797. static getTableNames(): string[] {
  798. let names: string[] = [];
  799. names.push('tbhero');
  800. names.push('tbherolevel');
  801. names.push('tbskillbuff');
  802. names.push('tbskill');
  803. names.push('tbwave');
  804. names.push('tbwaverewards');
  805. names.push('tbitem');
  806. names.push('tbsystem');
  807. return names;
  808. }
  809. constructor(loader: ByteBufLoader) {
  810. this._TbHero = new TbHero(loader('tbhero'))
  811. this._TbHeroLevel = new TbHeroLevel(loader('tbherolevel'))
  812. this._TbSkillBuff = new TbSkillBuff(loader('tbskillbuff'))
  813. this._TbSkill = new TbSkill(loader('tbskill'))
  814. this._TbWave = new TbWave(loader('tbwave'))
  815. this._TbWaveRewards = new TbWaveRewards(loader('tbwaverewards'))
  816. this._TbItem = new TbItem(loader('tbitem'))
  817. this._TbSystem = new TbSystem(loader('tbsystem'))
  818. this._TbHero.resolve(this)
  819. this._TbHeroLevel.resolve(this)
  820. this._TbSkillBuff.resolve(this)
  821. this._TbSkill.resolve(this)
  822. this._TbWave.resolve(this)
  823. this._TbWaveRewards.resolve(this)
  824. this._TbItem.resolve(this)
  825. this._TbSystem.resolve(this)
  826. }
  827. }