123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- import ByteBuf from '../bright/serialization/ByteBuf'
- export namespace test {
- export enum ETestQuality {
- /**
- * 最高品质
- */
- A = 1,
- /**
- * 黑色的
- */
- B = 2,
- /**
- * 蓝色的
- */
- C = 3,
- /**
- * 最差品质
- */
- D = 4,
- }
- }
- export namespace test {
- export enum AccessFlag {
- WRITE = 1,
- READ = 2,
- TRUNCATE = 4,
- NEW = 8,
- READ_WRITE = WRITE|READ,
- }
- }
-
- export enum Quality {
- /**
- * 普通
- */
- Normal = 1,
- /**
- * 高级
- */
- Senior = 2,
- /**
- * 稀有
- */
- Rare = 3,
- /**
- * 传说
- */
- Legend = 4,
- /**
- * 神话
- */
- Myth = 5,
- }
-
-
- export enum AttackType {
- /**
- * 近战
- */
- CloseCombat = 1,
- /**
- * 远程
- */
- Remote = 2,
- }
-
- export namespace test {
- /**
- * 这是个测试excel结构
- */
- export class TestExcelBean1 {
- constructor(_buf_: ByteBuf) {
- this.x1 = _buf_.ReadInt()
- this.x2 = _buf_.ReadString()
- this.x3 = _buf_.ReadInt()
- this.x4 = _buf_.ReadFloat()
- }
- /**
- * 最高品质
- */
- readonly x1: number
- /**
- * 黑色的
- */
- readonly x2: string
- /**
- * 蓝色的
- */
- readonly x3: number
- /**
- * 最差品质
- */
- readonly x4: number
- resolve(tables:Tables) {
-
-
-
-
- }
- }
- }
- export namespace test {
- /**
- * 这是个测试excel结构
- */
- export class TestExcelBean2 {
- constructor(_buf_: ByteBuf) {
- this.y1 = _buf_.ReadInt()
- this.y2 = _buf_.ReadString()
- this.y3 = _buf_.ReadFloat()
- }
- /**
- * 最高品质
- */
- readonly y1: number
- /**
- * 黑色的
- */
- readonly y2: string
- /**
- * 蓝色的
- */
- readonly y3: number
- resolve(tables:Tables) {
-
-
-
- }
- }
- }
- export namespace test {
- export abstract class Shape {
- static constructorFrom(_buf_: ByteBuf): Shape{
- switch (_buf_.ReadInt()) {
- case 2131829196: return new test.Circle(_buf_)
- case 694982337: return new test2.Rectangle(_buf_)
- default: throw new Error()
- }
- }
- constructor(_buf_: ByteBuf) {
- }
- resolve(tables:Tables) {
- }
- }
- }
- export namespace test {
- /**
- * 圆
- */
- export class Circle extends test.Shape {
- constructor(_buf_: ByteBuf) {
- super(_buf_)
- this.radius = _buf_.ReadFloat()
- }
- /**
- * 半径
- */
- readonly radius: number
- resolve(tables:Tables) {
- super.resolve(tables)
-
- }
- }
- }
- export namespace test2 {
- /**
- * 矩形
- */
- export class Rectangle extends test.Shape {
- constructor(_buf_: ByteBuf) {
- super(_buf_)
- this.width = _buf_.ReadFloat()
- this.height = _buf_.ReadFloat()
- }
- /**
- * 宽度
- */
- readonly width: number
- /**
- * 高度
- */
- readonly height: number
- resolve(tables:Tables) {
- super.resolve(tables)
-
-
- }
- }
- }
- export namespace Common {
- export class Reward {
- constructor(_buf_: ByteBuf) {
- this.itemid = _buf_.ReadInt()
- this.num = _buf_.ReadInt()
- }
- /**
- * 道具id
- */
- readonly itemid: number
- /**
- * 数量
- */
- readonly num: number
- resolve(tables:Tables) {
-
-
- }
- }
- }
- export namespace Common {
- export class Cost {
- constructor(_buf_: ByteBuf) {
- this.itemid = _buf_.ReadInt()
- this.num = _buf_.ReadInt()
- }
- /**
- * 道具id
- */
- readonly itemid: number
- /**
- * 数量
- */
- readonly num: number
- resolve(tables:Tables) {
-
-
- }
- }
- }
- export class WaveRewards {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.waveMin = _buf_.ReadInt()
- this.waveMax = _buf_.ReadInt()
- this.level = _buf_.ReadInt()
- { 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);}}
- }
- /**
- * idx
- */
- readonly idx: number
- /**
- * 波数下限
- */
- readonly waveMin: number
- /**
- * 波数上限
- */
- readonly waveMax: number
- /**
- * 难度
- */
- readonly level: number
- /**
- * 奖励列表
- */
- readonly rewards: Common.Reward[]
- resolve(tables:Tables) {
-
-
-
-
- for (let _e of this.rewards) { _e?.resolve(tables); }
- }
- }
- export class BattleSpacialSummon {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.quality = _buf_.ReadInt()
- this.weight = _buf_.ReadInt()
- this.costgem = _buf_.ReadInt()
- }
- /**
- * 唯一id
- */
- readonly idx: number
- /**
- * 品质
- */
- readonly quality: Quality
- /**
- * 权重
- */
- readonly weight: number
- /**
- * 消耗宝石数量
- */
- readonly costgem: number
- resolve(tables:Tables) {
-
-
-
-
- }
- }
- export class Skill {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.remark = _buf_.ReadString()
- this.skillId = _buf_.ReadInt()
- this.skillType = _buf_.ReadInt()
- this.cd = _buf_.ReadInt()
- this.gridRange = _buf_.ReadInt()
- this.range = _buf_.ReadInt()
- this.triggerCondition = _buf_.ReadString()
- this.effects = _buf_.ReadString()
- this.buffId = _buf_.ReadString()
- this.skillName = _buf_.ReadString()
- this.desc = _buf_.ReadString()
- this.conflictSkillId = _buf_.ReadInt()
- }
- /**
- * 主键id
- */
- readonly idx: number
- /**
- * 备注
- */
- readonly remark: string
- /**
- * 技能ID
- */
- readonly skillId: number
- /**
- * 类型
- */
- readonly skillType: number
- /**
- * 冷却时间
- */
- readonly cd: number
- /**
- * 格子范围
- */
- readonly gridRange: number
- /**
- * 攻击距离
- */
- readonly range: number
- /**
- * 技能触发条件
- */
- readonly triggerCondition: string
- /**
- * 效果列表
- */
- readonly effects: string
- /**
- * buff
- */
- readonly buffId: string
- /**
- * 技能名字
- */
- readonly skillName: string
- /**
- * 技能描述
- */
- readonly desc: string
- /**
- * 冲突的技能id
- */
- readonly conflictSkillId: number
- resolve(tables:Tables) {
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
- export class System {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.mainKey = _buf_.ReadString()
- this.value = _buf_.ReadString()
- }
- /**
- * IDX
- */
- readonly idx: number
- /**
- * 常量主键
- */
- readonly mainKey: string
- /**
- * 常量值
- */
- readonly value: string
- resolve(tables:Tables) {
-
-
-
- }
- }
- export class SkillBuff {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.remark = _buf_.ReadString()
- this.type = _buf_.ReadInt()
- this.parameters = _buf_.ReadString()
- this.probability = _buf_.ReadInt()
- this.triggerCondition = _buf_.ReadString()
- this.effectType = _buf_.ReadInt()
- this.duration = _buf_.ReadInt()
- this.overlapTimes = _buf_.ReadInt()
- this.uniqueGain = _buf_.ReadBool()
- this.halo = _buf_.ReadBool()
- this.attributes = _buf_.ReadString()
- this.mixBufficon = _buf_.ReadInt()
- this.skillShowId = _buf_.ReadInt()
- this.floatingTextId = _buf_.ReadInt()
- }
- /**
- * buffid
- */
- readonly idx: number
- /**
- * 备注
- */
- readonly remark: string
- /**
- * buff类型
- */
- readonly type: number
- /**
- * buff参数
- */
- readonly parameters: string
- /**
- * 触发概率
- */
- readonly probability: number
- /**
- * 触发条件
- */
- readonly triggerCondition: string
- /**
- * 效果类型
- */
- readonly effectType: number
- /**
- * 持续时间
- */
- readonly duration: number
- /**
- * 叠加次数
- */
- readonly overlapTimes: number
- /**
- * 唯一增益
- */
- readonly uniqueGain: boolean
- /**
- * 是否是光环
- */
- readonly halo: boolean
- /**
- * buff增加的属性
- */
- readonly attributes: string
- /**
- * 是否合并
- */
- readonly mixBufficon: number
- /**
- * 效果id
- */
- readonly skillShowId: number
- /**
- * 飘字id
- */
- readonly floatingTextId: number
- resolve(tables:Tables) {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
- export class HeroQualityWorth {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.quality = _buf_.ReadInt()
- this.gold = _buf_.ReadInt()
- this.gem = _buf_.ReadInt()
- }
- /**
- * 唯一id
- */
- readonly idx: number
- /**
- * 品质
- */
- readonly quality: Quality
- /**
- * 局内金币
- */
- readonly gold: number
- /**
- * 局内宝石
- */
- readonly gem: number
- resolve(tables:Tables) {
-
-
-
-
- }
- }
- export class BattleSummonWeight {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.quality = _buf_.ReadInt()
- this.weight = _buf_.ReadInt()
- }
- /**
- * 唯一id
- */
- readonly idx: number
- /**
- * 品质
- */
- readonly quality: Quality
- /**
- * 权重
- */
- readonly weight: number
- resolve(tables:Tables) {
-
-
-
- }
- }
- export class Item {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.type = _buf_.ReadInt()
- this.name = _buf_.ReadString()
- }
- /**
- * 道具ID
- */
- readonly idx: number
- /**
- * 类型
- */
- readonly type: number
- /**
- * 道具名
- */
- readonly name: string
- resolve(tables:Tables) {
-
-
-
- }
- }
- export class Hero {
- constructor(_buf_: ByteBuf) {
- this.id = _buf_.ReadInt()
- this.quality = _buf_.ReadInt()
- this.attacktype = _buf_.ReadInt()
- this.name = _buf_.ReadString()
- this.attackRange = _buf_.ReadInt()
- { 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);}}
- { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.composeheros = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.composeheros.push(_e0);}}
- this.isShow = _buf_.ReadInt()
- }
- /**
- * 英雄ID
- */
- readonly id: number
- /**
- * 品质
- */
- readonly quality: Quality
- /**
- * 攻击类型
- */
- readonly attacktype: AttackType
- /**
- * 名字
- */
- readonly name: string
- /**
- * 普攻距离
- */
- readonly attackRange: number
- /**
- * 技能列表
- */
- readonly skills: number[]
- /**
- * 合成英雄公式
- */
- readonly composeheros: number[]
- /**
- * 是否测试
- */
- readonly isShow: number
- resolve(tables:Tables) {
-
-
-
-
-
-
-
-
- }
- }
- export class Wave {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.waveIndex = _buf_.ReadInt()
- this.level = _buf_.ReadInt()
- this.model = _buf_.ReadInt()
- this.counter = _buf_.ReadInt()
- this.hp = _buf_.ReadInt()
- this.speed = _buf_.ReadInt()
- this.gap = _buf_.ReadInt()
- this.isboss = _buf_.ReadInt()
- this.perAddCoid = _buf_.ReadInt()
- this.perAddGem = _buf_.ReadInt()
- }
- /**
- * 唯一id
- */
- readonly idx: number
- /**
- * 波数
- */
- readonly waveIndex: number
- /**
- * 难度
- */
- readonly level: number
- /**
- * 怪物模型
- */
- readonly model: number
- /**
- * 数量
- */
- readonly counter: number
- /**
- * 血量
- */
- readonly hp: number
- /**
- * 速度
- */
- readonly speed: number
- /**
- * 间距
- */
- readonly gap: number
- /**
- * 是否是boss
- */
- readonly isboss: number
- /**
- * 每只怪增加局内金币
- */
- readonly perAddCoid: number
- /**
- * 每只怪增加局内宝石
- */
- readonly perAddGem: number
- resolve(tables:Tables) {
-
-
-
-
-
-
-
-
-
-
-
- }
- }
- export class HeroLevel {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.id = _buf_.ReadInt()
- this.level = _buf_.ReadInt()
- { 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);}}
- this.unlockSkillDesc = _buf_.ReadString()
- { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.upgradeconsume = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Cost(_buf_); this.upgradeconsume.push(_e0);}}
- this.atk = _buf_.ReadInt()
- this.atkSpeed = _buf_.ReadInt()
- }
- /**
- * 序號
- */
- readonly idx: number
- /**
- * 英雄ID
- */
- readonly id: number
- /**
- * 等级
- */
- readonly level: number
- /**
- * 英雄解锁技能
- */
- readonly unlockSkill: number[]
- /**
- * 解锁技能描述
- */
- readonly unlockSkillDesc: string
- /**
- * 升级消耗
- */
- readonly upgradeconsume: Common.Cost[]
- /**
- * 攻击力
- */
- readonly atk: number
- /**
- * 攻击间隔
- */
- readonly atkSpeed: number
- resolve(tables:Tables) {
-
-
-
-
-
- for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
-
-
- }
- }
- /**
- * 英雄表.xlsx
- */
- export class TbHero {
- private _dataMap: Map<number, Hero>
- private _dataList: Hero[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, Hero>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: Hero
- _v = new Hero(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.id, _v)
- }
- }
- getDataMap(): Map<number, Hero> { return this._dataMap; }
- getDataList(): Hero[] { return this._dataList; }
- get(key: number): Hero | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * 英雄等级表.xlsx
- */
- export class TbHeroLevel {
- private _dataMap: Map<number, HeroLevel>
- private _dataList: HeroLevel[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, HeroLevel>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: HeroLevel
- _v = new HeroLevel(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, HeroLevel> { return this._dataMap; }
- getDataList(): HeroLevel[] { return this._dataList; }
- get(key: number): HeroLevel | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * ZD技能Buff.xlsx
- */
- export class TbSkillBuff {
- private _dataMap: Map<number, SkillBuff>
- private _dataList: SkillBuff[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, SkillBuff>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: SkillBuff
- _v = new SkillBuff(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, SkillBuff> { return this._dataMap; }
- getDataList(): SkillBuff[] { return this._dataList; }
- get(key: number): SkillBuff | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * ZD技能表.xlsx
- */
- export class TbSkill {
- private _dataMap: Map<number, Skill>
- private _dataList: Skill[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, Skill>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: Skill
- _v = new Skill(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.skillId, _v)
- }
- }
- getDataMap(): Map<number, Skill> { return this._dataMap; }
- getDataList(): Skill[] { return this._dataList; }
- get(key: number): Skill | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * 波数表.xlsx
- */
- export class TbWave {
- private _dataMap: Map<number, Wave>
- private _dataList: Wave[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, Wave>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: Wave
- _v = new Wave(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, Wave> { return this._dataMap; }
- getDataList(): Wave[] { return this._dataList; }
- get(key: number): Wave | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * 波数奖励表.xlsx
- */
- export class TbWaveRewards {
- private _dataMap: Map<number, WaveRewards>
- private _dataList: WaveRewards[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, WaveRewards>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: WaveRewards
- _v = new WaveRewards(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, WaveRewards> { return this._dataMap; }
- getDataList(): WaveRewards[] { return this._dataList; }
- get(key: number): WaveRewards | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * 道具表.xlsx
- */
- export class TbItem {
- private _dataMap: Map<number, Item>
- private _dataList: Item[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, Item>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: Item
- _v = new Item(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, Item> { return this._dataMap; }
- getDataList(): Item[] { return this._dataList; }
- get(key: number): Item | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * 系统常量表.xlsx
- */
- export class TbSystem {
- private _dataMap: Map<string, System>
- private _dataList: System[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<string, System>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: System
- _v = new System(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.mainKey, _v)
- }
- }
- getDataMap(): Map<string, System> { return this._dataMap; }
- getDataList(): System[] { return this._dataList; }
- get(key: string): System | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * 英雄品质价值表.xlsx
- */
- export class TbHeroQualityWorth {
- private _dataMap: Map<number, HeroQualityWorth>
- private _dataList: HeroQualityWorth[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, HeroQualityWorth>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: HeroQualityWorth
- _v = new HeroQualityWorth(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, HeroQualityWorth> { return this._dataMap; }
- getDataList(): HeroQualityWorth[] { return this._dataList; }
- get(key: number): HeroQualityWorth | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * 战斗召唤权重表.xlsx
- */
- export class TbBattleSummonWeight {
- private _dataMap: Map<number, BattleSummonWeight>
- private _dataList: BattleSummonWeight[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, BattleSummonWeight>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: BattleSummonWeight
- _v = new BattleSummonWeight(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, BattleSummonWeight> { return this._dataMap; }
- getDataList(): BattleSummonWeight[] { return this._dataList; }
- get(key: number): BattleSummonWeight | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * 赌博召唤表.xlsx
- */
- export class TbBattleSpacialSummon {
- private _dataMap: Map<number, BattleSpacialSummon>
- private _dataList: BattleSpacialSummon[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, BattleSpacialSummon>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: BattleSpacialSummon
- _v = new BattleSpacialSummon(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, BattleSpacialSummon> { return this._dataMap; }
- getDataList(): BattleSpacialSummon[] { return this._dataList; }
- get(key: number): BattleSpacialSummon | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- type ByteBufLoader = (file: string) => ByteBuf
- export class Tables {
- private _TbHero: TbHero
- /**
- * 英雄表.xlsx
- */
- get TbHero(): TbHero { return this._TbHero;}
- private _TbHeroLevel: TbHeroLevel
- /**
- * 英雄等级表.xlsx
- */
- get TbHeroLevel(): TbHeroLevel { return this._TbHeroLevel;}
- private _TbSkillBuff: TbSkillBuff
- /**
- * ZD技能Buff.xlsx
- */
- get TbSkillBuff(): TbSkillBuff { return this._TbSkillBuff;}
- private _TbSkill: TbSkill
- /**
- * ZD技能表.xlsx
- */
- get TbSkill(): TbSkill { return this._TbSkill;}
- private _TbWave: TbWave
- /**
- * 波数表.xlsx
- */
- get TbWave(): TbWave { return this._TbWave;}
- private _TbWaveRewards: TbWaveRewards
- /**
- * 波数奖励表.xlsx
- */
- get TbWaveRewards(): TbWaveRewards { return this._TbWaveRewards;}
- private _TbItem: TbItem
- /**
- * 道具表.xlsx
- */
- get TbItem(): TbItem { return this._TbItem;}
- private _TbSystem: TbSystem
- /**
- * 系统常量表.xlsx
- */
- get TbSystem(): TbSystem { return this._TbSystem;}
- private _TbHeroQualityWorth: TbHeroQualityWorth
- /**
- * 英雄品质价值表.xlsx
- */
- get TbHeroQualityWorth(): TbHeroQualityWorth { return this._TbHeroQualityWorth;}
- private _TbBattleSummonWeight: TbBattleSummonWeight
- /**
- * 战斗召唤权重表.xlsx
- */
- get TbBattleSummonWeight(): TbBattleSummonWeight { return this._TbBattleSummonWeight;}
- private _TbBattleSpacialSummon: TbBattleSpacialSummon
- /**
- * 赌博召唤表.xlsx
- */
- get TbBattleSpacialSummon(): TbBattleSpacialSummon { return this._TbBattleSpacialSummon;}
- static getTableNames(): string[] {
- let names: string[] = [];
- names.push('tbhero');
- names.push('tbherolevel');
- names.push('tbskillbuff');
- names.push('tbskill');
- names.push('tbwave');
- names.push('tbwaverewards');
- names.push('tbitem');
- names.push('tbsystem');
- names.push('tbheroqualityworth');
- names.push('tbbattlesummonweight');
- names.push('tbbattlespacialsummon');
- return names;
- }
- constructor(loader: ByteBufLoader) {
- this._TbHero = new TbHero(loader('tbhero'))
- this._TbHeroLevel = new TbHeroLevel(loader('tbherolevel'))
- this._TbSkillBuff = new TbSkillBuff(loader('tbskillbuff'))
- this._TbSkill = new TbSkill(loader('tbskill'))
- this._TbWave = new TbWave(loader('tbwave'))
- this._TbWaveRewards = new TbWaveRewards(loader('tbwaverewards'))
- this._TbItem = new TbItem(loader('tbitem'))
- this._TbSystem = new TbSystem(loader('tbsystem'))
- this._TbHeroQualityWorth = new TbHeroQualityWorth(loader('tbheroqualityworth'))
- this._TbBattleSummonWeight = new TbBattleSummonWeight(loader('tbbattlesummonweight'))
- this._TbBattleSpacialSummon = new TbBattleSpacialSummon(loader('tbbattlespacialsummon'))
- this._TbHero.resolve(this)
- this._TbHeroLevel.resolve(this)
- this._TbSkillBuff.resolve(this)
- this._TbSkill.resolve(this)
- this._TbWave.resolve(this)
- this._TbWaveRewards.resolve(this)
- this._TbItem.resolve(this)
- this._TbSystem.resolve(this)
- this._TbHeroQualityWorth.resolve(this)
- this._TbBattleSummonWeight.resolve(this)
- this._TbBattleSpacialSummon.resolve(this)
- }
- }
|