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 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 Skill {
  227. constructor(_buf_: ByteBuf) {
  228. this.idx = _buf_.ReadInt()
  229. this.remark = _buf_.ReadString()
  230. this.skillId = _buf_.ReadInt()
  231. this.level = _buf_.ReadInt()
  232. this.skillType = _buf_.ReadInt()
  233. this.cd = _buf_.ReadInt()
  234. this.triggerCondition = _buf_.ReadString()
  235. this.effects = _buf_.ReadString()
  236. this.buffId = _buf_.ReadString()
  237. this.skillName = _buf_.ReadString()
  238. this.desc = _buf_.ReadString()
  239. this.conflictSkillId = _buf_.ReadInt()
  240. }
  241. /**
  242. * 主键id
  243. */
  244. readonly idx: number
  245. /**
  246. * 备注
  247. */
  248. readonly remark: string
  249. /**
  250. * 技能ID
  251. */
  252. readonly skillId: number
  253. /**
  254. * 等级
  255. */
  256. readonly level: number
  257. /**
  258. * 类型
  259. */
  260. readonly skillType: number
  261. /**
  262. * 冷却时间
  263. */
  264. readonly cd: number
  265. /**
  266. * 技能触发条件
  267. */
  268. readonly triggerCondition: string
  269. /**
  270. * 效果列表
  271. */
  272. readonly effects: string
  273. /**
  274. * buff
  275. */
  276. readonly buffId: string
  277. /**
  278. * 技能名字
  279. */
  280. readonly skillName: string
  281. /**
  282. * 技能描述
  283. */
  284. readonly desc: string
  285. /**
  286. * 冲突的技能id
  287. */
  288. readonly conflictSkillId: number
  289. resolve(tables:Tables) {
  290. }
  291. }
  292. export class System {
  293. constructor(_buf_: ByteBuf) {
  294. this.idx = _buf_.ReadInt()
  295. this.mainKey = _buf_.ReadString()
  296. this.value = _buf_.ReadString()
  297. }
  298. /**
  299. * IDX
  300. */
  301. readonly idx: number
  302. /**
  303. * 常量主键
  304. */
  305. readonly mainKey: string
  306. /**
  307. * 常量值
  308. */
  309. readonly value: string
  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 SkillBuff {
  350. constructor(_buf_: ByteBuf) {
  351. this.idx = _buf_.ReadInt()
  352. this.remark = _buf_.ReadString()
  353. this.type = _buf_.ReadInt()
  354. this.parameters = _buf_.ReadString()
  355. this.probability = _buf_.ReadInt()
  356. this.triggerCondition = _buf_.ReadString()
  357. this.effectType = _buf_.ReadInt()
  358. this.duration = _buf_.ReadInt()
  359. this.overlapTimes = _buf_.ReadInt()
  360. this.uniqueGain = _buf_.ReadBool()
  361. this.halo = _buf_.ReadBool()
  362. this.attributes = _buf_.ReadString()
  363. this.mixBufficon = _buf_.ReadInt()
  364. this.skillShowId = _buf_.ReadInt()
  365. this.floatingTextId = _buf_.ReadInt()
  366. }
  367. /**
  368. * buffid
  369. */
  370. readonly idx: number
  371. /**
  372. * 备注
  373. */
  374. readonly remark: string
  375. /**
  376. * buff类型
  377. */
  378. readonly type: number
  379. /**
  380. * buff参数
  381. */
  382. readonly parameters: string
  383. /**
  384. * 触发概率
  385. */
  386. readonly probability: number
  387. /**
  388. * 触发条件
  389. */
  390. readonly triggerCondition: string
  391. /**
  392. * 效果类型
  393. */
  394. readonly effectType: number
  395. /**
  396. * 持续时间
  397. */
  398. readonly duration: number
  399. /**
  400. * 叠加次数
  401. */
  402. readonly overlapTimes: number
  403. /**
  404. * 唯一增益
  405. */
  406. readonly uniqueGain: boolean
  407. /**
  408. * 是否是光环
  409. */
  410. readonly halo: boolean
  411. /**
  412. * buff增加的属性
  413. */
  414. readonly attributes: string
  415. /**
  416. * 是否合并
  417. */
  418. readonly mixBufficon: number
  419. /**
  420. * 效果id
  421. */
  422. readonly skillShowId: number
  423. /**
  424. * 飘字id
  425. */
  426. readonly floatingTextId: number
  427. resolve(tables:Tables) {
  428. }
  429. }
  430. export class WaveRewards {
  431. constructor(_buf_: ByteBuf) {
  432. this.idx = _buf_.ReadInt()
  433. this.waveMin = _buf_.ReadInt()
  434. this.waveMax = _buf_.ReadInt()
  435. this.level = _buf_.ReadInt()
  436. { 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);}}
  437. }
  438. /**
  439. * idx
  440. */
  441. readonly idx: number
  442. /**
  443. * 波数下限
  444. */
  445. readonly waveMin: number
  446. /**
  447. * 波数上限
  448. */
  449. readonly waveMax: number
  450. /**
  451. * 难度
  452. */
  453. readonly level: number
  454. /**
  455. * 奖励列表
  456. */
  457. readonly rewards: Common.Reward[]
  458. resolve(tables:Tables) {
  459. for (let _e of this.rewards) { _e?.resolve(tables); }
  460. }
  461. }
  462. export class Hero {
  463. constructor(_buf_: ByteBuf) {
  464. this.id = _buf_.ReadInt()
  465. this.quality = _buf_.ReadInt()
  466. this.attacktype = _buf_.ReadInt()
  467. this.name = _buf_.ReadString()
  468. { 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);}}
  469. }
  470. /**
  471. * 英雄ID
  472. */
  473. readonly id: number
  474. /**
  475. * 品质
  476. */
  477. readonly quality: Hero.Quality
  478. /**
  479. * 攻击类型
  480. */
  481. readonly attacktype: Hero.AttackType
  482. /**
  483. * 名字
  484. */
  485. readonly name: string
  486. /**
  487. * 技能列表
  488. */
  489. readonly skills: number[]
  490. resolve(tables:Tables) {
  491. }
  492. }
  493. export class Wave {
  494. constructor(_buf_: ByteBuf) {
  495. this.idx = _buf_.ReadInt()
  496. this.waveIndex = _buf_.ReadInt()
  497. this.level = _buf_.ReadInt()
  498. this.model = _buf_.ReadInt()
  499. this.counter = _buf_.ReadInt()
  500. this.hp = _buf_.ReadInt()
  501. this.speed = _buf_.ReadInt()
  502. this.gap = _buf_.ReadInt()
  503. this.isboss = _buf_.ReadInt()
  504. this.perAddCoid = _buf_.ReadInt()
  505. this.perAddGem = _buf_.ReadInt()
  506. }
  507. /**
  508. * 唯一id
  509. */
  510. readonly idx: number
  511. /**
  512. * 波数
  513. */
  514. readonly waveIndex: number
  515. /**
  516. * 难度
  517. */
  518. readonly level: number
  519. /**
  520. * 怪物模型
  521. */
  522. readonly model: number
  523. /**
  524. * 数量
  525. */
  526. readonly counter: number
  527. /**
  528. * 血量
  529. */
  530. readonly hp: number
  531. /**
  532. * 速度
  533. */
  534. readonly speed: number
  535. /**
  536. * 间距
  537. */
  538. readonly gap: number
  539. /**
  540. * 是否是boss
  541. */
  542. readonly isboss: number
  543. /**
  544. * 每只怪增加局内金币
  545. */
  546. readonly perAddCoid: number
  547. /**
  548. * 每只怪增加局内宝石
  549. */
  550. readonly perAddGem: number
  551. resolve(tables: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. }