12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619 |
- //------------------------------------------------------------------------------
- // <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 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 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 Skill {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.remark = _buf_.ReadString()
- this.skillId = _buf_.ReadInt()
- this.level = _buf_.ReadInt()
- this.skillType = _buf_.ReadInt()
- this.cd = _buf_.ReadInt()
- this.gridRange = _buf_.ReadInt()
- this.range = _buf_.ReadInt()
- { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.damage = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.damage.push(_e0);}}
- 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 level: number
- /**
- * 类型
- */
- readonly skillType: number
- /**
- * 冷却时间
- */
- readonly cd: number
- /**
- * 格子范围
- */
- readonly gridRange: number
- /**
- * 攻击距离
- */
- readonly range: number
- /**
- * 攻击距离
- */
- readonly damage: 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 Hero {
- constructor(_buf_: ByteBuf) {
- this.id = _buf_.ReadInt()
- this.quality = _buf_.ReadInt()
- this.attacktype = _buf_.ReadInt()
- this.name = _buf_.ReadString()
- { 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 skills: number[]
- /**
- * 合成英雄公式
- */
- readonly composeheros: number[]
- /**
- * 是否测试
- */
- readonly isShow: 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 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 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 StrengthenLevel {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.quality = _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);}}
- this.attributes = _buf_.ReadString()
- }
- /**
- * 唯一id
- */
- readonly idx: number
- /**
- * 品质
- */
- readonly quality: Quality
- /**
- * 等级
- */
- readonly level: number
- /**
- * 消耗
- */
- readonly rewards: Common.Reward[]
- /**
- * buff增加的属性
- */
- readonly attributes: string
- resolve(tables:Tables) {
-
-
-
- for (let _e of this.rewards) { _e?.resolve(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 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 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 Attr {
- constructor(_buf_: ByteBuf) {
- this.idx = _buf_.ReadInt()
- this.type = _buf_.ReadString()
- this.showLogic = _buf_.ReadInt()
- this.sort = _buf_.ReadInt()
- this.icon = _buf_.ReadString()
- this.fightFactor = _buf_.ReadFloat()
- this.scoreFactor = _buf_.ReadFloat()
- this.showType = _buf_.ReadInt()
- this.baseValue = _buf_.ReadLongAsNumber()
- }
- /**
- * 序列
- */
- readonly idx: number
- /**
- * 属性ID
- */
- readonly type: string
- /**
- * 显示逻辑
- */
- readonly showLogic: number
- /**
- * 排序
- */
- readonly sort: number
- /**
- * 图标
- */
- readonly icon: string
- /**
- * 战力系数
- */
- readonly fightFactor: number
- /**
- * 评分系数
- */
- readonly scoreFactor: number
- /**
- * 显示类型
- */
- readonly showType: number
- /**
- * 基础值
- */
- readonly baseValue: 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()
- this.atkRange = _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
- /**
- * 攻击间隔
- */
- readonly atkRange: 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)
- }
- }
- }
- /**
- * 赌博召唤表.xlsx
- */
- export class TbAttr {
- private _dataMap: Map<number, Attr>
- private _dataList: Attr[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, Attr>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: Attr
- _v = new Attr(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, Attr> { return this._dataMap; }
- getDataList(): Attr[] { return this._dataList; }
- get(key: number): Attr | undefined {
- return this._dataMap.get(key);
- }
- resolve(tables:Tables) {
- for(let data of this._dataList)
- {
- data.resolve(tables)
- }
- }
- }
- /**
- * 赌博召唤表.xlsx
- */
- export class TbStrengthenLevel {
- private _dataMap: Map<number, StrengthenLevel>
- private _dataList: StrengthenLevel[]
- constructor(_buf_: ByteBuf) {
- this._dataMap = new Map<number, StrengthenLevel>()
- this._dataList = []
- for(let n = _buf_.ReadInt(); n > 0; n--) {
- let _v: StrengthenLevel
- _v = new StrengthenLevel(_buf_)
- this._dataList.push(_v)
- this._dataMap.set(_v.idx, _v)
- }
- }
- getDataMap(): Map<number, StrengthenLevel> { return this._dataMap; }
- getDataList(): StrengthenLevel[] { return this._dataList; }
- get(key: number): StrengthenLevel | 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;}
- private _TbAttr: TbAttr
- /**
- * 赌博召唤表.xlsx
- */
- get TbAttr(): TbAttr { return this._TbAttr;}
- private _TbStrengthenLevel: TbStrengthenLevel
- /**
- * 赌博召唤表.xlsx
- */
- get TbStrengthenLevel(): TbStrengthenLevel { return this._TbStrengthenLevel;}
- 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');
- names.push('tbattr');
- names.push('tbstrengthenlevel');
- 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._TbAttr = new TbAttr(loader('tbattr'))
- this._TbStrengthenLevel = new TbStrengthenLevel(loader('tbstrengthenlevel'))
- 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)
- this._TbAttr.resolve(this)
- this._TbStrengthenLevel.resolve(this)
- }
- }
|