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 WaveRewards {
  206. constructor(_buf_: ByteBuf) {
  207. this.idx = _buf_.ReadInt()
  208. this.waveMin = _buf_.ReadInt()
  209. this.waveMax = _buf_.ReadInt()
  210. this.level = _buf_.ReadInt()
  211. { 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);}}
  212. }
  213. /**
  214. * idx
  215. */
  216. readonly idx: number
  217. /**
  218. * 波数下限
  219. */
  220. readonly waveMin: number
  221. /**
  222. * 波数上限
  223. */
  224. readonly waveMax: number
  225. /**
  226. * 难度
  227. */
  228. readonly level: number
  229. /**
  230. * 奖励列表
  231. */
  232. readonly rewards: Common.Reward[]
  233. resolve(tables:Tables) {
  234. for (let _e of this.rewards) { _e?.resolve(tables); }
  235. }
  236. }
  237. export class SkillBuff {
  238. constructor(_buf_: ByteBuf) {
  239. this.idx = _buf_.ReadInt()
  240. this.remark = _buf_.ReadString()
  241. this.type = _buf_.ReadInt()
  242. this.parameters = _buf_.ReadString()
  243. this.probability = _buf_.ReadInt()
  244. this.triggerCondition = _buf_.ReadString()
  245. this.effectType = _buf_.ReadInt()
  246. this.duration = _buf_.ReadInt()
  247. this.overlapTimes = _buf_.ReadInt()
  248. this.uniqueGain = _buf_.ReadBool()
  249. this.halo = _buf_.ReadBool()
  250. this.attributes = _buf_.ReadString()
  251. this.mixBufficon = _buf_.ReadInt()
  252. this.skillShowId = _buf_.ReadInt()
  253. this.floatingTextId = _buf_.ReadInt()
  254. }
  255. /**
  256. * buffid
  257. */
  258. readonly idx: number
  259. /**
  260. * 备注
  261. */
  262. readonly remark: string
  263. /**
  264. * buff类型
  265. */
  266. readonly type: number
  267. /**
  268. * buff参数
  269. */
  270. readonly parameters: string
  271. /**
  272. * 触发概率
  273. */
  274. readonly probability: number
  275. /**
  276. * 触发条件
  277. */
  278. readonly triggerCondition: string
  279. /**
  280. * 效果类型
  281. */
  282. readonly effectType: number
  283. /**
  284. * 持续时间
  285. */
  286. readonly duration: number
  287. /**
  288. * 叠加次数
  289. */
  290. readonly overlapTimes: number
  291. /**
  292. * 唯一增益
  293. */
  294. readonly uniqueGain: boolean
  295. /**
  296. * 是否是光环
  297. */
  298. readonly halo: boolean
  299. /**
  300. * buff增加的属性
  301. */
  302. readonly attributes: string
  303. /**
  304. * 是否合并
  305. */
  306. readonly mixBufficon: number
  307. /**
  308. * 效果id
  309. */
  310. readonly skillShowId: number
  311. /**
  312. * 飘字id
  313. */
  314. readonly floatingTextId: number
  315. resolve(tables:Tables) {
  316. }
  317. }
  318. export class Skill {
  319. constructor(_buf_: ByteBuf) {
  320. this.idx = _buf_.ReadInt()
  321. this.remark = _buf_.ReadString()
  322. this.skillId = _buf_.ReadInt()
  323. this.level = _buf_.ReadInt()
  324. this.skillType = _buf_.ReadInt()
  325. this.cd = _buf_.ReadInt()
  326. this.triggerCondition = _buf_.ReadString()
  327. this.effects = _buf_.ReadString()
  328. this.buffId = _buf_.ReadString()
  329. this.skillName = _buf_.ReadString()
  330. this.desc = _buf_.ReadString()
  331. this.conflictSkillId = _buf_.ReadInt()
  332. }
  333. /**
  334. * 主键id
  335. */
  336. readonly idx: number
  337. /**
  338. * 备注
  339. */
  340. readonly remark: string
  341. /**
  342. * 技能ID
  343. */
  344. readonly skillId: number
  345. /**
  346. * 等级
  347. */
  348. readonly level: number
  349. /**
  350. * 类型
  351. */
  352. readonly skillType: number
  353. /**
  354. * 冷却时间
  355. */
  356. readonly cd: number
  357. /**
  358. * 技能触发条件
  359. */
  360. readonly triggerCondition: string
  361. /**
  362. * 效果列表
  363. */
  364. readonly effects: string
  365. /**
  366. * buff
  367. */
  368. readonly buffId: string
  369. /**
  370. * 技能名字
  371. */
  372. readonly skillName: string
  373. /**
  374. * 技能描述
  375. */
  376. readonly desc: string
  377. /**
  378. * 冲突的技能id
  379. */
  380. readonly conflictSkillId: number
  381. resolve(tables:Tables) {
  382. }
  383. }
  384. export class Hero {
  385. constructor(_buf_: ByteBuf) {
  386. this.id = _buf_.ReadInt()
  387. this.quality = _buf_.ReadInt()
  388. this.attacktype = _buf_.ReadInt()
  389. this.name = _buf_.ReadString()
  390. { 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);}}
  391. }
  392. /**
  393. * 英雄ID
  394. */
  395. readonly id: number
  396. /**
  397. * 品质
  398. */
  399. readonly quality: Hero.Quality
  400. /**
  401. * 攻击类型
  402. */
  403. readonly attacktype: Hero.AttackType
  404. /**
  405. * 名字
  406. */
  407. readonly name: string
  408. /**
  409. * 技能列表
  410. */
  411. readonly skills: number[]
  412. resolve(tables:Tables) {
  413. }
  414. }
  415. export class HeroLevel {
  416. constructor(_buf_: ByteBuf) {
  417. this.id = _buf_.ReadInt()
  418. this.level = _buf_.ReadInt()
  419. { 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);}}
  420. this.unlockSkillDesc = _buf_.ReadString()
  421. this.atk = _buf_.ReadInt()
  422. this.atkSpeed = _buf_.ReadInt()
  423. }
  424. /**
  425. * 英雄ID
  426. */
  427. readonly id: number
  428. /**
  429. * 等级
  430. */
  431. readonly level: number
  432. /**
  433. * 英雄解锁技能
  434. */
  435. readonly unlockSkill: number[]
  436. /**
  437. * 解锁技能描述
  438. */
  439. readonly unlockSkillDesc: string
  440. /**
  441. * 攻击力
  442. */
  443. readonly atk: number
  444. /**
  445. * 攻击速度
  446. */
  447. readonly atkSpeed: number
  448. resolve(tables:Tables) {
  449. }
  450. }
  451. export class System {
  452. constructor(_buf_: ByteBuf) {
  453. this.idx = _buf_.ReadInt()
  454. this.mainKey = _buf_.ReadString()
  455. this.value = _buf_.ReadString()
  456. }
  457. /**
  458. * IDX
  459. */
  460. readonly idx: number
  461. /**
  462. * 常量主键
  463. */
  464. readonly mainKey: string
  465. /**
  466. * 常量值
  467. */
  468. readonly value: string
  469. resolve(tables:Tables) {
  470. }
  471. }
  472. export class Item {
  473. constructor(_buf_: ByteBuf) {
  474. this.idx = _buf_.ReadInt()
  475. this.type = _buf_.ReadInt()
  476. this.name = _buf_.ReadString()
  477. }
  478. /**
  479. * 道具ID
  480. */
  481. readonly idx: number
  482. /**
  483. * 类型
  484. */
  485. readonly type: number
  486. /**
  487. * 道具名
  488. */
  489. readonly name: string
  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. }