schema.ts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095
  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 Wave {
  206. constructor(_buf_: ByteBuf) {
  207. this.idx = _buf_.ReadInt()
  208. this.waveIndex = _buf_.ReadInt()
  209. this.level = _buf_.ReadInt()
  210. this.model = _buf_.ReadInt()
  211. this.counter = _buf_.ReadInt()
  212. this.hp = _buf_.ReadInt()
  213. this.speed = _buf_.ReadInt()
  214. this.gap = _buf_.ReadInt()
  215. this.isboss = _buf_.ReadInt()
  216. this.perAddCoid = _buf_.ReadInt()
  217. this.perAddGem = _buf_.ReadInt()
  218. }
  219. /**
  220. * 唯一id
  221. */
  222. readonly idx: number
  223. /**
  224. * 波数
  225. */
  226. readonly waveIndex: number
  227. /**
  228. * 难度
  229. */
  230. readonly level: number
  231. /**
  232. * 怪物模型
  233. */
  234. readonly model: number
  235. /**
  236. * 数量
  237. */
  238. readonly counter: number
  239. /**
  240. * 血量
  241. */
  242. readonly hp: number
  243. /**
  244. * 速度
  245. */
  246. readonly speed: number
  247. /**
  248. * 间距
  249. */
  250. readonly gap: number
  251. /**
  252. * 是否是boss
  253. */
  254. readonly isboss: number
  255. /**
  256. * 每只怪增加局内金币
  257. */
  258. readonly perAddCoid: number
  259. /**
  260. * 每只怪增加局内宝石
  261. */
  262. readonly perAddGem: number
  263. resolve(tables:Tables) {
  264. }
  265. }
  266. export class Skill {
  267. constructor(_buf_: ByteBuf) {
  268. this.idx = _buf_.ReadInt()
  269. this.remark = _buf_.ReadString()
  270. this.skillId = _buf_.ReadInt()
  271. this.level = _buf_.ReadInt()
  272. this.skillType = _buf_.ReadInt()
  273. this.cd = _buf_.ReadInt()
  274. this.triggerCondition = _buf_.ReadString()
  275. this.effects = _buf_.ReadString()
  276. this.buffId = _buf_.ReadString()
  277. this.skillName = _buf_.ReadString()
  278. this.desc = _buf_.ReadString()
  279. this.conflictSkillId = _buf_.ReadInt()
  280. }
  281. /**
  282. * 主键id
  283. */
  284. readonly idx: number
  285. /**
  286. * 备注
  287. */
  288. readonly remark: string
  289. /**
  290. * 技能ID
  291. */
  292. readonly skillId: number
  293. /**
  294. * 等级
  295. */
  296. readonly level: number
  297. /**
  298. * 类型
  299. */
  300. readonly skillType: number
  301. /**
  302. * 冷却时间
  303. */
  304. readonly cd: number
  305. /**
  306. * 技能触发条件
  307. */
  308. readonly triggerCondition: string
  309. /**
  310. * 效果列表
  311. */
  312. readonly effects: string
  313. /**
  314. * buff
  315. */
  316. readonly buffId: string
  317. /**
  318. * 技能名字
  319. */
  320. readonly skillName: string
  321. /**
  322. * 技能描述
  323. */
  324. readonly desc: string
  325. /**
  326. * 冲突的技能id
  327. */
  328. readonly conflictSkillId: number
  329. resolve(tables:Tables) {
  330. }
  331. }
  332. export class SkillBuff {
  333. constructor(_buf_: ByteBuf) {
  334. this.idx = _buf_.ReadInt()
  335. this.remark = _buf_.ReadString()
  336. this.type = _buf_.ReadInt()
  337. this.parameters = _buf_.ReadString()
  338. this.probability = _buf_.ReadInt()
  339. this.triggerCondition = _buf_.ReadString()
  340. this.effectType = _buf_.ReadInt()
  341. this.duration = _buf_.ReadInt()
  342. this.overlapTimes = _buf_.ReadInt()
  343. this.uniqueGain = _buf_.ReadBool()
  344. this.halo = _buf_.ReadBool()
  345. this.attributes = _buf_.ReadString()
  346. this.mixBufficon = _buf_.ReadInt()
  347. this.skillShowId = _buf_.ReadInt()
  348. this.floatingTextId = _buf_.ReadInt()
  349. }
  350. /**
  351. * buffid
  352. */
  353. readonly idx: number
  354. /**
  355. * 备注
  356. */
  357. readonly remark: string
  358. /**
  359. * buff类型
  360. */
  361. readonly type: number
  362. /**
  363. * buff参数
  364. */
  365. readonly parameters: string
  366. /**
  367. * 触发概率
  368. */
  369. readonly probability: number
  370. /**
  371. * 触发条件
  372. */
  373. readonly triggerCondition: string
  374. /**
  375. * 效果类型
  376. */
  377. readonly effectType: number
  378. /**
  379. * 持续时间
  380. */
  381. readonly duration: number
  382. /**
  383. * 叠加次数
  384. */
  385. readonly overlapTimes: number
  386. /**
  387. * 唯一增益
  388. */
  389. readonly uniqueGain: boolean
  390. /**
  391. * 是否是光环
  392. */
  393. readonly halo: boolean
  394. /**
  395. * buff增加的属性
  396. */
  397. readonly attributes: string
  398. /**
  399. * 是否合并
  400. */
  401. readonly mixBufficon: number
  402. /**
  403. * 效果id
  404. */
  405. readonly skillShowId: number
  406. /**
  407. * 飘字id
  408. */
  409. readonly floatingTextId: number
  410. resolve(tables:Tables) {
  411. }
  412. }
  413. export class Hero {
  414. constructor(_buf_: ByteBuf) {
  415. this.id = _buf_.ReadInt()
  416. this.quality = _buf_.ReadInt()
  417. this.attacktype = _buf_.ReadInt()
  418. this.name = _buf_.ReadString()
  419. { 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);}}
  420. }
  421. /**
  422. * 英雄ID
  423. */
  424. readonly id: number
  425. /**
  426. * 品质
  427. */
  428. readonly quality: Hero.Quality
  429. /**
  430. * 攻击类型
  431. */
  432. readonly attacktype: Hero.AttackType
  433. /**
  434. * 名字
  435. */
  436. readonly name: string
  437. /**
  438. * 技能列表
  439. */
  440. readonly skills: number[]
  441. resolve(tables:Tables) {
  442. }
  443. }
  444. export class HeroLevel {
  445. constructor(_buf_: ByteBuf) {
  446. this.id = _buf_.ReadInt()
  447. this.level = _buf_.ReadInt()
  448. { 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);}}
  449. this.unlockSkillDesc = _buf_.ReadString()
  450. this.atk = _buf_.ReadInt()
  451. this.atkSpeed = _buf_.ReadInt()
  452. }
  453. /**
  454. * 英雄ID
  455. */
  456. readonly id: number
  457. /**
  458. * 等级
  459. */
  460. readonly level: number
  461. /**
  462. * 英雄解锁技能
  463. */
  464. readonly unlockSkill: number[]
  465. /**
  466. * 解锁技能描述
  467. */
  468. readonly unlockSkillDesc: string
  469. /**
  470. * 攻击力
  471. */
  472. readonly atk: number
  473. /**
  474. * 攻击速度
  475. */
  476. readonly atkSpeed: number
  477. resolve(tables:Tables) {
  478. }
  479. }
  480. export class Item {
  481. constructor(_buf_: ByteBuf) {
  482. this.idx = _buf_.ReadInt()
  483. this.type = _buf_.ReadInt()
  484. this.name = _buf_.ReadString()
  485. }
  486. /**
  487. * 道具ID
  488. */
  489. readonly idx: number
  490. /**
  491. * 类型
  492. */
  493. readonly type: number
  494. /**
  495. * 道具名
  496. */
  497. readonly name: string
  498. resolve(tables:Tables) {
  499. }
  500. }
  501. export class System {
  502. constructor(_buf_: ByteBuf) {
  503. this.idx = _buf_.ReadInt()
  504. this.mainKey = _buf_.ReadString()
  505. this.value = _buf_.ReadString()
  506. }
  507. /**
  508. * IDX
  509. */
  510. readonly idx: number
  511. /**
  512. * 常量主键
  513. */
  514. readonly mainKey: string
  515. /**
  516. * 常量值
  517. */
  518. readonly value: string
  519. resolve(tables:Tables) {
  520. }
  521. }
  522. export class WaveRewards {
  523. constructor(_buf_: ByteBuf) {
  524. this.idx = _buf_.ReadInt()
  525. this.waveMin = _buf_.ReadInt()
  526. this.waveMax = _buf_.ReadInt()
  527. this.level = _buf_.ReadInt()
  528. { 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);}}
  529. }
  530. /**
  531. * idx
  532. */
  533. readonly idx: number
  534. /**
  535. * 波数下限
  536. */
  537. readonly waveMin: number
  538. /**
  539. * 波数上限
  540. */
  541. readonly waveMax: number
  542. /**
  543. * 难度
  544. */
  545. readonly level: number
  546. /**
  547. * 奖励列表
  548. */
  549. readonly rewards: Common.Reward[]
  550. resolve(tables:Tables) {
  551. for (let _e of this.rewards) { _e?.resolve(tables); }
  552. }
  553. }
  554. /**
  555. * 英雄表.xlsx
  556. */
  557. export class TbHero {
  558. private _dataMap: Map<number, Hero>
  559. private _dataList: Hero[]
  560. constructor(_buf_: ByteBuf) {
  561. this._dataMap = new Map<number, Hero>()
  562. this._dataList = []
  563. for(let n = _buf_.ReadInt(); n > 0; n--) {
  564. let _v: Hero
  565. _v = new Hero(_buf_)
  566. this._dataList.push(_v)
  567. this._dataMap.set(_v.id, _v)
  568. }
  569. }
  570. getDataMap(): Map<number, Hero> { return this._dataMap; }
  571. getDataList(): Hero[] { return this._dataList; }
  572. get(key: number): Hero | undefined {
  573. return this._dataMap.get(key);
  574. }
  575. resolve(tables:Tables) {
  576. for(let data of this._dataList)
  577. {
  578. data.resolve(tables)
  579. }
  580. }
  581. }
  582. /**
  583. * 英雄等级表.xlsx
  584. */
  585. export class TbHeroLevel {
  586. private _dataList: HeroLevel[]
  587. constructor(_buf_: ByteBuf) {
  588. this._dataList = []
  589. for(let n = _buf_.ReadInt(); n > 0; n--) {
  590. let _v: HeroLevel
  591. _v = new HeroLevel(_buf_)
  592. this._dataList.push(_v)
  593. }
  594. }
  595. getDataList(): HeroLevel[] { return this._dataList }
  596. get(index: number): HeroLevel | undefined { return this._dataList[index] }
  597. resolve(tables:Tables) {
  598. for(let data of this._dataList)
  599. {
  600. data.resolve(tables)
  601. }
  602. }
  603. }
  604. /**
  605. * ZD技能Buff.xlsx
  606. */
  607. export class TbSkillBuff {
  608. private _dataMap: Map<number, SkillBuff>
  609. private _dataList: SkillBuff[]
  610. constructor(_buf_: ByteBuf) {
  611. this._dataMap = new Map<number, SkillBuff>()
  612. this._dataList = []
  613. for(let n = _buf_.ReadInt(); n > 0; n--) {
  614. let _v: SkillBuff
  615. _v = new SkillBuff(_buf_)
  616. this._dataList.push(_v)
  617. this._dataMap.set(_v.idx, _v)
  618. }
  619. }
  620. getDataMap(): Map<number, SkillBuff> { return this._dataMap; }
  621. getDataList(): SkillBuff[] { return this._dataList; }
  622. get(key: number): SkillBuff | undefined {
  623. return this._dataMap.get(key);
  624. }
  625. resolve(tables:Tables) {
  626. for(let data of this._dataList)
  627. {
  628. data.resolve(tables)
  629. }
  630. }
  631. }
  632. /**
  633. * ZD技能表.xlsx
  634. */
  635. export class TbSkill {
  636. private _dataList: Skill[]
  637. constructor(_buf_: ByteBuf) {
  638. this._dataList = []
  639. for(let n = _buf_.ReadInt(); n > 0; n--) {
  640. let _v: Skill
  641. _v = new Skill(_buf_)
  642. this._dataList.push(_v)
  643. }
  644. }
  645. getDataList(): Skill[] { return this._dataList }
  646. get(index: number): Skill | undefined { return this._dataList[index] }
  647. resolve(tables:Tables) {
  648. for(let data of this._dataList)
  649. {
  650. data.resolve(tables)
  651. }
  652. }
  653. }
  654. /**
  655. * 波数表.xlsx
  656. */
  657. export class TbWave {
  658. private _dataMap: Map<number, Wave>
  659. private _dataList: Wave[]
  660. constructor(_buf_: ByteBuf) {
  661. this._dataMap = new Map<number, Wave>()
  662. this._dataList = []
  663. for(let n = _buf_.ReadInt(); n > 0; n--) {
  664. let _v: Wave
  665. _v = new Wave(_buf_)
  666. this._dataList.push(_v)
  667. this._dataMap.set(_v.idx, _v)
  668. }
  669. }
  670. getDataMap(): Map<number, Wave> { return this._dataMap; }
  671. getDataList(): Wave[] { return this._dataList; }
  672. get(key: number): Wave | undefined {
  673. return this._dataMap.get(key);
  674. }
  675. resolve(tables:Tables) {
  676. for(let data of this._dataList)
  677. {
  678. data.resolve(tables)
  679. }
  680. }
  681. }
  682. /**
  683. * 波数奖励表.xlsx
  684. */
  685. export class TbWaveRewards {
  686. private _dataMap: Map<number, WaveRewards>
  687. private _dataList: WaveRewards[]
  688. constructor(_buf_: ByteBuf) {
  689. this._dataMap = new Map<number, WaveRewards>()
  690. this._dataList = []
  691. for(let n = _buf_.ReadInt(); n > 0; n--) {
  692. let _v: WaveRewards
  693. _v = new WaveRewards(_buf_)
  694. this._dataList.push(_v)
  695. this._dataMap.set(_v.idx, _v)
  696. }
  697. }
  698. getDataMap(): Map<number, WaveRewards> { return this._dataMap; }
  699. getDataList(): WaveRewards[] { return this._dataList; }
  700. get(key: number): WaveRewards | undefined {
  701. return this._dataMap.get(key);
  702. }
  703. resolve(tables:Tables) {
  704. for(let data of this._dataList)
  705. {
  706. data.resolve(tables)
  707. }
  708. }
  709. }
  710. /**
  711. * 道具表.xlsx
  712. */
  713. export class TbItem {
  714. private _dataMap: Map<number, Item>
  715. private _dataList: Item[]
  716. constructor(_buf_: ByteBuf) {
  717. this._dataMap = new Map<number, Item>()
  718. this._dataList = []
  719. for(let n = _buf_.ReadInt(); n > 0; n--) {
  720. let _v: Item
  721. _v = new Item(_buf_)
  722. this._dataList.push(_v)
  723. this._dataMap.set(_v.idx, _v)
  724. }
  725. }
  726. getDataMap(): Map<number, Item> { return this._dataMap; }
  727. getDataList(): Item[] { return this._dataList; }
  728. get(key: number): Item | undefined {
  729. return this._dataMap.get(key);
  730. }
  731. resolve(tables:Tables) {
  732. for(let data of this._dataList)
  733. {
  734. data.resolve(tables)
  735. }
  736. }
  737. }
  738. /**
  739. * 系统常量表.xlsx
  740. */
  741. export class TbSystem {
  742. private _dataMap: Map<string, System>
  743. private _dataList: System[]
  744. constructor(_buf_: ByteBuf) {
  745. this._dataMap = new Map<string, System>()
  746. this._dataList = []
  747. for(let n = _buf_.ReadInt(); n > 0; n--) {
  748. let _v: System
  749. _v = new System(_buf_)
  750. this._dataList.push(_v)
  751. this._dataMap.set(_v.mainKey, _v)
  752. }
  753. }
  754. getDataMap(): Map<string, System> { return this._dataMap; }
  755. getDataList(): System[] { return this._dataList; }
  756. get(key: string): System | undefined {
  757. return this._dataMap.get(key);
  758. }
  759. resolve(tables:Tables) {
  760. for(let data of this._dataList)
  761. {
  762. data.resolve(tables)
  763. }
  764. }
  765. }
  766. type ByteBufLoader = (file: string) => ByteBuf
  767. export class Tables {
  768. private _TbHero: TbHero
  769. /**
  770. * 英雄表.xlsx
  771. */
  772. get TbHero(): TbHero { return this._TbHero;}
  773. private _TbHeroLevel: TbHeroLevel
  774. /**
  775. * 英雄等级表.xlsx
  776. */
  777. get TbHeroLevel(): TbHeroLevel { return this._TbHeroLevel;}
  778. private _TbSkillBuff: TbSkillBuff
  779. /**
  780. * ZD技能Buff.xlsx
  781. */
  782. get TbSkillBuff(): TbSkillBuff { return this._TbSkillBuff;}
  783. private _TbSkill: TbSkill
  784. /**
  785. * ZD技能表.xlsx
  786. */
  787. get TbSkill(): TbSkill { return this._TbSkill;}
  788. private _TbWave: TbWave
  789. /**
  790. * 波数表.xlsx
  791. */
  792. get TbWave(): TbWave { return this._TbWave;}
  793. private _TbWaveRewards: TbWaveRewards
  794. /**
  795. * 波数奖励表.xlsx
  796. */
  797. get TbWaveRewards(): TbWaveRewards { return this._TbWaveRewards;}
  798. private _TbItem: TbItem
  799. /**
  800. * 道具表.xlsx
  801. */
  802. get TbItem(): TbItem { return this._TbItem;}
  803. private _TbSystem: TbSystem
  804. /**
  805. * 系统常量表.xlsx
  806. */
  807. get TbSystem(): TbSystem { return this._TbSystem;}
  808. static getTableNames(): string[] {
  809. let names: string[] = [];
  810. names.push('tbhero');
  811. names.push('tbherolevel');
  812. names.push('tbskillbuff');
  813. names.push('tbskill');
  814. names.push('tbwave');
  815. names.push('tbwaverewards');
  816. names.push('tbitem');
  817. names.push('tbsystem');
  818. return names;
  819. }
  820. constructor(loader: ByteBufLoader) {
  821. this._TbHero = new TbHero(loader('tbhero'))
  822. this._TbHeroLevel = new TbHeroLevel(loader('tbherolevel'))
  823. this._TbSkillBuff = new TbSkillBuff(loader('tbskillbuff'))
  824. this._TbSkill = new TbSkill(loader('tbskill'))
  825. this._TbWave = new TbWave(loader('tbwave'))
  826. this._TbWaveRewards = new TbWaveRewards(loader('tbwaverewards'))
  827. this._TbItem = new TbItem(loader('tbitem'))
  828. this._TbSystem = new TbSystem(loader('tbsystem'))
  829. this._TbHero.resolve(this)
  830. this._TbHeroLevel.resolve(this)
  831. this._TbSkillBuff.resolve(this)
  832. this._TbSkill.resolve(this)
  833. this._TbWave.resolve(this)
  834. this._TbWaveRewards.resolve(this)
  835. this._TbItem.resolve(this)
  836. this._TbSystem.resolve(this)
  837. }
  838. }