config_csv.go 155 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870
  1. package serverproto
  2. const (
  3. CFG_ActiveCodeCfg = "ActiveCodeCfg.csv"
  4. CFG_ActivitiesBtChargeTaskGoldCfg = "ActivitiesBtChargeTaskGoldCfg.csv"
  5. CFG_ActivitiesBtChargeTaskRoMoneyCfg = "ActivitiesBtChargeTaskRoMoneyCfg.csv"
  6. CFG_ActivitiesBtFirstChargeCfg = "ActivitiesBtFirstChargeCfg.csv"
  7. CFG_ActivitiesCfg = "ActivitiesCfg.csv"
  8. CFG_ActivitiesCollectionCfg = "ActivitiesCollectionCfg.csv"
  9. CFG_ActivitiesDiscountsCfg = "ActivitiesDiscountsCfg.csv"
  10. CFG_ActivitiesFirstChargeCfg = "ActivitiesFirstChargeCfg.csv"
  11. CFG_ActivitiesFortnightDaysCfg = "ActivitiesFortnightDaysCfg.csv"
  12. CFG_ActivitiesFortnightOnlineCfg = "ActivitiesFortnightOnlineCfg.csv"
  13. CFG_ActivitiesGiftCfg = "ActivitiesGiftCfg.csv"
  14. CFG_ActivitiesKingTaskCfg = "ActivitiesKingTaskCfg.csv"
  15. CFG_ActivitieslikabilityCfg = "ActivitieslikabilityCfg.csv"
  16. CFG_ActivitiesPetExchangeCfg = "ActivitiesPetExchangeCfg.csv"
  17. CFG_ActivitiesRewardCfg = "ActivitiesRewardCfg.csv"
  18. CFG_ActivitiesSignInCfg = "ActivitiesSignInCfg.csv"
  19. CFG_ActivitiesTaskCfg = "ActivitiesTaskCfg.csv"
  20. CFG_ActivitiesTiredChargeCfg = "ActivitiesTiredChargeCfg.csv"
  21. CFG_ActivityRoulettelCfg = "ActivityRoulettelCfg.csv"
  22. CFG_ActRewardCfg = "ActRewardCfg.csv"
  23. CFG_AdvertisingScreen = "AdvertisingScreen.csv"
  24. CFG_ArenaLevelCfg = "ArenaLevelCfg.csv"
  25. CFG_ArenaRewardCfg = "ArenaRewardCfg.csv"
  26. CFG_ArtifactCfg = "ArtifactCfg.csv"
  27. CFG_ArtifactExpCfg = "ArtifactExpCfg.csv"
  28. CFG_BoliShopCfg = "BoliShopCfg.csv"
  29. CFG_BoliVipCfg = "BoliVipCfg.csv"
  30. CFG_BTSmashEggsCfg = "BTSmashEggsCfg.csv"
  31. CFG_CardCfg = "CardCfg.csv"
  32. CFG_CardIdentification = "CardIdentification.csv"
  33. CFG_CardReset = "CardReset.csv"
  34. CFG_CardSuitNewCfg = "CardSuitNewCfg.csv"
  35. CFG_CardUnlockCfg = "CardUnlockCfg.csv"
  36. CFG_ClimbingTowerCfg = "ClimbingTowerCfg.csv"
  37. CFG_CombinedServiceCfg = "CombinedServiceCfg.csv"
  38. CFG_CompetitionAidouluCfg = "CompetitionAidouluCfg.csv"
  39. CFG_CompetitionCfg = "CompetitionCfg.csv"
  40. CFG_CompetitionDevineCfg = "CompetitionDevineCfg.csv"
  41. CFG_CompetitionPrizeWheelCfg = "CompetitionPrizeWheelCfg.csv"
  42. CFG_ConditionCfg = "ConditionCfg.csv"
  43. CFG_DesignationCfg = "DesignationCfg.csv"
  44. CFG_DropCfg = "DropCfg.csv"
  45. CFG_EquipCfg = "EquipCfg.csv"
  46. CFG_EquipRefineCfg = "EquipRefineCfg.csv"
  47. CFG_EquipSuitNewCfg = "EquipSuitNewCfg.csv"
  48. CFG_EvilCfg = "EvilCfg.csv"
  49. CFG_ExpeditionBuffCfg = "ExpeditionBuffCfg.csv"
  50. CFG_ExpeditionBuffDropCfg = "ExpeditionBuffDropCfg.csv"
  51. CFG_ExpeditionCfg = "ExpeditionCfg.csv"
  52. CFG_FashionCfg = "FashionCfg.csv"
  53. CFG_FashionLevelUp = "FashionLevelUp.csv"
  54. CFG_FashionPaperCfg = "FashionPaperCfg.csv"
  55. CFG_FashionRandom = "FashionRandom.csv"
  56. CFG_FashionSuitCfg = "FashionSuitCfg.csv"
  57. CFG_FightCfg = "FightCfg.csv"
  58. CFG_FunctionCfg = "FunctionCfg.csv"
  59. CFG_GlobalCfg = "GlobalCfg.csv"
  60. CFG_GuildBadgeCfg = "GuildBadgeCfg.csv"
  61. CFG_GuildBossCfg = "GuildBossCfg.csv"
  62. CFG_GuildBossRewardCfg = "GuildBossRewardCfg.csv"
  63. CFG_GuildDemonCfg = "GuildDemonCfg.csv"
  64. CFG_GuildLvCfg = "GuildLvCfg.csv"
  65. CFG_GuildWarAgainstCfg = "GuildWarAgainstCfg.csv"
  66. CFG_GuildWarBuffCfg = "GuildWarBuffCfg.csv"
  67. CFG_GuildWarDojoCfg = "GuildWarDojoCfg.csv"
  68. CFG_HeadFrameCfg = "HeadFrameCfg.csv"
  69. CFG_HeadPortraitCfg = "HeadPortraitCfg.csv"
  70. CFG_HundredDojoCfg = "HundredDojoCfg.csv"
  71. CFG_InvitationTaskCfg = "InvitationTaskCfg.csv"
  72. CFG_ItemCfg = "ItemCfg.csv"
  73. CFG_JobCfg = "JobCfg.csv"
  74. CFG_JobExpCfg = "JobExpCfg.csv"
  75. CFG_KeepSakeCfg = "KeepSakeCfg.csv"
  76. CFG_LevelCfg = "LevelCfg.csv"
  77. CFG_LineMissionCfg = "LineMissionCfg.csv"
  78. CFG_MailCfg = "MailCfg.csv"
  79. CFG_MissionCfg = "MissionCfg.csv"
  80. CFG_NatureCfg = "NatureCfg.csv"
  81. CFG_NpcCfg = "NpcCfg.csv"
  82. CFG_OnlineRewardsCfg = "OnlineRewardsCfg.csv"
  83. CFG_ParterAttributeCfg = "ParterAttributeCfg.csv"
  84. CFG_ParterCfg = "ParterCfg.csv"
  85. CFG_ParterProgressCfg = "ParterProgressCfg.csv"
  86. CFG_ParterSkillTreeCfg = "ParterSkillTreeCfg.csv"
  87. CFG_PassCheckCfg = "PassCheckCfg.csv"
  88. CFG_PassiveSkillCfg = "PassiveSkillCfg.csv"
  89. CFG_PetBattleCfg = "PetBattleCfg.csv"
  90. CFG_PetCfg = "PetCfg.csv"
  91. CFG_PetEquipCfg = "PetEquipCfg.csv"
  92. CFG_PetEquipExpCfg = "PetEquipExpCfg.csv"
  93. CFG_PetEquipSuitCfg = "PetEquipSuitCfg.csv"
  94. CFG_PetExpCfg = "PetExpCfg.csv"
  95. CFG_PetpartnerCfg = "PetpartnerCfg.csv"
  96. CFG_PetProgressCfg = "PetProgressCfg.csv"
  97. CFG_PresspointPvPCfg = "PresspointPvPCfg.csv"
  98. CFG_PrivilegeCardCfg = "PrivilegeCardCfg.csv"
  99. CFG_PurseShopCfg = "PurseShopCfg.csv"
  100. CFG_QualityPointCfg = "QualityPointCfg.csv"
  101. CFG_QuickBattleCostCfg = "QuickBattleCostCfg.csv"
  102. CFG_RobotCfg = "RobotCfg.csv"
  103. CFG_RoleAttributeCfg = "RoleAttributeCfg.csv"
  104. CFG_RuneShopExploreCfg = "RuneShopExploreCfg.csv"
  105. CFG_RuneShopExploreRewardCfg = "RuneShopExploreRewardCfg.csv"
  106. CFG_RuneShopGiftsCfg = "RuneShopGiftsCfg.csv"
  107. CFG_RuneShopGuildBattleCfg = "RuneShopGuildBattleCfg.csv"
  108. CFG_RuneShopLimitCfg = "RuneShopLimitCfg.csv"
  109. CFG_RuneShopMonthCardCfg = "RuneShopMonthCardCfg.csv"
  110. CFG_RuneShopRankAidouluCfg = "RuneShopRankAidouluCfg.csv"
  111. CFG_RuneShopRankArenaCfg = "RuneShopRankArenaCfg.csv"
  112. CFG_RuneShopRankMapCfg = "RuneShopRankMapCfg.csv"
  113. CFG_RuneShopRankPetCfg = "RuneShopRankPetCfg.csv"
  114. CFG_RuneShopRankSkillCfg = "RuneShopRankSkillCfg.csv"
  115. CFG_RuneShopRankTowerCfg = "RuneShopRankTowerCfg.csv"
  116. CFG_RushListCfg = "RushListCfg.csv"
  117. CFG_RushListTargetCfg = "RushListTargetCfg.csv"
  118. CFG_ServiceRecordCfg = "ServiceRecordCfg.csv"
  119. CFG_ShieldedWordCfg = "ShieldedWordCfg.csv"
  120. CFG_ShopCfg = "ShopCfg.csv"
  121. CFG_ShopTypeCfg = "ShopTypeCfg.csv"
  122. CFG_SignInCfg = "SignInCfg.csv"
  123. CFG_SkillCfg = "SkillCfg.csv"
  124. CFG_SkillDemandCfg = "SkillDemandCfg.csv"
  125. CFG_SkillLvCfg = "SkillLvCfg.csv"
  126. CFG_SkillSlotCfg = "SkillSlotCfg.csv"
  127. CFG_SkillSuitNewCfg = "SkillSuitNewCfg.csv"
  128. CFG_SkillTreeCfg = "SkillTreeCfg.csv"
  129. CFG_SkillUpEffectCfg = "SkillUpEffectCfg.csv"
  130. CFG_SummonServerCfg = "SummonServerCfg.csv"
  131. CFG_SummonTemplateCfg = "SummonTemplateCfg.csv"
  132. CFG_SysReward = "SysReward.csv"
  133. CFG_TargetTaskCfg = "TargetTaskCfg.csv"
  134. CFG_TopTowerCfgLevel = "TopTowerCfgLevel.csv"
  135. CFG_TopTowerCfgReward = "TopTowerCfgReward.csv"
  136. CFG_TransportCfg = "TransportCfg.csv"
  137. CFG_UIFuncUnLockCfg = "UIFuncUnLockCfg.csv"
  138. CFG_VipCfg = "VipCfg.csv"
  139. CFG_WishCfg = "WishCfg.csv"
  140. CFG_WorldBossCfg = "WorldBossCfg.csv"
  141. CFG_WorldBossChangePlayCfg = "WorldBossChangePlayCfg.csv"
  142. )
  143. var CFGNameList = map[string]func(path string){}
  144. func configNameListInit() {
  145. CFGNameList["ActiveCodeCfg"] = ActiveCodeCfgLoad
  146. CFGNameList["ActivitiesBtChargeTaskGoldCfg"] = ActivitiesBtChargeTaskGoldCfgLoad
  147. CFGNameList["ActivitiesBtChargeTaskRoMoneyCfg"] = ActivitiesBtChargeTaskRoMoneyCfgLoad
  148. CFGNameList["ActivitiesBtFirstChargeCfg"] = ActivitiesBtFirstChargeCfgLoad
  149. CFGNameList["ActivitiesCfg"] = ActivitiesCfgLoad
  150. CFGNameList["ActivitiesCollectionCfg"] = ActivitiesCollectionCfgLoad
  151. CFGNameList["ActivitiesDiscountsCfg"] = ActivitiesDiscountsCfgLoad
  152. CFGNameList["ActivitiesFirstChargeCfg"] = ActivitiesFirstChargeCfgLoad
  153. CFGNameList["ActivitiesFortnightDaysCfg"] = ActivitiesFortnightDaysCfgLoad
  154. CFGNameList["ActivitiesFortnightOnlineCfg"] = ActivitiesFortnightOnlineCfgLoad
  155. CFGNameList["ActivitiesGiftCfg"] = ActivitiesGiftCfgLoad
  156. CFGNameList["ActivitiesKingTaskCfg"] = ActivitiesKingTaskCfgLoad
  157. CFGNameList["ActivitieslikabilityCfg"] = ActivitieslikabilityCfgLoad
  158. CFGNameList["ActivitiesPetExchangeCfg"] = ActivitiesPetExchangeCfgLoad
  159. CFGNameList["ActivitiesRewardCfg"] = ActivitiesRewardCfgLoad
  160. CFGNameList["ActivitiesSignInCfg"] = ActivitiesSignInCfgLoad
  161. CFGNameList["ActivitiesTaskCfg"] = ActivitiesTaskCfgLoad
  162. CFGNameList["ActivitiesTiredChargeCfg"] = ActivitiesTiredChargeCfgLoad
  163. CFGNameList["ActivityRoulettelCfg"] = ActivityRoulettelCfgLoad
  164. CFGNameList["ActRewardCfg"] = ActRewardCfgLoad
  165. CFGNameList["AdvertisingScreen"] = AdvertisingScreenLoad
  166. CFGNameList["ArenaLevelCfg"] = ArenaLevelCfgLoad
  167. CFGNameList["ArenaRewardCfg"] = ArenaRewardCfgLoad
  168. CFGNameList["ArtifactCfg"] = ArtifactCfgLoad
  169. CFGNameList["ArtifactExpCfg"] = ArtifactExpCfgLoad
  170. CFGNameList["BoliShopCfg"] = BoliShopCfgLoad
  171. CFGNameList["BoliVipCfg"] = BoliVipCfgLoad
  172. CFGNameList["BTSmashEggsCfg"] = BTSmashEggsCfgLoad
  173. CFGNameList["CardCfg"] = CardCfgLoad
  174. CFGNameList["CardIdentification"] = CardIdentificationLoad
  175. CFGNameList["CardReset"] = CardResetLoad
  176. CFGNameList["CardSuitNewCfg"] = CardSuitNewCfgLoad
  177. CFGNameList["CardUnlockCfg"] = CardUnlockCfgLoad
  178. CFGNameList["ClimbingTowerCfg"] = ClimbingTowerCfgLoad
  179. CFGNameList["CombinedServiceCfg"] = CombinedServiceCfgLoad
  180. CFGNameList["CompetitionAidouluCfg"] = CompetitionAidouluCfgLoad
  181. CFGNameList["CompetitionCfg"] = CompetitionCfgLoad
  182. CFGNameList["CompetitionDevineCfg"] = CompetitionDevineCfgLoad
  183. CFGNameList["CompetitionPrizeWheelCfg"] = CompetitionPrizeWheelCfgLoad
  184. CFGNameList["ConditionCfg"] = ConditionCfgLoad
  185. CFGNameList["DesignationCfg"] = DesignationCfgLoad
  186. CFGNameList["DropCfg"] = DropCfgLoad
  187. CFGNameList["EquipCfg"] = EquipCfgLoad
  188. CFGNameList["EquipRefineCfg"] = EquipRefineCfgLoad
  189. CFGNameList["EquipSuitNewCfg"] = EquipSuitNewCfgLoad
  190. CFGNameList["EvilCfg"] = EvilCfgLoad
  191. CFGNameList["ExpeditionBuffCfg"] = ExpeditionBuffCfgLoad
  192. CFGNameList["ExpeditionBuffDropCfg"] = ExpeditionBuffDropCfgLoad
  193. CFGNameList["ExpeditionCfg"] = ExpeditionCfgLoad
  194. CFGNameList["FashionCfg"] = FashionCfgLoad
  195. CFGNameList["FashionLevelUp"] = FashionLevelUpLoad
  196. CFGNameList["FashionPaperCfg"] = FashionPaperCfgLoad
  197. CFGNameList["FashionRandom"] = FashionRandomLoad
  198. CFGNameList["FashionSuitCfg"] = FashionSuitCfgLoad
  199. CFGNameList["FightCfg"] = FightCfgLoad
  200. CFGNameList["FunctionCfg"] = FunctionCfgLoad
  201. CFGNameList["GlobalCfg"] = GlobalCfgLoad
  202. CFGNameList["GuildBadgeCfg"] = GuildBadgeCfgLoad
  203. CFGNameList["GuildBossCfg"] = GuildBossCfgLoad
  204. CFGNameList["GuildBossRewardCfg"] = GuildBossRewardCfgLoad
  205. CFGNameList["GuildDemonCfg"] = GuildDemonCfgLoad
  206. CFGNameList["GuildLvCfg"] = GuildLvCfgLoad
  207. CFGNameList["GuildWarAgainstCfg"] = GuildWarAgainstCfgLoad
  208. CFGNameList["GuildWarBuffCfg"] = GuildWarBuffCfgLoad
  209. CFGNameList["GuildWarDojoCfg"] = GuildWarDojoCfgLoad
  210. CFGNameList["HeadFrameCfg"] = HeadFrameCfgLoad
  211. CFGNameList["HeadPortraitCfg"] = HeadPortraitCfgLoad
  212. CFGNameList["HundredDojoCfg"] = HundredDojoCfgLoad
  213. CFGNameList["InvitationTaskCfg"] = InvitationTaskCfgLoad
  214. CFGNameList["ItemCfg"] = ItemCfgLoad
  215. CFGNameList["JobCfg"] = JobCfgLoad
  216. CFGNameList["JobExpCfg"] = JobExpCfgLoad
  217. CFGNameList["KeepSakeCfg"] = KeepSakeCfgLoad
  218. CFGNameList["LevelCfg"] = LevelCfgLoad
  219. CFGNameList["HardLevelCfg"] = HardLevelCfgLoad
  220. CFGNameList["LineMissionCfg"] = LineMissionCfgLoad
  221. CFGNameList["MailCfg"] = MailCfgLoad
  222. CFGNameList["MissionCfg"] = MissionCfgLoad
  223. CFGNameList["HardMissionCfg"] = HardMissionCfgLoad
  224. CFGNameList["NatureCfg"] = NatureCfgLoad
  225. CFGNameList["NpcCfg"] = NpcCfgLoad
  226. CFGNameList["OnlineRewardsCfg"] = OnlineRewardsCfgLoad
  227. CFGNameList["ParterAttributeCfg"] = ParterAttributeCfgLoad
  228. CFGNameList["ParterCfg"] = ParterCfgLoad
  229. CFGNameList["ParterProgressCfg"] = ParterProgressCfgLoad
  230. CFGNameList["ParterSkillTreeCfg"] = ParterSkillTreeCfgLoad
  231. CFGNameList["PassCheckCfg"] = PassCheckCfgLoad
  232. CFGNameList["PassiveSkillCfg"] = PassiveSkillCfgLoad
  233. CFGNameList["PetBattleCfg"] = PetBattleCfgLoad
  234. CFGNameList["PetCfg"] = PetCfgLoad
  235. CFGNameList["PetEquipCfg"] = PetEquipCfgLoad
  236. CFGNameList["PetEquipExpCfg"] = PetEquipExpCfgLoad
  237. CFGNameList["PetEquipSuitCfg"] = PetEquipSuitCfgLoad
  238. CFGNameList["PetExpCfg"] = PetExpCfgLoad
  239. CFGNameList["PetpartnerCfg"] = PetpartnerCfgLoad
  240. CFGNameList["PetProgressCfg"] = PetProgressCfgLoad
  241. CFGNameList["PresspointPvPCfg"] = PresspointPvPCfgLoad
  242. CFGNameList["PrivilegeCardCfg"] = PrivilegeCardCfgLoad
  243. CFGNameList["PurseShopCfg"] = PurseShopCfgLoad
  244. CFGNameList["QualityPointCfg"] = QualityPointCfgLoad
  245. CFGNameList["QuickBattleCostCfg"] = QuickBattleCostCfgLoad
  246. CFGNameList["RobotCfg"] = RobotCfgLoad
  247. CFGNameList["RoleAttributeCfg"] = RoleAttributeCfgLoad
  248. CFGNameList["RuneShopExploreCfg"] = RuneShopExploreCfgLoad
  249. CFGNameList["RuneShopExploreRewardCfg"] = RuneShopExploreRewardCfgLoad
  250. CFGNameList["RuneShopGiftsCfg"] = RuneShopGiftsCfgLoad
  251. CFGNameList["RuneShopGuildBattleCfg"] = RuneShopGuildBattleCfgLoad
  252. CFGNameList["RuneShopLimitCfg"] = RuneShopLimitCfgLoad
  253. CFGNameList["RuneShopMonthCardCfg"] = RuneShopMonthCardCfgLoad
  254. CFGNameList["RuneShopRankAidouluCfg"] = RuneShopRankAidouluCfgLoad
  255. CFGNameList["RuneShopRankArenaCfg"] = RuneShopRankArenaCfgLoad
  256. CFGNameList["RuneShopRankMapCfg"] = RuneShopRankMapCfgLoad
  257. CFGNameList["RuneShopRankPetCfg"] = RuneShopRankPetCfgLoad
  258. CFGNameList["RuneShopRankSkillCfg"] = RuneShopRankSkillCfgLoad
  259. CFGNameList["RuneShopRankTowerCfg"] = RuneShopRankTowerCfgLoad
  260. CFGNameList["RushListCfg"] = RushListCfgLoad
  261. CFGNameList["RushListTargetCfg"] = RushListTargetCfgLoad
  262. CFGNameList["ServiceRecordCfg"] = ServiceRecordCfgLoad
  263. CFGNameList["ShieldedWordCfg"] = ShieldedWordCfgLoad
  264. CFGNameList["ShopCfg"] = ShopCfgLoad
  265. CFGNameList["ShopTypeCfg"] = ShopTypeCfgLoad
  266. CFGNameList["SignInCfg"] = SignInCfgLoad
  267. CFGNameList["SkillCfg"] = SkillCfgLoad
  268. CFGNameList["SkillDemandCfg"] = SkillDemandCfgLoad
  269. CFGNameList["SkillLvCfg"] = SkillLvCfgLoad
  270. CFGNameList["SkillSlotCfg"] = SkillSlotCfgLoad
  271. CFGNameList["SkillSuitNewCfg"] = SkillSuitNewCfgLoad
  272. CFGNameList["SkillTreeCfg"] = SkillTreeCfgLoad
  273. CFGNameList["SkillUpEffectCfg"] = SkillUpEffectCfgLoad
  274. CFGNameList["SummonServerCfg"] = SummonServerCfgLoad
  275. CFGNameList["SummonTemplateCfg"] = SummonTemplateCfgLoad
  276. CFGNameList["SysReward"] = SysRewardLoad
  277. CFGNameList["TargetTaskCfg"] = TargetTaskCfgLoad
  278. CFGNameList["TopTowerCfgLevel"] = TopTowerCfgLevelLoad
  279. CFGNameList["TopTowerCfgReward"] = TopTowerCfgRewardLoad
  280. CFGNameList["TransportCfg"] = TransportCfgLoad
  281. CFGNameList["UIFuncUnLockCfg"] = UIFuncUnLockCfgLoad
  282. CFGNameList["VipCfg"] = VipCfgLoad
  283. CFGNameList["WishCfg"] = WishCfgLoad
  284. CFGNameList["WorldBossCfg"] = WorldBossCfgLoad
  285. CFGNameList["WorldBossChangePlayCfg"] = WorldBossChangePlayCfgLoad
  286. }
  287. var XmlFileList = []string{
  288. "BattleFormulaParamCfg",
  289. "Born_Scene_prontera_sd",
  290. "FrameEvent",
  291. "FrameEvent_Bafengte",
  292. "FrameEvent_Bianfu",
  293. "FrameEvent_Boli",
  294. "FrameEvent_Fengtu",
  295. "FrameEvent_Jiachong",
  296. "FrameEvent_Lvmianchong",
  297. "FrameEvent_Parter_Archer1",
  298. "FrameEvent_Parter_Mage1",
  299. "FrameEvent_Parter_Priest1",
  300. "FrameEvent_Parter_Sword1",
  301. "FrameEvent_Parter_Thief1",
  302. "FrameEvent_Role_100001",
  303. "FrameEvent_Role_100002",
  304. "FrameEvent_Role_100101",
  305. "FrameEvent_Role_100102",
  306. "FrameEvent_Role_200101",
  307. "FrameEvent_Role_200102",
  308. "FrameEvent_Role_300101",
  309. "FrameEvent_Role_300102",
  310. "FrameEvent_Role_400101",
  311. "FrameEvent_Role_400102",
  312. "FrameEvent_Role_500101",
  313. "FrameEvent_Role_500102",
  314. "FrameEvent_Shirenhua",
  315. "FrameEvent_Xiehailangren",
  316. }
  317. // load config data
  318. func ConfigInit(path string) {
  319. configNameListInit()
  320. ActiveCodeCfgLoad(path)
  321. ActivitiesBtChargeTaskGoldCfgLoad(path)
  322. ActivitiesBtChargeTaskRoMoneyCfgLoad(path)
  323. ActivitiesBtFirstChargeCfgLoad(path)
  324. ActivitiesCfgLoad(path)
  325. ActivitiesCollectionCfgLoad(path)
  326. ActivitiesDiscountsCfgLoad(path)
  327. ActivitiesFirstChargeCfgLoad(path)
  328. ActivitiesFortnightDaysCfgLoad(path)
  329. ActivitiesFortnightOnlineCfgLoad(path)
  330. ActivitiesGiftCfgLoad(path)
  331. ActivitiesKingTaskCfgLoad(path)
  332. ActivitieslikabilityCfgLoad(path)
  333. ActivitiesPetExchangeCfgLoad(path)
  334. ActivitiesRewardCfgLoad(path)
  335. ActivitiesSignInCfgLoad(path)
  336. ActivitiesTaskCfgLoad(path)
  337. ActivitiesTiredChargeCfgLoad(path)
  338. ActivityRoulettelCfgLoad(path)
  339. ActRewardCfgLoad(path)
  340. AdvertisingScreenLoad(path)
  341. ArenaLevelCfgLoad(path)
  342. ArenaRewardCfgLoad(path)
  343. ArtifactCfgLoad(path)
  344. ArtifactExpCfgLoad(path)
  345. BoliShopCfgLoad(path)
  346. BoliVipCfgLoad(path)
  347. BTSmashEggsCfgLoad(path)
  348. CardCfgLoad(path)
  349. CardIdentificationLoad(path)
  350. CardResetLoad(path)
  351. CardSuitNewCfgLoad(path)
  352. CardUnlockCfgLoad(path)
  353. ClimbingTowerCfgLoad(path)
  354. CombinedServiceCfgLoad(path)
  355. CompetitionAidouluCfgLoad(path)
  356. CompetitionCfgLoad(path)
  357. CompetitionDevineCfgLoad(path)
  358. CompetitionPrizeWheelCfgLoad(path)
  359. ConditionCfgLoad(path)
  360. DesignationCfgLoad(path)
  361. DropCfgLoad(path)
  362. EquipCfgLoad(path)
  363. EquipRefineCfgLoad(path)
  364. EquipSuitNewCfgLoad(path)
  365. EvilCfgLoad(path)
  366. ExpeditionBuffCfgLoad(path)
  367. ExpeditionBuffDropCfgLoad(path)
  368. ExpeditionCfgLoad(path)
  369. FashionCfgLoad(path)
  370. FashionLevelUpLoad(path)
  371. FashionPaperCfgLoad(path)
  372. FashionRandomLoad(path)
  373. FashionSuitCfgLoad(path)
  374. FightCfgLoad(path)
  375. FunctionCfgLoad(path)
  376. GlobalCfgLoad(path)
  377. GuildBadgeCfgLoad(path)
  378. GuildBossCfgLoad(path)
  379. GuildBossRewardCfgLoad(path)
  380. GuildDemonCfgLoad(path)
  381. GuildLvCfgLoad(path)
  382. GuildWarAgainstCfgLoad(path)
  383. GuildWarBuffCfgLoad(path)
  384. GuildWarDojoCfgLoad(path)
  385. HeadFrameCfgLoad(path)
  386. HeadPortraitCfgLoad(path)
  387. HundredDojoCfgLoad(path)
  388. InvitationTaskCfgLoad(path)
  389. ItemCfgLoad(path)
  390. JobCfgLoad(path)
  391. JobExpCfgLoad(path)
  392. KeepSakeCfgLoad(path)
  393. LevelCfgLoad(path)
  394. LineMissionCfgLoad(path)
  395. MailCfgLoad(path)
  396. MissionCfgLoad(path)
  397. HardMissionCfgLoad(path)
  398. NatureCfgLoad(path)
  399. NpcCfgLoad(path)
  400. OnlineRewardsCfgLoad(path)
  401. ParterAttributeCfgLoad(path)
  402. ParterCfgLoad(path)
  403. ParterProgressCfgLoad(path)
  404. ParterSkillTreeCfgLoad(path)
  405. PassCheckCfgLoad(path)
  406. PassiveSkillCfgLoad(path)
  407. PetBattleCfgLoad(path)
  408. PetCfgLoad(path)
  409. PetEquipCfgLoad(path)
  410. PetEquipExpCfgLoad(path)
  411. PetEquipSuitCfgLoad(path)
  412. PetExpCfgLoad(path)
  413. PetpartnerCfgLoad(path)
  414. PetProgressCfgLoad(path)
  415. PresspointPvPCfgLoad(path)
  416. PrivilegeCardCfgLoad(path)
  417. PurseShopCfgLoad(path)
  418. QualityPointCfgLoad(path)
  419. QuickBattleCostCfgLoad(path)
  420. RobotCfgLoad(path)
  421. RoleAttributeCfgLoad(path)
  422. RuneShopExploreCfgLoad(path)
  423. RuneShopExploreRewardCfgLoad(path)
  424. RuneShopGiftsCfgLoad(path)
  425. RuneShopGuildBattleCfgLoad(path)
  426. RuneShopLimitCfgLoad(path)
  427. RuneShopMonthCardCfgLoad(path)
  428. RuneShopRankAidouluCfgLoad(path)
  429. RuneShopRankArenaCfgLoad(path)
  430. RuneShopRankMapCfgLoad(path)
  431. RuneShopRankPetCfgLoad(path)
  432. RuneShopRankSkillCfgLoad(path)
  433. RuneShopRankTowerCfgLoad(path)
  434. RushListCfgLoad(path)
  435. RushListTargetCfgLoad(path)
  436. ServiceRecordCfgLoad(path)
  437. ShieldedWordCfgLoad(path)
  438. ShopCfgLoad(path)
  439. HardLevelCfgLoad(path)
  440. CdkCfgLoad(path)
  441. ShopTypeCfgLoad(path)
  442. SignInCfgLoad(path)
  443. SkillCfgLoad(path)
  444. SkillDemandCfgLoad(path)
  445. SkillLvCfgLoad(path)
  446. SkillSlotCfgLoad(path)
  447. SkillSuitNewCfgLoad(path)
  448. SkillTreeCfgLoad(path)
  449. SkillUpEffectCfgLoad(path)
  450. SummonServerCfgLoad(path)
  451. SummonTemplateCfgLoad(path)
  452. SysRewardLoad(path)
  453. TargetTaskCfgLoad(path)
  454. TopTowerCfgLevelLoad(path)
  455. TopTowerCfgRewardLoad(path)
  456. TransportCfgLoad(path)
  457. UIFuncUnLockCfgLoad(path)
  458. VipCfgLoad(path)
  459. WishCfgLoad(path)
  460. WorldBossCfgLoad(path)
  461. WorldBossChangePlayCfgLoad(path)
  462. }
  463. var ActiveCodeCfgLoader map[int32]*ActiveCodeCfg
  464. type ActiveCodeCfg struct {
  465. Id int32 `csv:"Id"` //ID
  466. Code string `csv:"Code"` //类型
  467. }
  468. func ActiveCodeCfgLoad(path string) {
  469. cfg := []*ActiveCodeCfg{}
  470. ActiveCodeCfgLoader = map[int32]*ActiveCodeCfg{}
  471. loadCsvCfg(path+"ActiveCodeCfg.csv", &cfg)
  472. for _, row := range cfg {
  473. ActiveCodeCfgLoader[row.Id] = row
  474. }
  475. }
  476. var ActivitiesBtChargeTaskGoldCfgLoader map[int32]*ActivitiesBtChargeTaskGoldCfg
  477. type ActivitiesBtChargeTaskGoldCfg struct {
  478. Id int32 `csv:"Id"` //唯一id
  479. TaskIds []string `csv:"TaskIds"` //7日累充
  480. DailyTaskIds []string `csv:"DailyTaskIds"` //每日累充
  481. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  482. Day int32 `csv:"Day"` //天数
  483. }
  484. func ActivitiesBtChargeTaskGoldCfgLoad(path string) {
  485. cfg := []*ActivitiesBtChargeTaskGoldCfg{}
  486. ActivitiesBtChargeTaskGoldCfgLoader = map[int32]*ActivitiesBtChargeTaskGoldCfg{}
  487. loadCsvCfg(path+"ActivitiesBtChargeTaskGoldCfg.csv", &cfg)
  488. for _, row := range cfg {
  489. ActivitiesBtChargeTaskGoldCfgLoader[row.Id] = row
  490. }
  491. }
  492. var ActivitiesBtChargeTaskRoMoneyCfgLoader map[int32]*ActivitiesBtChargeTaskRoMoneyCfg
  493. type ActivitiesBtChargeTaskRoMoneyCfg struct {
  494. Id int32 `csv:"Id"` //唯一id
  495. TaskIds []string `csv:"TaskIds"` //7日累充
  496. DailyTaskIds []string `csv:"DailyTaskIds"` //每日累充
  497. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  498. Day int32 `csv:"Day"` //天数
  499. }
  500. func ActivitiesBtChargeTaskRoMoneyCfgLoad(path string) {
  501. cfg := []*ActivitiesBtChargeTaskRoMoneyCfg{}
  502. ActivitiesBtChargeTaskRoMoneyCfgLoader = map[int32]*ActivitiesBtChargeTaskRoMoneyCfg{}
  503. loadCsvCfg(path+"ActivitiesBtChargeTaskRoMoneyCfg.csv", &cfg)
  504. for _, row := range cfg {
  505. ActivitiesBtChargeTaskRoMoneyCfgLoader[row.Id] = row
  506. }
  507. }
  508. var ActivitiesBtFirstChargeCfgLoader map[int32]*ActivitiesBtFirstChargeCfg
  509. type ActivitiesBtFirstChargeCfg struct {
  510. Id int32 `csv:"Id"` //唯一id
  511. Name string `csv:"Name"` //名称
  512. OpenCondition []string `csv:"OpenCondition"` //解锁条件
  513. RechargeAmount []string `csv:"RechargeAmount"` //充值金额
  514. Reward1 []string `csv:"Reward1"` //奖励1
  515. Value1 int32 `csv:"Value1"` //价值
  516. Reward2 []string `csv:"Reward2"` //奖励2
  517. Value2 int32 `csv:"Value2"` //价值
  518. Reward3 []string `csv:"Reward3"` //奖励3
  519. Value3 int32 `csv:"Value3"` //价值
  520. }
  521. func ActivitiesBtFirstChargeCfgLoad(path string) {
  522. cfg := []*ActivitiesBtFirstChargeCfg{}
  523. ActivitiesBtFirstChargeCfgLoader = map[int32]*ActivitiesBtFirstChargeCfg{}
  524. loadCsvCfg(path+"ActivitiesBtFirstChargeCfg.csv", &cfg)
  525. for _, row := range cfg {
  526. ActivitiesBtFirstChargeCfgLoader[row.Id] = row
  527. }
  528. }
  529. var ActivitiesCfgLoader map[int32]*ActivitiesCfg
  530. type ActivitiesCfg struct {
  531. Id int32 `csv:"Id"` //唯一id
  532. Type int32 `csv:"Type"` //活动类型
  533. Order int32 `csv:"Order"` //活动排序
  534. StartTime string `csv:"StartTime"` //活动开始時间
  535. EndTime string `csv:"EndTime"` //活动结束時间
  536. OpenCondition []string `csv:"OpenCondition"` //活动解锁条件
  537. BG string `csv:"BG"` //活动图片
  538. HdDrop []string `csv:"HdDrop"` //活动掉落
  539. ActShopID []string `csv:"ActShopID"` //活动商店ID
  540. NeedShow bool `csv:"NeedShow"` //是否显示活动Banner
  541. ExpiredActivities int32 `csv:"ExpiredActivities"` //过期活动
  542. ServiceMark int32 `csv:"ServiceMark"` //合服活动
  543. }
  544. func ActivitiesCfgLoad(path string) {
  545. cfg := []*ActivitiesCfg{}
  546. ActivitiesCfgLoader = map[int32]*ActivitiesCfg{}
  547. loadCsvCfg(path+"ActivitiesCfg.csv", &cfg)
  548. for _, row := range cfg {
  549. ActivitiesCfgLoader[row.Id] = row
  550. }
  551. }
  552. var ActivitiesCollectionCfgLoader map[int32]*ActivitiesCollectionCfg
  553. type ActivitiesCollectionCfg struct {
  554. Id int32 `csv:"Id"` //唯一id
  555. Order int32 `csv:"Order"` //显示排序
  556. ExchangeCondition []string `csv:"ExchangeCondition"` //兑换条件
  557. ServersReward int32 `csv:"ServersReward"` //全服奖励数量
  558. Number int32 `csv:"Number"` //兑换数量
  559. Reward []string `csv:"Reward"` //兑换奖励
  560. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  561. }
  562. func ActivitiesCollectionCfgLoad(path string) {
  563. cfg := []*ActivitiesCollectionCfg{}
  564. ActivitiesCollectionCfgLoader = map[int32]*ActivitiesCollectionCfg{}
  565. loadCsvCfg(path+"ActivitiesCollectionCfg.csv", &cfg)
  566. for _, row := range cfg {
  567. ActivitiesCollectionCfgLoader[row.Id] = row
  568. }
  569. }
  570. var ActivitiesDiscountsCfgLoader map[int32]*ActivitiesDiscountsCfg
  571. type ActivitiesDiscountsCfg struct {
  572. Id int32 `csv:"Id"` //唯一id
  573. ProductID int32 `csv:"ProductID"` //商品标识
  574. Name string `csv:"Name"` //名称
  575. TriggeringCondition []string `csv:"TriggeringCondition"` //解锁条件
  576. Money float32 `csv:"Money"` //金额
  577. Reward []string `csv:"Reward"` //奖励1
  578. Time int32 `csv:"Time"` //倒计時
  579. Value int32 `csv:"Value"` //价值
  580. Popup int32 `csv:"Popup"` //弹出次数
  581. PopupWindow int32 `csv:"PopupWindow"` //是否弹出
  582. Recharge int32 `csv:"Recharge"` //累计充值
  583. }
  584. func ActivitiesDiscountsCfgLoad(path string) {
  585. cfg := []*ActivitiesDiscountsCfg{}
  586. ActivitiesDiscountsCfgLoader = map[int32]*ActivitiesDiscountsCfg{}
  587. loadCsvCfg(path+"ActivitiesDiscountsCfg.csv", &cfg)
  588. for _, row := range cfg {
  589. ActivitiesDiscountsCfgLoader[row.Id] = row
  590. }
  591. }
  592. var ActivitiesFirstChargeCfgLoader map[int32]*ActivitiesFirstChargeCfg
  593. type ActivitiesFirstChargeCfg struct {
  594. Id int32 `csv:"Id"` //唯一id
  595. Name string `csv:"Name"` //名称
  596. OpenCondition []string `csv:"OpenCondition"` //解锁条件
  597. RechargeAmount float32 `csv:"RechargeAmount"` //充值金额
  598. Reward1 []string `csv:"Reward1"` //奖励1
  599. Value1 int32 `csv:"Value1"` //价值
  600. Reward2 []string `csv:"Reward2"` //奖励2
  601. Value2 int32 `csv:"Value2"` //价值
  602. Reward3 []string `csv:"Reward3"` //奖励3
  603. Value3 int32 `csv:"Value3"` //价值
  604. }
  605. func ActivitiesFirstChargeCfgLoad(path string) {
  606. cfg := []*ActivitiesFirstChargeCfg{}
  607. ActivitiesFirstChargeCfgLoader = map[int32]*ActivitiesFirstChargeCfg{}
  608. loadCsvCfg(path+"ActivitiesFirstChargeCfg.csv", &cfg)
  609. for _, row := range cfg {
  610. ActivitiesFirstChargeCfgLoader[row.Id] = row
  611. }
  612. }
  613. var ActivitiesFortnightDaysCfgLoader map[int32]*ActivitiesFortnightDaysCfg
  614. type ActivitiesFortnightDaysCfg struct {
  615. Id int32 `csv:"Id"` //唯一id
  616. TaskIds []string `csv:"TaskIds"` //成長任务
  617. DailyTaskIds []string `csv:"DailyTaskIds"` //今日挑战
  618. }
  619. func ActivitiesFortnightDaysCfgLoad(path string) {
  620. cfg := []*ActivitiesFortnightDaysCfg{}
  621. ActivitiesFortnightDaysCfgLoader = map[int32]*ActivitiesFortnightDaysCfg{}
  622. loadCsvCfg(path+"ActivitiesFortnightDaysCfg.csv", &cfg)
  623. for _, row := range cfg {
  624. ActivitiesFortnightDaysCfgLoader[row.Id] = row
  625. }
  626. }
  627. var ActivitiesFortnightOnlineCfgLoader map[int32]*ActivitiesFortnightOnlineCfg
  628. type ActivitiesFortnightOnlineCfg struct {
  629. Id int32 `csv:"Id"` //唯一id
  630. Rewards []string `csv:"Rewards"` //登录奖励
  631. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  632. Day int32 `csv:"Day"` //登录天数
  633. }
  634. func ActivitiesFortnightOnlineCfgLoad(path string) {
  635. cfg := []*ActivitiesFortnightOnlineCfg{}
  636. ActivitiesFortnightOnlineCfgLoader = map[int32]*ActivitiesFortnightOnlineCfg{}
  637. loadCsvCfg(path+"ActivitiesFortnightOnlineCfg.csv", &cfg)
  638. for _, row := range cfg {
  639. ActivitiesFortnightOnlineCfgLoader[row.Id] = row
  640. }
  641. }
  642. var ActivitiesGiftCfgLoader map[int32]*ActivitiesGiftCfg
  643. type ActivitiesGiftCfg struct {
  644. Id int32 `csv:"Id"` //ID
  645. Classitemid int32 `csv:"Classitemid"` //档位类型
  646. Classcostaddlike []string `csv:"Classcostaddlike"` //消耗的道具数量:增加的好感度
  647. Activityid int32 `csv:"Activityid"` //活动ID
  648. }
  649. func ActivitiesGiftCfgLoad(path string) {
  650. cfg := []*ActivitiesGiftCfg{}
  651. ActivitiesGiftCfgLoader = map[int32]*ActivitiesGiftCfg{}
  652. loadCsvCfg(path+"ActivitiesGiftCfg.csv", &cfg)
  653. for _, row := range cfg {
  654. ActivitiesGiftCfgLoader[row.Id] = row
  655. }
  656. }
  657. var ActivitiesKingTaskCfgLoader map[int32]*ActivitiesKingTaskCfg
  658. type ActivitiesKingTaskCfg struct {
  659. Id int32 `csv:"Id"` //唯一id
  660. TaskIds []string `csv:"TaskIds"` //成長任务
  661. DailyTaskIds []string `csv:"DailyTaskIds"` //今日挑战
  662. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  663. Day int32 `csv:"Day"` //天数
  664. }
  665. func ActivitiesKingTaskCfgLoad(path string) {
  666. cfg := []*ActivitiesKingTaskCfg{}
  667. ActivitiesKingTaskCfgLoader = map[int32]*ActivitiesKingTaskCfg{}
  668. loadCsvCfg(path+"ActivitiesKingTaskCfg.csv", &cfg)
  669. for _, row := range cfg {
  670. ActivitiesKingTaskCfgLoader[row.Id] = row
  671. }
  672. }
  673. var ActivitieslikabilityCfgLoader map[int32]*ActivitieslikabilityCfg
  674. type ActivitieslikabilityCfg struct {
  675. Id int32 `csv:"Id"` //唯一id
  676. Likelevel int32 `csv:"Likelevel"` //好感度等級
  677. LikeMax int32 `csv:"LikeMax"` //好感度上限
  678. Conditionrewards []string `csv:"Conditionrewards"` //好感度固定值对应奖励
  679. Activityid int32 `csv:"Activityid"` //活动ID
  680. }
  681. func ActivitieslikabilityCfgLoad(path string) {
  682. cfg := []*ActivitieslikabilityCfg{}
  683. ActivitieslikabilityCfgLoader = map[int32]*ActivitieslikabilityCfg{}
  684. loadCsvCfg(path+"ActivitieslikabilityCfg.csv", &cfg)
  685. for _, row := range cfg {
  686. ActivitieslikabilityCfgLoader[row.Id] = row
  687. }
  688. }
  689. var ActivitiesPetExchangeCfgLoader map[int32]*ActivitiesPetExchangeCfg
  690. type ActivitiesPetExchangeCfg struct {
  691. Id int32 `csv:"Id"` //唯一id
  692. Order int32 `csv:"Order"` //显示排序
  693. ExchangeCondition1 []string `csv:"ExchangeCondition1"` //兑换条件1
  694. ExchangeCondition2 []string `csv:"ExchangeCondition2"` //兑换条件2
  695. ServersReward int32 `csv:"ServersReward"` //全服奖励数量
  696. Number int32 `csv:"Number"` //兑换数量
  697. Reward []string `csv:"Reward"` //兑换奖励
  698. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  699. Type int32 `csv:"Type"` //类型
  700. Broadcast int32 `csv:"Broadcast"` //是否系统公告
  701. Scope []string `csv:"Scope"` //筛选范围
  702. ResetDay int32 `csv:"ResetDay"` //刷新天数
  703. }
  704. func ActivitiesPetExchangeCfgLoad(path string) {
  705. cfg := []*ActivitiesPetExchangeCfg{}
  706. ActivitiesPetExchangeCfgLoader = map[int32]*ActivitiesPetExchangeCfg{}
  707. loadCsvCfg(path+"ActivitiesPetExchangeCfg.csv", &cfg)
  708. for _, row := range cfg {
  709. ActivitiesPetExchangeCfgLoader[row.Id] = row
  710. }
  711. }
  712. var ActivitiesRewardCfgLoader map[int32]*ActivitiesRewardCfg
  713. type ActivitiesRewardCfg struct {
  714. Id int32 `csv:"Id"` //唯一id
  715. Type int32 `csv:"Type"` //类型
  716. Integral int32 `csv:"Integral"` //所需积分
  717. Rewards []string `csv:"Rewards"` //宝箱奖励
  718. }
  719. func ActivitiesRewardCfgLoad(path string) {
  720. cfg := []*ActivitiesRewardCfg{}
  721. ActivitiesRewardCfgLoader = map[int32]*ActivitiesRewardCfg{}
  722. loadCsvCfg(path+"ActivitiesRewardCfg.csv", &cfg)
  723. for _, row := range cfg {
  724. ActivitiesRewardCfgLoader[row.Id] = row
  725. }
  726. }
  727. var ActivitiesSignInCfgLoader map[int32]*ActivitiesSignInCfg
  728. type ActivitiesSignInCfg struct {
  729. ID int32 `csv:"ID"` //序列id
  730. SignInType int32 `csv:"SignInType"` //签到类型
  731. SignInReward []string `csv:"SignInReward"` //签到奖励
  732. VipLevel int32 `csv:"VipLevel"` //Vip等級
  733. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  734. Day int32 `csv:"Day"` //签到天数
  735. }
  736. func ActivitiesSignInCfgLoad(path string) {
  737. cfg := []*ActivitiesSignInCfg{}
  738. ActivitiesSignInCfgLoader = map[int32]*ActivitiesSignInCfg{}
  739. loadCsvCfg(path+"ActivitiesSignInCfg.csv", &cfg)
  740. for _, row := range cfg {
  741. ActivitiesSignInCfgLoader[row.ID] = row
  742. }
  743. }
  744. var ActivitiesTaskCfgLoader map[int32]*ActivitiesTaskCfg
  745. type ActivitiesTaskCfg struct {
  746. TaskId int32 `csv:"TaskId"` //任务ID
  747. TaskCondition []string `csv:"TaskCondition"` //任务枚举
  748. Reward []string `csv:"Reward"` //任务奖励
  749. ShowState int32 `csv:"ShowState"` //是否显示進度
  750. Integral int32 `csv:"Integral"` //积分
  751. }
  752. func ActivitiesTaskCfgLoad(path string) {
  753. cfg := []*ActivitiesTaskCfg{}
  754. ActivitiesTaskCfgLoader = map[int32]*ActivitiesTaskCfg{}
  755. loadCsvCfg(path+"ActivitiesTaskCfg.csv", &cfg)
  756. for _, row := range cfg {
  757. ActivitiesTaskCfgLoader[row.TaskId] = row
  758. }
  759. }
  760. var ActivitiesTiredChargeCfgLoader map[int32]*ActivitiesTiredChargeCfg
  761. type ActivitiesTiredChargeCfg struct {
  762. Id int32 `csv:"Id"` //唯一id
  763. RechargeAmount float32 `csv:"RechargeAmount"` //充值金额
  764. Reward []string `csv:"Reward"` //奖励1
  765. Day int32 `csv:"Day"` //奖励天数
  766. Index int32 `csv:"Index"` //奖励档次
  767. }
  768. func ActivitiesTiredChargeCfgLoad(path string) {
  769. cfg := []*ActivitiesTiredChargeCfg{}
  770. ActivitiesTiredChargeCfgLoader = map[int32]*ActivitiesTiredChargeCfg{}
  771. loadCsvCfg(path+"ActivitiesTiredChargeCfg.csv", &cfg)
  772. for _, row := range cfg {
  773. ActivitiesTiredChargeCfgLoader[row.Id] = row
  774. }
  775. }
  776. var ActivityRoulettelCfgLoader map[int32]*ActivityRoulettelCfg
  777. type ActivityRoulettelCfg struct {
  778. Id int32 `csv:"Id"` //ID
  779. LowNormalNum []string `csv:"LowNormalNum"` //低級奖
  780. NormalNum []string `csv:"NormalNum"` //Normal奖
  781. MiniNum []string `csv:"MiniNum"` //Mini奖
  782. MvpNum []string `csv:"MvpNum"` //Mvp奖
  783. ModProbability int32 `csv:"ModProbability"` //模板权重
  784. Probability []string `csv:"Probability"` //非MVP抽奖概率
  785. MvpProbability []string `csv:"MvpProbability"` //MVP抽奖概率
  786. ItemPrice int32 `csv:"ItemPrice"` //一個道具的价格
  787. RewardOneItem []string `csv:"RewardOneItem"` //抽一次价格(道具)
  788. RewardOneGold []string `csv:"RewardOneGold"` //抽一次价格(金幣)
  789. RewardAllItem []string `csv:"RewardAllItem"` //抽全部价格(道具)
  790. RewardAdllGold int32 `csv:"RewardAdllGold"` //抽全部价格(金幣)
  791. RefreshPrice []string `csv:"RefreshPrice"` //刷新价格(金幣)
  792. NoRewardNum int32 `csv:"NoRewardNum"` //结束本轮次数
  793. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  794. }
  795. func ActivityRoulettelCfgLoad(path string) {
  796. cfg := []*ActivityRoulettelCfg{}
  797. ActivityRoulettelCfgLoader = map[int32]*ActivityRoulettelCfg{}
  798. loadCsvCfg(path+"ActivityRoulettelCfg.csv", &cfg)
  799. for _, row := range cfg {
  800. ActivityRoulettelCfgLoader[row.Id] = row
  801. }
  802. }
  803. var ActRewardCfgLoader map[int32]*ActRewardCfg
  804. type ActRewardCfg struct {
  805. ID int32 `csv:"ID"` //ID
  806. ActiveType int32 `csv:"ActiveType"` //活跃度类型
  807. Active int32 `csv:"Active"` //活跃值
  808. Reward []string `csv:"Reward"` //奖励
  809. HdDrop []string `csv:"HdDrop"` //活动掉落
  810. }
  811. func ActRewardCfgLoad(path string) {
  812. cfg := []*ActRewardCfg{}
  813. ActRewardCfgLoader = map[int32]*ActRewardCfg{}
  814. loadCsvCfg(path+"ActRewardCfg.csv", &cfg)
  815. for _, row := range cfg {
  816. ActRewardCfgLoader[row.ID] = row
  817. }
  818. }
  819. var AdvertisingScreenLoader map[int32]*AdvertisingScreen
  820. type AdvertisingScreen struct {
  821. ID int32 `csv:"ID"` //ID
  822. Type string `csv:"Type"` //Type
  823. }
  824. func AdvertisingScreenLoad(path string) {
  825. cfg := []*AdvertisingScreen{}
  826. AdvertisingScreenLoader = map[int32]*AdvertisingScreen{}
  827. loadCsvCfg(path+"AdvertisingScreen.csv", &cfg)
  828. for _, row := range cfg {
  829. AdvertisingScreenLoader[row.ID] = row
  830. }
  831. }
  832. var ArenaLevelCfgLoader map[int32]*ArenaLevelCfg
  833. type ArenaLevelCfg struct {
  834. ArenaLevelId int32 `csv:"ArenaLevelId"` //段位ID
  835. ArenaLevelName string `csv:"ArenaLevelName"` //段位名称
  836. ArenaLevelScore int32 `csv:"ArenaLevelScore"` //段位积分
  837. ArenaLevelReward []string `csv:"ArenaLevelReward"` //段位奖励
  838. WinReward []string `csv:"WinReward"` //胜利资源奖励
  839. FailReward []string `csv:"FailReward"` //失败资源奖励
  840. WinScore int32 `csv:"WinScore"` //胜利积分
  841. WinScore1 int32 `csv:"WinScore1"` //遇强敌胜利积分
  842. WinScore2 int32 `csv:"WinScore2"` //遇弱胜利积分
  843. LostScore int32 `csv:"LostScore"` //失败积分
  844. LostScore1 int32 `csv:"LostScore1"` //遇强敌失败积分
  845. LostScore2 int32 `csv:"LostScore2"` //遇弱失败积分
  846. Section []string `csv:"Section"` //强弱区间
  847. WinStreak []string `csv:"WinStreak"` //连胜积分
  848. Win []string `csv:"Win"` //胜利匹配区间
  849. Fail []string `csv:"Fail"` //失败匹配区间
  850. LevelReduce int32 `csv:"LevelReduce"` //赛季降段
  851. }
  852. func ArenaLevelCfgLoad(path string) {
  853. cfg := []*ArenaLevelCfg{}
  854. ArenaLevelCfgLoader = map[int32]*ArenaLevelCfg{}
  855. loadCsvCfg(path+"ArenaLevelCfg.csv", &cfg)
  856. for _, row := range cfg {
  857. ArenaLevelCfgLoader[row.ArenaLevelId] = row
  858. }
  859. }
  860. var ArenaRewardCfgLoader map[int32]*ArenaRewardCfg
  861. type ArenaRewardCfg struct {
  862. RankId int32 `csv:"RankId"` //排名ID
  863. Zone int32 `csv:"Zone"` //区号
  864. StartTime string `csv:"StartTime"` //开始時间
  865. CloseTime string `csv:"CloseTime"` //结束時间
  866. Rest int32 `csv:"Rest"` //休息時间
  867. ArenaRank []string `csv:"ArenaRank"` //竞技场排名
  868. ArenaReward []string `csv:"ArenaReward"` //排名奖励
  869. }
  870. func ArenaRewardCfgLoad(path string) {
  871. cfg := []*ArenaRewardCfg{}
  872. ArenaRewardCfgLoader = map[int32]*ArenaRewardCfg{}
  873. loadCsvCfg(path+"ArenaRewardCfg.csv", &cfg)
  874. for _, row := range cfg {
  875. ArenaRewardCfgLoader[row.RankId] = row
  876. }
  877. }
  878. var ArtifactCfgLoader map[int32]*ArtifactCfg
  879. type ArtifactCfg struct {
  880. Id int32 `csv:"Id"` //唯一id
  881. Quality int32 `csv:"Quality"` //品质
  882. ArtifactMaxLevel int32 `csv:"ArtifactMaxLevel"` //最大星級
  883. ArtifacFuncId []string `csv:"ArtifacFuncId"` //效果ID
  884. JobType int32 `csv:"JobType"` //职业类型
  885. JobBranch int32 `csv:"JobBranch"` //职业分支
  886. JobStage int32 `csv:"JobStage"` //职业階段
  887. Condition []string `csv:"Condition"` //升星条件
  888. AddFight []string `csv:"AddFight"` //增加战力
  889. SmeltReturn []string `csv:"SmeltReturn"` //熔煉返还材料
  890. ReforgeCost []string `csv:"ReforgeCost"` //神器重铸消耗
  891. Times int32 `csv:"Times"` //批次id
  892. ArtifactDuration []string `csv:"ArtifactDuration"` //开服天数区间
  893. }
  894. func ArtifactCfgLoad(path string) {
  895. cfg := []*ArtifactCfg{}
  896. ArtifactCfgLoader = map[int32]*ArtifactCfg{}
  897. loadCsvCfg(path+"ArtifactCfg.csv", &cfg)
  898. for _, row := range cfg {
  899. ArtifactCfgLoader[row.Id] = row
  900. }
  901. }
  902. var ArtifactExpCfgLoader map[int32]*ArtifactExpCfg
  903. type ArtifactExpCfg struct {
  904. ArtifactLevel int32 `csv:"ArtifactLevel"` //神器位等級
  905. UpgradeCost []string `csv:"UpgradeCost"` //升級消耗
  906. Nature []string `csv:"Nature"` //增加屬性
  907. }
  908. func ArtifactExpCfgLoad(path string) {
  909. cfg := []*ArtifactExpCfg{}
  910. ArtifactExpCfgLoader = map[int32]*ArtifactExpCfg{}
  911. loadCsvCfg(path+"ArtifactExpCfg.csv", &cfg)
  912. for _, row := range cfg {
  913. ArtifactExpCfgLoader[row.ArtifactLevel] = row
  914. }
  915. }
  916. var BoliShopCfgLoader map[int32]*BoliShopCfg
  917. type BoliShopCfg struct {
  918. GoodsId int32 `csv:"GoodsId"` //商品Id
  919. GoodsName string `csv:"GoodsName"` //商品名称
  920. GoodsType int32 `csv:"GoodsType"` //商品所屬tab
  921. GoodsTypename string `csv:"GoodsTypename"` //商品页签
  922. GoodsItem int32 `csv:"GoodsItem"` //商品内容
  923. PayForType int32 `csv:"PayForType"` //消耗资源类型
  924. PayForNum int32 `csv:"PayForNum"` //消耗资源数量
  925. HdDrop int32 `csv:"HdDrop"` //活动商品
  926. SellWell int32 `csv:"SellWell"` //是否热销
  927. Proportion int32 `csv:"Proportion"` //折扣比例
  928. DiscountPayForNum int32 `csv:"DiscountPayForNum"` //折扣后价格
  929. RestrictedType string `csv:"RestrictedType"` //限购类型次数
  930. BeginTime string `csv:"BeginTime"` //开始時间
  931. EndTime string `csv:"EndTime"` //结束時间
  932. SortId int32 `csv:"SortId"` //排序Id
  933. Weight int32 `csv:"Weight"` //权重概率
  934. Weight1 int32 `csv:"Weight1"` //VIP权重概率1
  935. Weight2 int32 `csv:"Weight2"` //VIP权重概率2
  936. Weight3 int32 `csv:"Weight3"` //VIP权重概率3
  937. Weight4 int32 `csv:"Weight4"` //VIP权重概率4
  938. NtfClient int32 `csv:"NtfClient"` //是否通知客户端
  939. GoodsPic string `csv:"GoodsPic"` //图片
  940. Reward []string `csv:"Reward"` //购买后获得道具
  941. Condition []string `csv:"Condition"` //上架解锁条件枚举
  942. BoliVipLevel int32 `csv:"BoliVipLevel"` //波利特权等級显示
  943. }
  944. func BoliShopCfgLoad(path string) {
  945. cfg := []*BoliShopCfg{}
  946. BoliShopCfgLoader = map[int32]*BoliShopCfg{}
  947. loadCsvCfg(path+"BoliShopCfg.csv", &cfg)
  948. for _, row := range cfg {
  949. BoliShopCfgLoader[row.GoodsId] = row
  950. }
  951. }
  952. var BoliVipCfgLoader map[int32]*BoliVipCfg
  953. type BoliVipCfg struct {
  954. Lv int32 `csv:"Lv"` //波利特权等級
  955. QuickBattle int32 `csv:"QuickBattle"` //战斗X2加速
  956. Reward []string `csv:"Reward"` //Vip道具奖励
  957. VipExp int32 `csv:"VipExp"` //Vip升級所需经验
  958. EvilFreeTimes int32 `csv:"EvilFreeTimes"` //恶魔免费刷新次数
  959. VipLogin int32 `csv:"VipLogin"` //VIP上线提示
  960. PetAdvance int32 `csv:"PetAdvance"` //寵物進階消耗免费
  961. CardReset int32 `csv:"CardReset"` //卡片重铸免费
  962. PetBreak int32 `csv:"PetBreak"` //寵物分解全额返还
  963. SkillReset int32 `csv:"SkillReset"` //角色技能重置免费
  964. GuildBossChallenge int32 `csv:"GuildBossChallenge"` //公会狩猎额外次数
  965. CardInsertion int32 `csv:"CardInsertion"` //一键插卡功能
  966. ShopWeight int32 `csv:"ShopWeight"` //黑市VIP权重
  967. WorldBoss int32 `csv:"WorldBoss"` //世界BOSS刮奖次数
  968. PvpReward int32 `csv:"PvpReward"` //额外荣誉之证
  969. HangupTimes int32 `csv:"HangupTimes"` //時光之力购买次数
  970. SilverUp int32 `csv:"SilverUp"` //银幣加成
  971. BaseExpUp int32 `csv:"BaseExpUp"` //基础经验加成
  972. PartnerExpUp int32 `csv:"PartnerExpUp"` //夥伴经验加成
  973. SkillExpUp int32 `csv:"SkillExpUp"` //技能经验加成
  974. GiftBuyTimes []string `csv:"GiftBuyTimes"` //每日禮包购买次数+1
  975. HangupDuration int32 `csv:"HangupDuration"` //离线挂机時長上限(秒)
  976. SignInRewardUp int32 `csv:"SignInRewardUp"` //签到翻倍
  977. WorldBossCount int32 `csv:"WorldBossCount"` //世界BOSS购买次数
  978. DevilsUp int32 `csv:"DevilsUp"` //挂机魔魂值加成
  979. TransportRobbery int32 `csv:"TransportRobbery"` //飞艇被抢劫掉落减少至
  980. LuxuryPrizeWheelTimes int32 `csv:"LuxuryPrizeWheelTimes"` //豪华转盘可使用次数
  981. GiftRewards []string `csv:"GiftRewards"` //每日禮包
  982. }
  983. func BoliVipCfgLoad(path string) {
  984. cfg := []*BoliVipCfg{}
  985. BoliVipCfgLoader = map[int32]*BoliVipCfg{}
  986. loadCsvCfg(path+"BoliVipCfg.csv", &cfg)
  987. for _, row := range cfg {
  988. BoliVipCfgLoader[row.Lv] = row
  989. }
  990. }
  991. var BTSmashEggsCfgLoader map[int32]*BTSmashEggsCfg
  992. type BTSmashEggsCfg struct {
  993. Id int32 `csv:"Id"` //砸蛋Id
  994. Name string `csv:"Name"` //砸蛋名字
  995. Cost []string `csv:"Cost"` //消耗道具顺序
  996. Method []string `csv:"Method"` //砸蛋方式
  997. DropId int32 `csv:"DropId"` //消耗道具1掉落包
  998. DropId2 int32 `csv:"DropId2"` //消耗道具1掉落包
  999. Total int32 `csv:"Total"` //保底奖励的累计次数
  1000. ExtDropId int32 `csv:"ExtDropId"` //保底奖励的掉落包
  1001. SortId int32 `csv:"SortId"` //界面排序
  1002. ShowItemType []string `csv:"ShowItemType"` //可用于表现的道具类型
  1003. UnLock int32 `csv:"UnLock"` //解锁ID
  1004. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  1005. Type int32 `csv:"Type"` //召唤类型
  1006. StartDay int32 `csv:"StartDay"` //开服時间
  1007. SummoType int32 `csv:"SummoType"` //召唤组
  1008. Show []string `csv:"Show"` //大奖预览
  1009. ClientShow []string `csv:"ClientShow"` //客户端大奖预览
  1010. }
  1011. func BTSmashEggsCfgLoad(path string) {
  1012. cfg := []*BTSmashEggsCfg{}
  1013. BTSmashEggsCfgLoader = map[int32]*BTSmashEggsCfg{}
  1014. loadCsvCfg(path+"BTSmashEggsCfg.csv", &cfg)
  1015. for _, row := range cfg {
  1016. BTSmashEggsCfgLoader[row.Id] = row
  1017. }
  1018. }
  1019. var CardCfgLoader map[int32]*CardCfg
  1020. type CardCfg struct {
  1021. CardId int32 `csv:"CardId"` //卡片ID
  1022. CardName string `csv:"CardName"` //卡片名称
  1023. FromCardId int32 `csv:"FromCardId"` //来源目标
  1024. ToCardId int32 `csv:"ToCardId"` //升級目标
  1025. CardType int32 `csv:"CardType"` //卡片类型
  1026. CardLocation int32 `csv:"CardLocation"` //卡片部位
  1027. CardLevel int32 `csv:"CardLevel"` //卡片等級
  1028. Attribute1 []string `csv:"Attribute1"` //卡片屬性
  1029. CardPicId int32 `csv:"CardPicId"` //卡片图鉴ID
  1030. BUFF []string `csv:"BUFF"` //卡片BUFF
  1031. Pro int32 `csv:"Pro"` //卡组权重
  1032. FightPower int32 `csv:"FightPower"` //卡片附加战斗力
  1033. Profession []string `csv:"Profession"` //推荐职业
  1034. Attribute2 []string `csv:"Attribute2"` //筛选用基础屬性
  1035. Attribute3 int32 `csv:"Attribute3"` //卡片相克屬性
  1036. UpCost int32 `csv:"UpCost"` //卡片升級费用
  1037. }
  1038. func CardCfgLoad(path string) {
  1039. cfg := []*CardCfg{}
  1040. CardCfgLoader = map[int32]*CardCfg{}
  1041. loadCsvCfg(path+"CardCfg.csv", &cfg)
  1042. for _, row := range cfg {
  1043. CardCfgLoader[row.CardId] = row
  1044. }
  1045. }
  1046. var CardIdentificationLoader map[int32]*CardIdentification
  1047. type CardIdentification struct {
  1048. Cardid int32 `csv:"Cardid"` //卡片ID
  1049. CardQuality int32 `csv:"CardQuality"` //卡片品质
  1050. MaxLv int32 `csv:"MaxLv"` //最大等級
  1051. CardReward1 []string `csv:"CardReward1"` //收集奖励1
  1052. CardReward2 []string `csv:"CardReward2"` //收集奖励2
  1053. CardReward3 []string `csv:"CardReward3"` //收集奖励3
  1054. CardReward4 []string `csv:"CardReward4"` //收集奖励4
  1055. CardReward5 []string `csv:"CardReward5"` //收集奖励5
  1056. }
  1057. func CardIdentificationLoad(path string) {
  1058. cfg := []*CardIdentification{}
  1059. CardIdentificationLoader = map[int32]*CardIdentification{}
  1060. loadCsvCfg(path+"CardIdentification.csv", &cfg)
  1061. for _, row := range cfg {
  1062. CardIdentificationLoader[row.Cardid] = row
  1063. }
  1064. }
  1065. var CardResetLoader map[int32]*CardReset
  1066. type CardReset struct {
  1067. Id int32 `csv:"Id"` //ID
  1068. CardType int32 `csv:"CardType"` //卡片类型
  1069. CardLv int32 `csv:"CardLv"` //卡片等級
  1070. Normal int32 `csv:"Normal"` //获得普通概率
  1071. Mini int32 `csv:"Mini"` //获得迷你概率
  1072. Boss int32 `csv:"Boss"` //获得BOSS概率
  1073. }
  1074. func CardResetLoad(path string) {
  1075. cfg := []*CardReset{}
  1076. CardResetLoader = map[int32]*CardReset{}
  1077. loadCsvCfg(path+"CardReset.csv", &cfg)
  1078. for _, row := range cfg {
  1079. CardResetLoader[row.Id] = row
  1080. }
  1081. }
  1082. var CardSuitNewCfgLoader map[int32]*CardSuitNewCfg
  1083. type CardSuitNewCfg struct {
  1084. Id int32 `csv:"Id"` //id
  1085. Suit1 []string `csv:"Suit1"` //祝福效果
  1086. TriggerConditions []string `csv:"TriggerConditions"` //激活条件
  1087. }
  1088. func CardSuitNewCfgLoad(path string) {
  1089. cfg := []*CardSuitNewCfg{}
  1090. CardSuitNewCfgLoader = map[int32]*CardSuitNewCfg{}
  1091. loadCsvCfg(path+"CardSuitNewCfg.csv", &cfg)
  1092. for _, row := range cfg {
  1093. CardSuitNewCfgLoader[row.Id] = row
  1094. }
  1095. }
  1096. var CardUnlockCfgLoader map[int32]*CardUnlockCfg
  1097. type CardUnlockCfg struct {
  1098. CardSlotID int32 `csv:"CardSlotID"` //卡槽ID
  1099. UnlockingCondition []string `csv:"UnlockingCondition"` //解锁条件
  1100. }
  1101. func CardUnlockCfgLoad(path string) {
  1102. cfg := []*CardUnlockCfg{}
  1103. CardUnlockCfgLoader = map[int32]*CardUnlockCfg{}
  1104. loadCsvCfg(path+"CardUnlockCfg.csv", &cfg)
  1105. for _, row := range cfg {
  1106. CardUnlockCfgLoader[row.CardSlotID] = row
  1107. }
  1108. }
  1109. var ClimbingTowerCfgLoader map[int32]*ClimbingTowerCfg
  1110. type ClimbingTowerCfg struct {
  1111. Id int32 `csv:"Id"` //唯一id
  1112. MaxFightingTime int32 `csv:"MaxFightingTime"` //最長战斗時间
  1113. RewardItems []string `csv:"RewardItems"` //关卡奖励
  1114. MonsterLevel int32 `csv:"MonsterLevel"` //怪物等級
  1115. SpecialReward []string `csv:"SpecialReward"` //特殊奖励
  1116. FightCheck int32 `csv:"FightCheck"` //战力校验
  1117. SpAddition string `csv:"SpAddition"` //蓝量加成
  1118. PowerWeaken string `csv:"PowerWeaken"` //战力削弱
  1119. StayTimeWeaken string `csv:"StayTimeWeaken"` //停留時间削弱
  1120. Version int32 `csv:"version"` //版本
  1121. CardUnlock string `csv:"CardUnlock"` //卡槽解锁
  1122. CloseDown string `csv:"CloseDown"` //查封配置
  1123. }
  1124. func ClimbingTowerCfgLoad(path string) {
  1125. cfg := []*ClimbingTowerCfg{}
  1126. ClimbingTowerCfgLoader = map[int32]*ClimbingTowerCfg{}
  1127. loadCsvCfg(path+"ClimbingTowerCfg.csv", &cfg)
  1128. for _, row := range cfg {
  1129. ClimbingTowerCfgLoader[row.Id] = row
  1130. }
  1131. }
  1132. var CombinedServiceCfgLoader map[int32]*CombinedServiceCfg
  1133. type CombinedServiceCfg struct {
  1134. Id int32 `csv:"Id"` //唯一id
  1135. Number []string `csv:"Number"` //合服编号
  1136. Time string `csv:"Time"` //合服時间
  1137. Tips string `csv:"Tips"` //合服预告
  1138. }
  1139. func CombinedServiceCfgLoad(path string) {
  1140. cfg := []*CombinedServiceCfg{}
  1141. CombinedServiceCfgLoader = map[int32]*CombinedServiceCfg{}
  1142. loadCsvCfg(path+"CombinedServiceCfg.csv", &cfg)
  1143. for _, row := range cfg {
  1144. CombinedServiceCfgLoader[row.Id] = row
  1145. }
  1146. }
  1147. var CompetitionAidouluCfgLoader map[int32]*CompetitionAidouluCfg
  1148. type CompetitionAidouluCfg struct {
  1149. BoxId int32 `csv:"BoxId"` //宝箱
  1150. GoodNum int32 `csv:"GoodNum"` //需要禮包数
  1151. ConditionHot int32 `csv:"ConditionHot"` //需要热度
  1152. Rewards []string `csv:"Rewards"` //宝箱奖励
  1153. }
  1154. func CompetitionAidouluCfgLoad(path string) {
  1155. cfg := []*CompetitionAidouluCfg{}
  1156. CompetitionAidouluCfgLoader = map[int32]*CompetitionAidouluCfg{}
  1157. loadCsvCfg(path+"CompetitionAidouluCfg.csv", &cfg)
  1158. for _, row := range cfg {
  1159. CompetitionAidouluCfgLoader[row.BoxId] = row
  1160. }
  1161. }
  1162. var CompetitionCfgLoader map[int32]*CompetitionCfg
  1163. type CompetitionCfg struct {
  1164. Id int32 `csv:"Id"` //序列ID
  1165. CompetitionId int32 `csv:"CompetitionId"` //赛季ID
  1166. CompetitionType int32 `csv:"CompetitionType"` //赛季类型
  1167. CompetitionCondition []string `csv:"CompetitionCondition"` //赛季条件
  1168. CompetitionReward1 []string `csv:"CompetitionReward1"` //奖励1
  1169. CompetitionReward2 []string `csv:"CompetitionReward2"` //奖励2
  1170. CompetitionReward3 []string `csv:"CompetitionReward3"` //奖励3
  1171. CompetitionPeriod []string `csv:"CompetitionPeriod"` //赛季周期(天)
  1172. BeginTime string `csv:"BeginTime"` //开始時间
  1173. EndTime string `csv:"EndTime"` //结束時间
  1174. RestTime int32 `csv:"RestTime"` //赛季休赛期(天)
  1175. HuodongItem []string `csv:"HuodongItem"` //活动道具
  1176. Level int32 `csv:"Level"` //档位
  1177. }
  1178. func CompetitionCfgLoad(path string) {
  1179. cfg := []*CompetitionCfg{}
  1180. CompetitionCfgLoader = map[int32]*CompetitionCfg{}
  1181. loadCsvCfg(path+"CompetitionCfg.csv", &cfg)
  1182. for _, row := range cfg {
  1183. CompetitionCfgLoader[row.Id] = row
  1184. }
  1185. }
  1186. var CompetitionDevineCfgLoader map[int32]*CompetitionDevineCfg
  1187. type CompetitionDevineCfg struct {
  1188. ID int32 `csv:"ID"` //ID
  1189. NowLightNum int32 `csv:"NowLightNum"` //当前点亮数
  1190. Probability int32 `csv:"Probability"` //下次点亮概率(万分比)
  1191. PledgeProbability int32 `csv:"PledgeProbability"` //连续点暗保底概率(万分比)
  1192. ItemPrice []string `csv:"ItemPrice"` //下次占道具花费
  1193. GoldPrice []string `csv:"GoldPrice"` //下次占金幣花费
  1194. LuckyPrice []string `csv:"LuckyPrice"` //下次幸运符花费
  1195. Rewards []string `csv:"Rewards"` //奖励
  1196. Point []string `csv:"Point"` //下次【占星】得到的积分
  1197. IfBroadcast int32 `csv:"IfBroadcast"` //領奖是否需要播报
  1198. BroadcastKey string `csv:"BroadcastKey"` //播报key
  1199. }
  1200. func CompetitionDevineCfgLoad(path string) {
  1201. cfg := []*CompetitionDevineCfg{}
  1202. CompetitionDevineCfgLoader = map[int32]*CompetitionDevineCfg{}
  1203. loadCsvCfg(path+"CompetitionDevineCfg.csv", &cfg)
  1204. for _, row := range cfg {
  1205. CompetitionDevineCfgLoader[row.ID] = row
  1206. }
  1207. }
  1208. var CompetitionPrizeWheelCfgLoader map[int32]*CompetitionPrizeWheelCfg
  1209. type CompetitionPrizeWheelCfg struct {
  1210. Id int32 `csv:"Id"` //ID
  1211. LowNormalNum []string `csv:"LowNormalNum"` //低級奖
  1212. NormalNum []string `csv:"NormalNum"` //Normal奖
  1213. MiniNum []string `csv:"MiniNum"` //Mini奖
  1214. MvpNum []string `csv:"MvpNum"` //Mvp奖
  1215. ModProbability int32 `csv:"ModProbability"` //模板权重
  1216. Probability []string `csv:"Probability"` //非MVP抽奖概率
  1217. MvpProbability []string `csv:"MvpProbability"` //MVP抽奖概率
  1218. ItemPrice int32 `csv:"ItemPrice"` //一個道具的价格
  1219. RewardOneItem []string `csv:"RewardOneItem"` //抽一次价格(道具)
  1220. RewardOneGold []string `csv:"RewardOneGold"` //抽一次价格(金幣)
  1221. RewardAllItem []string `csv:"RewardAllItem"` //抽全部价格(道具)
  1222. RewardAdllGold int32 `csv:"RewardAdllGold"` //抽全部价格(金幣)
  1223. RefreshPrice []string `csv:"RefreshPrice"` //刷新价格(金幣)
  1224. NoRewardNum int32 `csv:"NoRewardNum"` //结束本轮次数
  1225. RewardOnePoint []string `csv:"RewardOnePoint"` //抽一次送赛季积分
  1226. RewardAllPoint int32 `csv:"RewardAllPoint"` //抽全部送赛季积分
  1227. }
  1228. func CompetitionPrizeWheelCfgLoad(path string) {
  1229. cfg := []*CompetitionPrizeWheelCfg{}
  1230. CompetitionPrizeWheelCfgLoader = map[int32]*CompetitionPrizeWheelCfg{}
  1231. loadCsvCfg(path+"CompetitionPrizeWheelCfg.csv", &cfg)
  1232. for _, row := range cfg {
  1233. CompetitionPrizeWheelCfgLoader[row.Id] = row
  1234. }
  1235. }
  1236. var ConditionCfgLoader map[int32]*ConditionCfg
  1237. type ConditionCfg struct {
  1238. ConditionId int32 `csv:"ConditionId"` //条件ID
  1239. Condition []string `csv:"Condition"` //条件枚举
  1240. }
  1241. func ConditionCfgLoad(path string) {
  1242. cfg := []*ConditionCfg{}
  1243. ConditionCfgLoader = map[int32]*ConditionCfg{}
  1244. loadCsvCfg(path+"ConditionCfg.csv", &cfg)
  1245. for _, row := range cfg {
  1246. ConditionCfgLoader[row.ConditionId] = row
  1247. }
  1248. }
  1249. var DesignationCfgLoader map[int32]*DesignationCfg
  1250. type DesignationCfg struct {
  1251. ID int32 `csv:"ID"` //ID
  1252. Name string `csv:"Name"` //称号名字
  1253. Type int32 `csv:"Type"` //称号类别
  1254. Attribute []string `csv:"Attribute"` //称号屬性
  1255. TaskCondition []string `csv:"TaskCondition"` //任务条件枚举
  1256. TaskConditionItem []string `csv:"TaskConditionItem"` //消耗道具
  1257. Time int32 `csv:"Time"` //称号時限
  1258. DecomposeReward int32 `csv:"DecomposeReward"` //分解
  1259. RefreshDaily int32 `csv:"RefreshDaily"` //条件计数是否每日刷新
  1260. }
  1261. func DesignationCfgLoad(path string) {
  1262. cfg := []*DesignationCfg{}
  1263. DesignationCfgLoader = map[int32]*DesignationCfg{}
  1264. loadCsvCfg(path+"DesignationCfg.csv", &cfg)
  1265. for _, row := range cfg {
  1266. DesignationCfgLoader[row.ID] = row
  1267. }
  1268. }
  1269. var DropCfgLoader map[int32]*DropCfg
  1270. type DropCfg struct {
  1271. Id int32 `csv:"Id"` //ID
  1272. Rate int32 `csv:"Rate"` //出现概率
  1273. DropType int32 `csv:"DropType"` //类型
  1274. Times int32 `csv:"Times"` //随机次数
  1275. Drop1 []string `csv:"Drop1"` //掉落组1
  1276. }
  1277. func DropCfgLoad(path string) {
  1278. cfg := []*DropCfg{}
  1279. DropCfgLoader = map[int32]*DropCfg{}
  1280. loadCsvCfg(path+"DropCfg.csv", &cfg)
  1281. for _, row := range cfg {
  1282. DropCfgLoader[row.Id] = row
  1283. }
  1284. }
  1285. var EquipCfgLoader map[int32]*EquipCfg
  1286. type EquipCfg struct {
  1287. Id int32 `csv:"Id"` //id
  1288. Type int32 `csv:"Type"` //装备类型
  1289. EquipLevel int32 `csv:"EquipLevel"` //装备等級
  1290. JobType []string `csv:"JobType"` //职业类型
  1291. Forge int32 `csv:"Forge"` //锻造目标
  1292. ForgeOld int32 `csv:"ForgeOld"` //装备前置
  1293. CostMoney int32 `csv:"CostMoney"` //合成消耗
  1294. Suit int32 `csv:"Suit"` //套装ID
  1295. Attack int32 `csv:"Attack"` //物攻
  1296. MagicAttack int32 `csv:"MagicAttack"` //魔攻
  1297. Defense int32 `csv:"Defense"` //物防
  1298. MagicDefense int32 `csv:"MagicDefense"` //魔防
  1299. Life int32 `csv:"Life"` //生命
  1300. Sp int32 `csv:"Sp"` //蓝量
  1301. Crit int32 `csv:"Crit"` //暴击
  1302. Ten int32 `csv:"Ten"` //韧性
  1303. Hit int32 `csv:"Hit"` //命中
  1304. Dodge int32 `csv:"Dodge"` //闪避
  1305. PhysicalDamageBonus int32 `csv:"PhysicalDamageBonus"` //物伤加成
  1306. MagicDamageBonus int32 `csv:"MagicDamageBonus"` //魔伤加成
  1307. AtkPercent int32 `csv:"AtkPercent"` //ATK%
  1308. MatkPercent int32 `csv:"MatkPercent"` //MATK%
  1309. Str int32 `csv:"Str"` //力量
  1310. Agi int32 `csv:"Agi"` //敏捷
  1311. Int int32 `csv:"Int"` //智力
  1312. Vit int32 `csv:"Vit"` //体质
  1313. Dex int32 `csv:"Dex"` //靈巧
  1314. Luk int32 `csv:"Luk"` //幸运
  1315. }
  1316. func EquipCfgLoad(path string) {
  1317. cfg := []*EquipCfg{}
  1318. EquipCfgLoader = map[int32]*EquipCfg{}
  1319. loadCsvCfg(path+"EquipCfg.csv", &cfg)
  1320. for _, row := range cfg {
  1321. EquipCfgLoader[row.Id] = row
  1322. }
  1323. }
  1324. var EquipRefineCfgLoader map[int32]*EquipRefineCfg
  1325. type EquipRefineCfg struct {
  1326. Id int32 `csv:"Id"` //id
  1327. Place1 []string `csv:"Place1"` //部位1
  1328. Costzeny1 int32 `csv:"Costzeny1"` //消耗银幣1
  1329. Costitem1 []string `csv:"Costitem1"` //消耗道具1
  1330. Place2 []string `csv:"Place2"` //部位2
  1331. Costzeny2 int32 `csv:"Costzeny2"` //消耗银幣2
  1332. Costitem2 []string `csv:"Costitem2"` //消耗道具2
  1333. Rate int32 `csv:"rate"` //成功概率
  1334. Result int32 `csv:"Result"` //精煉效果
  1335. Suit []string `csv:"Suit"` //全身加
  1336. SuitServer []string `csv:"SuitServer"` //全身加
  1337. }
  1338. func EquipRefineCfgLoad(path string) {
  1339. cfg := []*EquipRefineCfg{}
  1340. EquipRefineCfgLoader = map[int32]*EquipRefineCfg{}
  1341. loadCsvCfg(path+"EquipRefineCfg.csv", &cfg)
  1342. for _, row := range cfg {
  1343. EquipRefineCfgLoader[row.Id] = row
  1344. }
  1345. }
  1346. var EquipSuitNewCfgLoader map[int32]*EquipSuitNewCfg
  1347. type EquipSuitNewCfg struct {
  1348. Id int32 `csv:"Id"` //id
  1349. Name string `csv:"Name"` //名称
  1350. Suit1 []string `csv:"Suit1"` //2件屬性
  1351. Suit2 []string `csv:"Suit2"` //4件屬性
  1352. Suit3 []string `csv:"Suit3"` //6件屬性
  1353. }
  1354. func EquipSuitNewCfgLoad(path string) {
  1355. cfg := []*EquipSuitNewCfg{}
  1356. EquipSuitNewCfgLoader = map[int32]*EquipSuitNewCfg{}
  1357. loadCsvCfg(path+"EquipSuitNewCfg.csv", &cfg)
  1358. for _, row := range cfg {
  1359. EquipSuitNewCfgLoader[row.Id] = row
  1360. }
  1361. }
  1362. var EvilCfgLoader map[int32]*EvilCfg
  1363. type EvilCfg struct {
  1364. Id int32 `csv:"Id"` //唯一id
  1365. MonsterList []string `csv:"MonsterList"` //召唤怪物
  1366. LevelReward []string `csv:"LevelReward"` //升級奖励
  1367. LevelTimes int32 `csv:"LevelTimes"` //升級次数
  1368. MaxFightingTime int32 `csv:"MaxFightingTime"` //最長战斗時间
  1369. }
  1370. func EvilCfgLoad(path string) {
  1371. cfg := []*EvilCfg{}
  1372. EvilCfgLoader = map[int32]*EvilCfg{}
  1373. loadCsvCfg(path+"EvilCfg.csv", &cfg)
  1374. for _, row := range cfg {
  1375. EvilCfgLoader[row.Id] = row
  1376. }
  1377. }
  1378. var ExpeditionBuffCfgLoader map[int32]*ExpeditionBuffCfg
  1379. type ExpeditionBuffCfg struct {
  1380. Id int32 `csv:"Id"` //唯一id
  1381. BuffId int32 `csv:"BuffId"` //buffid
  1382. WarriorScore int32 `csv:"WarriorScore"` //勇士积分
  1383. }
  1384. func ExpeditionBuffCfgLoad(path string) {
  1385. cfg := []*ExpeditionBuffCfg{}
  1386. ExpeditionBuffCfgLoader = map[int32]*ExpeditionBuffCfg{}
  1387. loadCsvCfg(path+"ExpeditionBuffCfg.csv", &cfg)
  1388. for _, row := range cfg {
  1389. ExpeditionBuffCfgLoader[row.Id] = row
  1390. }
  1391. }
  1392. var ExpeditionBuffDropCfgLoader map[int32]*ExpeditionBuffDropCfg
  1393. type ExpeditionBuffDropCfg struct {
  1394. Id int32 `csv:"Id"` //索引
  1395. BossID int32 `csv:"BossID"` //BossID
  1396. Buffs []string `csv:"Buffs"` //掉落Buff列表
  1397. LevelId int32 `csv:"LevelId"` //关卡Id
  1398. WarriorScore int32 `csv:"WarriorScore"` //勇士积分
  1399. }
  1400. func ExpeditionBuffDropCfgLoad(path string) {
  1401. cfg := []*ExpeditionBuffDropCfg{}
  1402. ExpeditionBuffDropCfgLoader = map[int32]*ExpeditionBuffDropCfg{}
  1403. loadCsvCfg(path+"ExpeditionBuffDropCfg.csv", &cfg)
  1404. for _, row := range cfg {
  1405. ExpeditionBuffDropCfgLoader[row.Id] = row
  1406. }
  1407. }
  1408. var ExpeditionCfgLoader map[int32]*ExpeditionCfg
  1409. type ExpeditionCfg struct {
  1410. Id int32 `csv:"Id"` //唯一id
  1411. Type int32 `csv:"Type"` //副本难度
  1412. LevelId int32 `csv:"LevelId"` //副本关
  1413. LevelNum int32 `csv:"LevelNum"` //关卡数量
  1414. BossList []string `csv:"BossList"` //召唤boss
  1415. Reward []string `csv:"Reward"` //奖励
  1416. MaxFightingTime int32 `csv:"MaxFightingTime"` //最長战斗時间
  1417. HighReward int32 `csv:"HighReward"` //是否为高級奖励
  1418. ChallengeNum int32 `csv:"ChallengeNum"` //赠送挑战次数
  1419. UnlockDesc string `csv:"UnlockDesc"` //开启条件
  1420. WarriorScore int32 `csv:"WarriorScore"` //勇士积分
  1421. LevelCoefficient int32 `csv:"LevelCoefficient"` //加成积分系数
  1422. DayReward []string `csv:"DayReward"` //每日通关奖励
  1423. }
  1424. func ExpeditionCfgLoad(path string) {
  1425. cfg := []*ExpeditionCfg{}
  1426. ExpeditionCfgLoader = map[int32]*ExpeditionCfg{}
  1427. loadCsvCfg(path+"ExpeditionCfg.csv", &cfg)
  1428. for _, row := range cfg {
  1429. ExpeditionCfgLoader[row.Id] = row
  1430. }
  1431. }
  1432. var FashionCfgLoader map[int32]*FashionCfg
  1433. type FashionCfg struct {
  1434. FashionId int32 `csv:"FashionId"` //時装id
  1435. FashionLocation int32 `csv:"FashionLocation"` //時装部位类型
  1436. FashionHideHair bool `csv:"FashionHideHair"` //是否隐藏发型
  1437. FashionSex int32 `csv:"FashionSex"` //時装性别限制
  1438. FashionUseJob []string `csv:"FashionUseJob"` //時装职业限制
  1439. FashionOpen bool `csv:"FashionOpen"` //是否开放使用
  1440. FashionQuality int32 `csv:"FashionQuality"` //時装品质
  1441. AttrNum int32 `csv:"AttrNum"` //屬性数量
  1442. SuitId []string `csv:"SuitId"` //時装套装
  1443. }
  1444. func FashionCfgLoad(path string) {
  1445. cfg := []*FashionCfg{}
  1446. FashionCfgLoader = map[int32]*FashionCfg{}
  1447. loadCsvCfg(path+"FashionCfg.csv", &cfg)
  1448. for _, row := range cfg {
  1449. FashionCfgLoader[row.FashionId] = row
  1450. }
  1451. }
  1452. var FashionLevelUpLoader map[int32]*FashionLevelUp
  1453. type FashionLevelUp struct {
  1454. Level int32 `csv:"Level"` //等級
  1455. UpMaterial1 []string `csv:"UpMaterial1"` //绿色升級消耗
  1456. UpMaterial2 []string `csv:"UpMaterial2"` //蓝色升級消耗
  1457. UpMaterial3 []string `csv:"UpMaterial3"` //紫色升級消耗
  1458. UpMaterial4 []string `csv:"UpMaterial4"` //金色升級消耗
  1459. UpMaterial5 []string `csv:"UpMaterial5"` //红色升級消耗
  1460. UpAttribute int32 `csv:"UpAttribute"` //每級屬性
  1461. }
  1462. func FashionLevelUpLoad(path string) {
  1463. cfg := []*FashionLevelUp{}
  1464. FashionLevelUpLoader = map[int32]*FashionLevelUp{}
  1465. loadCsvCfg(path+"FashionLevelUp.csv", &cfg)
  1466. for _, row := range cfg {
  1467. FashionLevelUpLoader[row.Level] = row
  1468. }
  1469. }
  1470. var FashionPaperCfgLoader map[int32]*FashionPaperCfg
  1471. type FashionPaperCfg struct {
  1472. PaperId int32 `csv:"PaperId"` //图纸ID
  1473. MakeMaterial []string `csv:"MakeMaterial"` //图纸制作材料
  1474. FashionId int32 `csv:"FashionId"` //時装ID
  1475. ResolveItem []string `csv:"ResolveItem"` //分解获得
  1476. }
  1477. func FashionPaperCfgLoad(path string) {
  1478. cfg := []*FashionPaperCfg{}
  1479. FashionPaperCfgLoader = map[int32]*FashionPaperCfg{}
  1480. loadCsvCfg(path+"FashionPaperCfg.csv", &cfg)
  1481. for _, row := range cfg {
  1482. FashionPaperCfgLoader[row.PaperId] = row
  1483. }
  1484. }
  1485. var FashionRandomLoader map[int32]*FashionRandom
  1486. type FashionRandom struct {
  1487. ID int32 `csv:"ID"` //ID
  1488. RoleId int32 `csv:"RoleId"` //目标角色类型
  1489. AtrId []string `csv:"AtrId"` //屬性类型
  1490. }
  1491. func FashionRandomLoad(path string) {
  1492. cfg := []*FashionRandom{}
  1493. FashionRandomLoader = map[int32]*FashionRandom{}
  1494. loadCsvCfg(path+"FashionRandom.csv", &cfg)
  1495. for _, row := range cfg {
  1496. FashionRandomLoader[row.ID] = row
  1497. }
  1498. }
  1499. var FashionSuitCfgLoader map[int32]*FashionSuitCfg
  1500. type FashionSuitCfg struct {
  1501. SuitId int32 `csv:"SuitId"` //套装id
  1502. SuitName string `csv:"SuitName"` //套装标签名字
  1503. SuitSex int32 `csv:"SuitSex"` //套装性别
  1504. FashionId []string `csv:"FashionId"` //套装内時装
  1505. LevelCondition []string `csv:"LevelCondition"` //套装等級条件
  1506. Attribute []string `csv:"Attribute"` //每級屬性
  1507. }
  1508. func FashionSuitCfgLoad(path string) {
  1509. cfg := []*FashionSuitCfg{}
  1510. FashionSuitCfgLoader = map[int32]*FashionSuitCfg{}
  1511. loadCsvCfg(path+"FashionSuitCfg.csv", &cfg)
  1512. for _, row := range cfg {
  1513. FashionSuitCfgLoader[row.SuitId] = row
  1514. }
  1515. }
  1516. var FightCfgLoader map[int32]*FightCfg
  1517. type FightCfg struct {
  1518. Id int32 `csv:"Id"` //屬性ID
  1519. Coefficient []string `csv:"Coefficient"` //系数
  1520. Mapping int32 `csv:"Mapping"` //映射关系
  1521. }
  1522. func FightCfgLoad(path string) {
  1523. cfg := []*FightCfg{}
  1524. FightCfgLoader = map[int32]*FightCfg{}
  1525. loadCsvCfg(path+"FightCfg.csv", &cfg)
  1526. for _, row := range cfg {
  1527. FightCfgLoader[row.Id] = row
  1528. }
  1529. }
  1530. var FunctionCfgLoader map[int32]*FunctionCfg
  1531. type FunctionCfg struct {
  1532. Id int32 `csv:"Id"` //状态id
  1533. FunctionType int32 `csv:"FunctionType"` //状态类型
  1534. Group int32 `csv:"Group"` //状态组
  1535. BuffType int32 `csv:"BuffType"` //buff类型
  1536. HurtStop int32 `csv:"HurtStop"` //伤害打断
  1537. ForbidMove int32 `csv:"ForbidMove"` //禁止移动
  1538. ForbidAttack int32 `csv:"ForbidAttack"` //禁止普攻
  1539. ForbidSkill int32 `csv:"ForbidSkill"` //禁止技能
  1540. Dodge int32 `csv:"Dodge"` //闪避
  1541. Effect int32 `csv:"Effect"` //状态特效
  1542. EndEffect int32 `csv:"EndEffect"` //状态特效
  1543. }
  1544. func FunctionCfgLoad(path string) {
  1545. cfg := []*FunctionCfg{}
  1546. FunctionCfgLoader = map[int32]*FunctionCfg{}
  1547. loadCsvCfg(path+"FunctionCfg.csv", &cfg)
  1548. for _, row := range cfg {
  1549. FunctionCfgLoader[row.Id] = row
  1550. }
  1551. }
  1552. var GlobalCfgLoader map[int32]*GlobalCfg
  1553. type GlobalCfg struct {
  1554. Id int32 `csv:"Id"` //全局配置id
  1555. IVal int32 `csv:"IVal"` //int类型数据
  1556. SVal string `csv:"SVal"` //字符串类型数据
  1557. FVal float32 `csv:"FVal"` //浮点数据类型
  1558. }
  1559. func GlobalCfgLoad(path string) {
  1560. cfg := []*GlobalCfg{}
  1561. GlobalCfgLoader = map[int32]*GlobalCfg{}
  1562. loadCsvCfg(path+"GlobalCfg.csv", &cfg)
  1563. for _, row := range cfg {
  1564. GlobalCfgLoader[row.Id] = row
  1565. }
  1566. }
  1567. var GuildBadgeCfgLoader map[int32]*GuildBadgeCfg
  1568. type GuildBadgeCfg struct {
  1569. Id int32 `csv:"Id"` //ID
  1570. }
  1571. func GuildBadgeCfgLoad(path string) {
  1572. cfg := []*GuildBadgeCfg{}
  1573. GuildBadgeCfgLoader = map[int32]*GuildBadgeCfg{}
  1574. loadCsvCfg(path+"GuildBadgeCfg.csv", &cfg)
  1575. for _, row := range cfg {
  1576. GuildBadgeCfgLoader[row.Id] = row
  1577. }
  1578. }
  1579. var GuildBossCfgLoader map[int32]*GuildBossCfg
  1580. type GuildBossCfg struct {
  1581. Id int32 `csv:"Id"` //全局配置id
  1582. BossType int32 `csv:"BossType"` //BOSS类型
  1583. Challenge int32 `csv:"Challenge"` //挑战次数
  1584. SummonId int32 `csv:"SummonId"` //召唤物id
  1585. SummonLimit []string `csv:"SummonLimit"` //开启权限
  1586. SummonTime int32 `csv:"SummonTime"` //BOSS开启時间
  1587. LifeTime int32 `csv:"LifeTime"` //boss存活時间
  1588. SettlementCd int32 `csv:"SettlementCd"` //BOSS结算CD
  1589. UnlockCond int32 `csv:"UnlockCond"` //解锁条件
  1590. Consume int32 `csv:"Consume"` //开启消耗
  1591. BattleTime int32 `csv:"BattleTime"` //挑战時间
  1592. DamageSegment int32 `csv:"DamageSegment"` //伤害档位
  1593. RewardRange []string `csv:"RewardRange"` //奖励区间
  1594. ReviewAwards []string `csv:"ReviewAwards"` //挑战后的可获得奖励预览
  1595. Reward []string `csv:"Reward"` //单局档位结算奖励
  1596. MasterReward []string `csv:"MasterReward"` //大师饋赠奖励
  1597. EndBattleDamage int32 `csv:"EndBattleDamage"` //战斗终止伤害量
  1598. }
  1599. func GuildBossCfgLoad(path string) {
  1600. cfg := []*GuildBossCfg{}
  1601. GuildBossCfgLoader = map[int32]*GuildBossCfg{}
  1602. loadCsvCfg(path+"GuildBossCfg.csv", &cfg)
  1603. for _, row := range cfg {
  1604. GuildBossCfgLoader[row.Id] = row
  1605. }
  1606. }
  1607. var GuildBossRewardCfgLoader map[int32]*GuildBossRewardCfg
  1608. type GuildBossRewardCfg struct {
  1609. Id int32 `csv:"Id"` //ID
  1610. Reward []string `csv:"Reward"` //结算奖励
  1611. Note string `csv:"Note"` //备注
  1612. }
  1613. func GuildBossRewardCfgLoad(path string) {
  1614. cfg := []*GuildBossRewardCfg{}
  1615. GuildBossRewardCfgLoader = map[int32]*GuildBossRewardCfg{}
  1616. loadCsvCfg(path+"GuildBossRewardCfg.csv", &cfg)
  1617. for _, row := range cfg {
  1618. GuildBossRewardCfgLoader[row.Id] = row
  1619. }
  1620. }
  1621. var GuildDemonCfgLoader map[int32]*GuildDemonCfg
  1622. type GuildDemonCfg struct {
  1623. Id int32 `csv:"Id"` //全局配置id
  1624. BossLvCycle []string `csv:"BossLvCycle"` //开服天数
  1625. WeekDay int32 `csv:"WeekDay"` //星期几的BOSS
  1626. BossLevel int32 `csv:"BossLevel"` //Boss等級
  1627. BossLvMax int32 `csv:"BossLvMax"` //BOSS等級达到上限
  1628. FreeChallenge int32 `csv:"FreeChallenge"` //免费挑战次数
  1629. ChallengeTimes int32 `csv:"ChallengeTimes"` //挑战次数购买上限
  1630. ChallengeReward []string `csv:"ChallengeReward"` //单局结算奖励
  1631. ChallengePrice []string `csv:"ChallengePrice"` //挑战次数购买价格
  1632. SummonId int32 `csv:"SummonId"` //召唤物id
  1633. SummonTime string `csv:"SummonTime"` //BOSS开启時间
  1634. LifeTime int32 `csv:"LifeTime"` //boss存活時间
  1635. SettlementCd int32 `csv:"SettlementCd"` //BOSS结算CD
  1636. BattleTime int32 `csv:"BattleTime"` //挑战時间
  1637. DamageSegment string `csv:"DamageSegment"` //评分档位所需伤害量
  1638. DamageReward []string `csv:"DamageReward"` //宝箱奖励
  1639. DamageCheck string `csv:"DamageCheck"` //整场伤害上限校验
  1640. }
  1641. func GuildDemonCfgLoad(path string) {
  1642. cfg := []*GuildDemonCfg{}
  1643. GuildDemonCfgLoader = map[int32]*GuildDemonCfg{}
  1644. loadCsvCfg(path+"GuildDemonCfg.csv", &cfg)
  1645. for _, row := range cfg {
  1646. GuildDemonCfgLoader[row.Id] = row
  1647. }
  1648. }
  1649. var GuildLvCfgLoader map[int32]*GuildLvCfg
  1650. type GuildLvCfg struct {
  1651. Id int32 `csv:"Id"` //ID
  1652. ExpRequire int32 `csv:"ExpRequire"` //需求经验
  1653. PeopleLimit int32 `csv:"PeopleLimit"` //人数上限
  1654. ActiveLimit int32 `csv:"ActiveLimit"` //公会活跃值上限
  1655. PeopleAdd int32 `csv:"PeopleAdd"` //公会升級成员上限增量
  1656. ActiveAdd int32 `csv:"ActiveAdd"` //公会升級活跃上限增量
  1657. }
  1658. func GuildLvCfgLoad(path string) {
  1659. cfg := []*GuildLvCfg{}
  1660. GuildLvCfgLoader = map[int32]*GuildLvCfg{}
  1661. loadCsvCfg(path+"GuildLvCfg.csv", &cfg)
  1662. for _, row := range cfg {
  1663. GuildLvCfgLoader[row.Id] = row
  1664. }
  1665. }
  1666. var GuildWarAgainstCfgLoader map[int32]*GuildWarAgainstCfg
  1667. type GuildWarAgainstCfg struct {
  1668. Id int32 `csv:"Id"` //ID
  1669. Ranking int32 `csv:"Ranking"` //公会战排名
  1670. DeaconName string `csv:"DeaconName"` //会長奖励文本
  1671. DeaconReword []string `csv:"DeaconReword"` //会長奖励
  1672. GuildsmenName string `csv:"GuildsmenName"` //公会成员奖励文本
  1673. GuildsmenReword []string `csv:"GuildsmenReword"` //公会战成员奖励
  1674. PointMvpName string `csv:"PointMvpName"` //积分MVP奖励文本
  1675. PointMvp int32 `csv:"PointMvp"` //积分MVP
  1676. PointMvpReword []string `csv:"PointMvpReword"` //积分MVP奖励
  1677. KillerMvpName string `csv:"KillerMvpName"` //击杀MVP奖励文本
  1678. KillerMvp int32 `csv:"KillerMvp"` //击杀MVP
  1679. KillerMvpReword []string `csv:"KillerMvpReword"` //击杀MVP奖励
  1680. }
  1681. func GuildWarAgainstCfgLoad(path string) {
  1682. cfg := []*GuildWarAgainstCfg{}
  1683. GuildWarAgainstCfgLoader = map[int32]*GuildWarAgainstCfg{}
  1684. loadCsvCfg(path+"GuildWarAgainstCfg.csv", &cfg)
  1685. for _, row := range cfg {
  1686. GuildWarAgainstCfgLoader[row.Id] = row
  1687. }
  1688. }
  1689. var GuildWarBuffCfgLoader map[int32]*GuildWarBuffCfg
  1690. type GuildWarBuffCfg struct {
  1691. Id int32 `csv:"Id"` //公会战buffID
  1692. SortId int32 `csv:"SortId"` //buff排序ID
  1693. Price []string `csv:"Price"` //购买价格
  1694. Mark int32 `csv:"Mark"` //对应mark
  1695. }
  1696. func GuildWarBuffCfgLoad(path string) {
  1697. cfg := []*GuildWarBuffCfg{}
  1698. GuildWarBuffCfgLoader = map[int32]*GuildWarBuffCfg{}
  1699. loadCsvCfg(path+"GuildWarBuffCfg.csv", &cfg)
  1700. for _, row := range cfg {
  1701. GuildWarBuffCfgLoader[row.Id] = row
  1702. }
  1703. }
  1704. var GuildWarDojoCfgLoader map[int32]*GuildWarDojoCfg
  1705. type GuildWarDojoCfg struct {
  1706. Id int32 `csv:"Id"` //地块编号
  1707. AreaType int32 `csv:"AreaType"` //地块类别
  1708. GuildWarPoint int32 `csv:"GuildWarPoint"` //获得积分
  1709. }
  1710. func GuildWarDojoCfgLoad(path string) {
  1711. cfg := []*GuildWarDojoCfg{}
  1712. GuildWarDojoCfgLoader = map[int32]*GuildWarDojoCfg{}
  1713. loadCsvCfg(path+"GuildWarDojoCfg.csv", &cfg)
  1714. for _, row := range cfg {
  1715. GuildWarDojoCfgLoader[row.Id] = row
  1716. }
  1717. }
  1718. var HeadFrameCfgLoader map[int32]*HeadFrameCfg
  1719. type HeadFrameCfg struct {
  1720. HeadFrameId int32 `csv:"HeadFrameId"` //頭像框id
  1721. HeadFrameQuality []string `csv:"HeadFrameQuality"` //頭像框屬性
  1722. HeadFrameSource []string `csv:"HeadFrameSource"` //頭像框来源
  1723. HeadFrameType int32 `csv:"HeadFrameType"` //頭像框类型
  1724. ResolveItem []string `csv:"ResolveItem"` //分解获得
  1725. Dec string `csv:"Dec"` //备注
  1726. }
  1727. func HeadFrameCfgLoad(path string) {
  1728. cfg := []*HeadFrameCfg{}
  1729. HeadFrameCfgLoader = map[int32]*HeadFrameCfg{}
  1730. loadCsvCfg(path+"HeadFrameCfg.csv", &cfg)
  1731. for _, row := range cfg {
  1732. HeadFrameCfgLoader[row.HeadFrameId] = row
  1733. }
  1734. }
  1735. var HeadPortraitCfgLoader map[int32]*HeadPortraitCfg
  1736. type HeadPortraitCfg struct {
  1737. HeadPortraitId int32 `csv:"HeadPortraitId"` //頭像ID
  1738. UnlockCondition int32 `csv:"UnlockCondition"` //解锁条件
  1739. HeadLoadId int32 `csv:"HeadLoadId"` //頭像加载ID
  1740. HeadPortraitSex int32 `csv:"HeadPortraitSex"` //頭像性别
  1741. }
  1742. func HeadPortraitCfgLoad(path string) {
  1743. cfg := []*HeadPortraitCfg{}
  1744. HeadPortraitCfgLoader = map[int32]*HeadPortraitCfg{}
  1745. loadCsvCfg(path+"HeadPortraitCfg.csv", &cfg)
  1746. for _, row := range cfg {
  1747. HeadPortraitCfgLoader[row.HeadPortraitId] = row
  1748. }
  1749. }
  1750. var HundredDojoCfgLoader map[int32]*HundredDojoCfg
  1751. type HundredDojoCfg struct {
  1752. Id int32 `csv:"Id"` //地块编号
  1753. AreaType int32 `csv:"AreaType"` //地块类别
  1754. FunType int32 `csv:"FunType"` //功能类型
  1755. RewardList []string `csv:"RewardList"` //固定時间间隔资源产出
  1756. Robot int32 `csv:"Robot"` //初始机器人Id
  1757. TimeProtect int32 `csv:"TimeProtect"` //保护時间(分钟)
  1758. TimeReward int32 `csv:"TimeReward"` //占領時间(分钟)
  1759. ShowRewardList []string `csv:"ShowRewardList"` //固定時间间隔资源产出
  1760. }
  1761. func HundredDojoCfgLoad(path string) {
  1762. cfg := []*HundredDojoCfg{}
  1763. HundredDojoCfgLoader = map[int32]*HundredDojoCfg{}
  1764. loadCsvCfg(path+"HundredDojoCfg.csv", &cfg)
  1765. for _, row := range cfg {
  1766. HundredDojoCfgLoader[row.Id] = row
  1767. }
  1768. }
  1769. var InvitationTaskCfgLoader map[int32]*InvitationTaskCfg
  1770. type InvitationTaskCfg struct {
  1771. TaskId int32 `csv:"TaskId"` //任务ID
  1772. TaskCondition []string `csv:"TaskCondition"` //任务枚举
  1773. Reward []string `csv:"Reward"` //任务奖励
  1774. Desc string `csv:"Desc"` //任务描述
  1775. CompleteNum int32 `csv:"CompleteNum"` //可完成的最大次数
  1776. }
  1777. func InvitationTaskCfgLoad(path string) {
  1778. cfg := []*InvitationTaskCfg{}
  1779. InvitationTaskCfgLoader = map[int32]*InvitationTaskCfg{}
  1780. loadCsvCfg(path+"InvitationTaskCfg.csv", &cfg)
  1781. for _, row := range cfg {
  1782. InvitationTaskCfgLoader[row.TaskId] = row
  1783. }
  1784. }
  1785. var ItemCfgLoader map[int32]*ItemCfg
  1786. type ItemCfg struct {
  1787. Id int32 `csv:"Id"` //id
  1788. ResType int32 `csv:"ResType"` //道具类型
  1789. Quality int32 `csv:"Quality"` //道具品质
  1790. Composition int32 `csv:"Composition"` //叠加数量
  1791. AutoUse int32 `csv:"AutoUse"` //是否自动使用
  1792. Costitem []string `csv:"Costitem"` //是否消耗道具
  1793. NeedLevel int32 `csv:"NeedLevel"` //需要等級
  1794. Bang int32 `csv:"Bang"` //是否绑定
  1795. Job int32 `csv:"Job"` //是否分职业
  1796. ComposeItem []string `csv:"ComposeItem"` //合成目标
  1797. Resolve []string `csv:"Resolve"` //分解目标
  1798. ItemTime int32 `csv:"ItemTime"` //道具時效
  1799. DebrisShow int32 `csv:"DebrisShow"` //碎片展示
  1800. SourceFun []string `csv:"SourceFun"` //获取途径
  1801. NatureType int32 `csv:"NatureType"` //屬性
  1802. ActivationItem int32 `csv:"ActivationItem"` //对应藏品
  1803. ItemTimeCd int32 `csv:"ItemTimeCd"` //道具使用所需時间
  1804. }
  1805. func ItemCfgLoad(path string) {
  1806. cfg := []*ItemCfg{}
  1807. ItemCfgLoader = map[int32]*ItemCfg{}
  1808. loadCsvCfg(path+"ItemCfg.csv", &cfg)
  1809. for _, row := range cfg {
  1810. ItemCfgLoader[row.Id] = row
  1811. }
  1812. }
  1813. var JobCfgLoader map[int32]*JobCfg
  1814. type JobCfg struct {
  1815. Id int32 `csv:"Id"` //职业ID
  1816. JobName string `csv:"JobName"` //职业名字
  1817. Position int32 `csv:"Position"` //站位
  1818. JobType int32 `csv:"JobType"` //职业类型
  1819. JobBranch int32 `csv:"JobBranch"` //职业分支
  1820. JobStage int32 `csv:"JobStage"` //职业階段
  1821. MaxJobLv int32 `csv:"MaxJobLv"` //职业等級上限
  1822. BeforeJobId int32 `csv:"BeforeJobId"` //上階职业
  1823. AfterJobId []string `csv:"AfterJobId"` //下階职业
  1824. ChangeCond []string `csv:"ChangeCond"` //转职条件
  1825. ItemCost []string `csv:"ItemCost"` //消耗道具
  1826. Again int32 `csv:"Again"` //转生
  1827. UpBaseLV int32 `csv:"UpBaseLV"` //转职人物等級
  1828. UpJobLv int32 `csv:"UpJobLv"` //转职职业等級
  1829. Bag int32 `csv:"Bag"` //装备背包格子
  1830. HpRate int32 `csv:"HpRate"` //生命系数
  1831. SpRate int32 `csv:"SpRate"` //蓝量系数
  1832. AtkRate int32 `csv:"AtkRate"` //物攻系数
  1833. MatkRate int32 `csv:"MatkRate"` //魔攻系数
  1834. DefRate int32 `csv:"DefRate"` //物防系数
  1835. MdefRate int32 `csv:"MdefRate"` //魔防系数
  1836. HitRate int32 `csv:"HitRate"` //命中系数
  1837. DodgeRate int32 `csv:"DodgeRate"` //闪避系数
  1838. CritRate int32 `csv:"CritRate"` //暴击系数
  1839. TenRate int32 `csv:"TenRate"` //韧性系数
  1840. Aspd int32 `csv:"Aspd"` //攻速
  1841. ArmsType int32 `csv:"ArmsType"` //职业武器类型
  1842. NormalSkillIds []string `csv:"NormalSkillIds"` //普攻技能id
  1843. SkillIds []string `csv:"SkillIds"` //默认技能id
  1844. NatureId int32 `csv:"NatureId"` //屬性id
  1845. RaceId int32 `csv:"RaceId"` //种族id
  1846. AutoAddPoint []string `csv:"AutoAddPoint"` //自动加点
  1847. AlternativeSkills []string `csv:"AlternativeSkills"` //备用技能id
  1848. }
  1849. func JobCfgLoad(path string) {
  1850. cfg := []*JobCfg{}
  1851. JobCfgLoader = map[int32]*JobCfg{}
  1852. loadCsvCfg(path+"JobCfg.csv", &cfg)
  1853. for _, row := range cfg {
  1854. JobCfgLoader[row.Id] = row
  1855. }
  1856. }
  1857. var JobExpCfgLoader map[int32]*JobExpCfg
  1858. type JobExpCfg struct {
  1859. JobLevel int32 `csv:"jobLevel"` //job等級
  1860. ExpRequire1 int32 `csv:"expRequire1"` //未转身所需经验
  1861. Point1 int32 `csv:"point1"` //1转升級点
  1862. ExpRequire2 int32 `csv:"expRequire2"` //1转所需经验
  1863. Point2 int32 `csv:"point2"` //2转升級点
  1864. ExpRequire3 int32 `csv:"expRequire3"` //3转所需经验
  1865. Point3 int32 `csv:"point3"` //3转升級点
  1866. }
  1867. func JobExpCfgLoad(path string) {
  1868. cfg := []*JobExpCfg{}
  1869. JobExpCfgLoader = map[int32]*JobExpCfg{}
  1870. loadCsvCfg(path+"JobExpCfg.csv", &cfg)
  1871. for _, row := range cfg {
  1872. JobExpCfgLoader[row.JobLevel] = row
  1873. }
  1874. }
  1875. var KeepSakeCfgLoader map[int32]*KeepSakeCfg
  1876. type KeepSakeCfg struct {
  1877. Id int32 `csv:"Id"` //藏品Id
  1878. CollectionLevel int32 `csv:"CollectionLevel"` //藏品等級
  1879. MaterialMaxLevel int32 `csv:"MaterialMaxLevel"` //最大合成等級
  1880. MaterialLevel1 []string `csv:"MaterialLevel1"` //合成階段1
  1881. MaterialLevel2 []string `csv:"MaterialLevel2"` //合成階段2
  1882. MaterialLevel3 []string `csv:"MaterialLevel3"` //合成階段3
  1883. MaterialLevel4 []string `csv:"MaterialLevel4"` //合成階段4
  1884. MaterialLevel5 []string `csv:"MaterialLevel5"` //合成階段5
  1885. AddAttrLevel1 []string `csv:"AddAttrLevel1"` //增加屬性1
  1886. AddAttrLevel2 []string `csv:"AddAttrLevel2"` //增加屬性2
  1887. AddAttrLevel3 []string `csv:"AddAttrLevel3"` //增加屬性3
  1888. AddAttrLevel4 []string `csv:"AddAttrLevel4"` //增加屬性4
  1889. AddAttrLevel5 []string `csv:"AddAttrLevel5"` //增加屬性5
  1890. Job []string `csv:"Job"` //加成职业
  1891. }
  1892. func KeepSakeCfgLoad(path string) {
  1893. cfg := []*KeepSakeCfg{}
  1894. KeepSakeCfgLoader = map[int32]*KeepSakeCfg{}
  1895. loadCsvCfg(path+"KeepSakeCfg.csv", &cfg)
  1896. for _, row := range cfg {
  1897. KeepSakeCfgLoader[row.Id] = row
  1898. }
  1899. }
  1900. var LevelCfgLoader map[int32]*LevelCfg
  1901. type LevelCfg struct {
  1902. Id int32 `csv:"Id"` //唯一id
  1903. LevelId int32 `csv:"LevelId"` //场景id
  1904. MapId int32 `csv:"MapId"` //地图id
  1905. LevelType int32 `csv:"LevelType"` //场景类型
  1906. FightCD int32 `csv:"FightCD"` //挑战CD
  1907. BaseExpOl int32 `csv:"BaseExpOl"` //在线base经验
  1908. ParterOl int32 `csv:"ParterOl"` //在线夥伴经验
  1909. ZenyOl int32 `csv:"ZenyOl"` //在线银幣
  1910. CruiseOl int32 `csv:"CruiseOl"` //技能经验
  1911. GoldOl int32 `csv:"GoldOl"` //在线金幣
  1912. EvilOl int32 `csv:"EvilOl"` //在线魔魂值
  1913. DropOl []string `csv:"DropOl"` //在线掉落包ID
  1914. HdDrop []string `csv:"HdDrop"` //活动掉落ID
  1915. BaseExp int32 `csv:"BaseExp"` //通关base经验
  1916. JobExp int32 `csv:"JobExp"` //通关job经验
  1917. Zeny int32 `csv:"Zeny"` //通关银幣
  1918. Gold int32 `csv:"Gold"` //通关金幣
  1919. Parter int32 `csv:"Parter"` //通关夥伴经验
  1920. Cash int32 `csv:"Cash"` //活动通关现金
  1921. PassNum int32 `csv:"PassNum"` //通关超过人数
  1922. GuildActive int32 `csv:"GuildActive"` //通关公会活跃
  1923. Drop []string `csv:"Drop"` //通关掉落包ID
  1924. BossId int32 `csv:"BossId"` //bossId
  1925. DropTimes int32 `csv:"DropTimes"` //挑战后掉落次数
  1926. FightLv int32 `csv:"FightLv"` //BOSS挑战等級
  1927. DlgId int32 `csv:"DlgId"` //巡游前剧情ID
  1928. DlgContentId int32 `csv:"DlgContentId"` //剧情索引ID
  1929. FightCheck int32 `csv:"FightCheck"` //战力校验
  1930. SpAddition string `csv:"SpAddition"` //蓝量加成
  1931. PowerWeaken string `csv:"PowerWeaken"` //战力削弱
  1932. StayTimeWeaken string `csv:"StayTimeWeaken"` //停留時间削弱
  1933. Version int32 `csv:"version"` //版本
  1934. MapScore int32 `csv:"MapScore"` //里程积分
  1935. CloseDown string `csv:"CloseDown"` //查封配置
  1936. FreeInvest int32 `csv:"FreeInvest"` //通关免费充值额度
  1937. }
  1938. func LevelCfgLoad(path string) {
  1939. cfg := []*LevelCfg{}
  1940. LevelCfgLoader = map[int32]*LevelCfg{}
  1941. loadCsvCfg(path+"LevelCfg.csv", &cfg)
  1942. for _, row := range cfg {
  1943. LevelCfgLoader[row.Id] = row
  1944. }
  1945. }
  1946. var LineMissionCfgLoader map[int32]*LineMissionCfg
  1947. type LineMissionCfg struct {
  1948. MissionID int32 `csv:"MissionID"` //任务ID
  1949. MissionCondition []string `csv:"MissionCondition"` //任务枚举
  1950. Reward []string `csv:"Reward"` //奖励
  1951. BeginMission int32 `csv:"BeginMission"` //是否为开始任务
  1952. FollowMissionld int32 `csv:"FollowMissionld"` //后续ID
  1953. }
  1954. func LineMissionCfgLoad(path string) {
  1955. cfg := []*LineMissionCfg{}
  1956. LineMissionCfgLoader = map[int32]*LineMissionCfg{}
  1957. loadCsvCfg(path+"LineMissionCfg.csv", &cfg)
  1958. for _, row := range cfg {
  1959. LineMissionCfgLoader[row.MissionID] = row
  1960. }
  1961. }
  1962. var MailCfgLoader map[int32]*MailCfg
  1963. type MailCfg struct {
  1964. Id int32 `csv:"Id"` //id
  1965. Title string `csv:"Title"` //主题
  1966. Text string `csv:"Text"` //正文
  1967. Time int32 `csv:"Time"` //有效期
  1968. }
  1969. func MailCfgLoad(path string) {
  1970. cfg := []*MailCfg{}
  1971. MailCfgLoader = map[int32]*MailCfg{}
  1972. loadCsvCfg(path+"MailCfg.csv", &cfg)
  1973. for _, row := range cfg {
  1974. MailCfgLoader[row.Id] = row
  1975. }
  1976. }
  1977. var MissionCfgLoader map[int32]*MissionCfg
  1978. type MissionCfg struct {
  1979. MissionID int32 `csv:"MissionID"` //任务ID
  1980. MissionCondition []string `csv:"MissionCondition"` //任务枚举
  1981. MissionType int32 `csv:"MissionType"` //任务类型
  1982. Active int32 `csv:"Active"` //活跃度
  1983. GuildActive int32 `csv:"GuildActive"` //公会個人活跃值
  1984. RenovateTime int32 `csv:"RenovateTime"` //刷新時间
  1985. }
  1986. func MissionCfgLoad(path string) {
  1987. cfg := []*MissionCfg{}
  1988. MissionCfgLoader = map[int32]*MissionCfg{}
  1989. loadCsvCfg(path+"MissionCfg.csv", &cfg)
  1990. for _, row := range cfg {
  1991. MissionCfgLoader[row.MissionID] = row
  1992. }
  1993. }
  1994. var HardMissionCfgLoader map[int32]*HardMissionCfg
  1995. type HardMissionCfg struct {
  1996. MissionID int32 `csv:"MissionID"` //任务ID
  1997. MissionCondition []string `csv:"MissionCondition"` //任务枚举
  1998. MissionType int32 `csv:"MissionType"` //任务类型
  1999. Reward []string `csv:"Reward"` //奖励
  2000. GroupID int32 `csv:"GroupID"` //所属组id
  2001. GroupReward []string `csv:"GroupReward"` //所属组奖励
  2002. }
  2003. func HardMissionCfgLoad(path string) {
  2004. cfg := []*HardMissionCfg{}
  2005. HardMissionCfgLoader = map[int32]*HardMissionCfg{}
  2006. loadCsvCfg(path+"HardMissionCfg.csv", &cfg)
  2007. for _, row := range cfg {
  2008. HardMissionCfgLoader[row.MissionID] = row
  2009. }
  2010. }
  2011. type NatureCfg struct {
  2012. Id int32 `csv:"Id"` //屬性id
  2013. Name string `csv:"Name"` //屬性名字
  2014. NatureAttribute string `csv:"NatureAttribute"` //附加元素屬性
  2015. AntiNature string `csv:"AntiNature"` //承受屬性伤害系数
  2016. }
  2017. var NatureCfgLoader map[int32]*NatureCfg
  2018. func NatureCfgLoad(path string) {
  2019. cfg := []*NatureCfg{}
  2020. NatureCfgLoader = map[int32]*NatureCfg{}
  2021. loadCsvCfg(path+"NatureCfg.csv", &cfg)
  2022. for _, row := range cfg {
  2023. NatureCfgLoader[row.Id] = row
  2024. }
  2025. }
  2026. var NpcCfgLoader map[int32]*NpcCfg
  2027. type NpcCfg struct {
  2028. Id int32 `csv:"Id"` //唯一id
  2029. MonsterId int32 `csv:"MonsterId"` //怪物id
  2030. BaseLv int32 `csv:"BaseLv"` //角色等級
  2031. JobType int32 `csv:"JobType"` //怪物职业
  2032. NpcType int32 `csv:"NpcType"` //职业类型
  2033. Hp float32 `csv:"Hp"` //生命
  2034. Sp float32 `csv:"Sp"` //蓝量
  2035. SkillIds []string `csv:"SkillIds"` //技能id
  2036. NatureId int32 `csv:"NatureId"` //屬性id
  2037. PassiveSkills []string `csv:"PassiveSkills"` //被动技能
  2038. EngName string `csv:"EngName"` //英語唯一名
  2039. }
  2040. func NpcCfgLoad(path string) {
  2041. cfg := []*NpcCfg{}
  2042. NpcCfgLoader = map[int32]*NpcCfg{}
  2043. loadCsvCfg(path+"NpcCfg.csv", &cfg)
  2044. for _, row := range cfg {
  2045. NpcCfgLoader[row.Id] = row
  2046. }
  2047. }
  2048. var OnlineRewardsCfgLoader map[int32]*OnlineRewardsCfg
  2049. type OnlineRewardsCfg struct {
  2050. Id int32 `csv:"Id"` //唯一id
  2051. Day int32 `csv:"Day"` //天数
  2052. Time int32 `csv:"Time"` //在线時長
  2053. Rewards []string `csv:"Rewards"` //奖励
  2054. SpeedUp int32 `csv:"SpeedUp"` //金幣加速
  2055. }
  2056. func OnlineRewardsCfgLoad(path string) {
  2057. cfg := []*OnlineRewardsCfg{}
  2058. OnlineRewardsCfgLoader = map[int32]*OnlineRewardsCfg{}
  2059. loadCsvCfg(path+"OnlineRewardsCfg.csv", &cfg)
  2060. for _, row := range cfg {
  2061. OnlineRewardsCfgLoader[row.Id] = row
  2062. }
  2063. }
  2064. var ParterAttributeCfgLoader map[int32]*ParterAttributeCfg
  2065. type ParterAttributeCfg struct {
  2066. BaseLv int32 `csv:"BaseLv"` //夥伴等級
  2067. Exp int32 `csv:"Exp"` //需求经验
  2068. Money int32 `csv:"Money"` //夥伴升級费用
  2069. GetPoint int32 `csv:"GetPoint"` //获得点数
  2070. }
  2071. func ParterAttributeCfgLoad(path string) {
  2072. cfg := []*ParterAttributeCfg{}
  2073. ParterAttributeCfgLoader = map[int32]*ParterAttributeCfg{}
  2074. loadCsvCfg(path+"ParterAttributeCfg.csv", &cfg)
  2075. for _, row := range cfg {
  2076. ParterAttributeCfgLoader[row.BaseLv] = row
  2077. }
  2078. }
  2079. var ParterCfgLoader map[int32]*ParterCfg
  2080. type ParterCfg struct {
  2081. ParterId int32 `csv:"ParterId"` //佣兵ID
  2082. Desc string `csv:"Desc"` //描述
  2083. JobName string `csv:"JobName"` //职业名字
  2084. JobIcon string `csv:"JobIcon"` //职业图标
  2085. JobType int32 `csv:"JobType"` //职业类型
  2086. JobStage int32 `csv:"JobStage"` //职业階段
  2087. JobBranch int32 `csv:"JobBranch"` //职业分支
  2088. AvatarId int32 `csv:"AvatarId"` //模型id
  2089. NatureId int32 `csv:"NatureId"` //屬性id
  2090. RaceId int32 `csv:"RaceId"` //种族id
  2091. HeadId string `csv:"HeadId"` //頭像id
  2092. Avatar string `csv:"Avatar"` //纸娃娃
  2093. AvatarGray string `csv:"AvatarGray"` //纸娃娃简影
  2094. JobIcon2 string `csv:"JobIcon2"` //职业图标2
  2095. PostId int32 `csv:"PostId"` //显示顺位
  2096. Position int32 `csv:"Position"` //站位
  2097. Hp int32 `csv:"Hp"` //初始生命
  2098. Sp int32 `csv:"Sp"` //初始蓝量
  2099. Atk int32 `csv:"Atk"` //初始物攻
  2100. Matk int32 `csv:"Matk"` //初始魔攻
  2101. Def int32 `csv:"Def"` //初始物防
  2102. Mdef int32 `csv:"Mdef"` //初始魔防
  2103. Hit int32 `csv:"Hit"` //初始命中
  2104. Dodge int32 `csv:"Dodge"` //初始闪避
  2105. Crit int32 `csv:"Crit"` //初始暴击
  2106. Ten int32 `csv:"Ten"` //初始韧性
  2107. StrRate int32 `csv:"StrRate"` //STR成長率
  2108. IntRate int32 `csv:"IntRate"` //INT成長率
  2109. AgiRate int32 `csv:"AgiRate"` //AGI成長率
  2110. DexRate int32 `csv:"DexRate"` //DEX成長率
  2111. LucRate int32 `csv:"LucRate"` //LUC成長率
  2112. ViteRate int32 `csv:"ViteRate"` //VIT成長率
  2113. Aspd int32 `csv:"Aspd"` //攻速
  2114. NormalSkillIds []string `csv:"NormalSkillIds"` //普攻技能id
  2115. SkillIds []string `csv:"SkillIds"` //默认技能id
  2116. Chip string `csv:"Chip"` //重复分解
  2117. InitialSkill int32 `csv:"InitialSkill"` //初始技能id
  2118. BeforeJobId int32 `csv:"BeforeJobId"` //上階职业
  2119. AfterJobId []string `csv:"AfterJobId"` //下階职业
  2120. ChangeCond []string `csv:"ChangeCond"` //转职条件
  2121. ItemCost []string `csv:"ItemCost"` //消耗道具
  2122. InitFightPower int32 `csv:"InitFightPower"` //初始战力
  2123. AlternativeSkills []string `csv:"AlternativeSkills"` //备用技能id
  2124. ParterJob int32 `csv:"ParterJob"` //夥伴转职索引
  2125. AddPoint []string `csv:"AddPoint"` //推荐加点比例
  2126. }
  2127. func ParterCfgLoad(path string) {
  2128. cfg := []*ParterCfg{}
  2129. ParterCfgLoader = map[int32]*ParterCfg{}
  2130. loadCsvCfg(path+"ParterCfg.csv", &cfg)
  2131. for _, row := range cfg {
  2132. ParterCfgLoader[row.ParterId] = row
  2133. }
  2134. }
  2135. var ParterProgressCfgLoader map[int32]*ParterProgressCfg
  2136. type ParterProgressCfg struct {
  2137. Id int32 `csv:"Id"` //佣兵ID
  2138. Times int32 `csv:"Times"` //進階上限(次)
  2139. CostMoney []string `csv:"CostMoney"` //消耗银幣
  2140. CostStone []string `csv:"CostStone"` //消耗天使之泪
  2141. AddLv []string `csv:"AddLv"` //提高等級上限
  2142. Attribute1 []string `csv:"Attribute1"` //進階1增加屬性
  2143. Attribute2 []string `csv:"Attribute2"` //進階2增加屬性
  2144. Attribute3 []string `csv:"Attribute3"` //進階3增加屬性
  2145. Attribute4 []string `csv:"Attribute4"` //進階4增加屬性
  2146. Attribute5 []string `csv:"Attribute5"` //進階5增加屬性
  2147. Attribute6 []string `csv:"Attribute6"` //進階6增加屬性
  2148. Attribute7 []string `csv:"Attribute7"` //進階7增加屬性
  2149. Attribute8 []string `csv:"Attribute8"` //進階8增加屬性
  2150. Attribute9 []string `csv:"Attribute9"` //進階9增加屬性
  2151. Attribute10 []string `csv:"Attribute10"` //進階10增加屬性
  2152. Attribute11 []string `csv:"Attribute11"` //進階11增加屬性
  2153. Attribute12 []string `csv:"Attribute12"` //進階12增加屬性
  2154. Attribute13 []string `csv:"Attribute13"` //進階13增加屬性
  2155. Attribute14 []string `csv:"Attribute14"` //進階14增加屬性
  2156. Attribute15 []string `csv:"Attribute15"` //進階15增加屬性
  2157. BreachTimes int32 `csv:"BreachTimes"` //夥伴突破次数
  2158. BreachAddLv []string `csv:"BreachAddLv"` //突破获得等級
  2159. BreachMoney []string `csv:"BreachMoney"` //突破银幣
  2160. BreachCost []string `csv:"BreachCost"` //突破材料
  2161. BreachAttribute1 []string `csv:"BreachAttribute1"` //突破1增加屬性
  2162. BreachAttribute2 []string `csv:"BreachAttribute2"` //突破2增加屬性
  2163. BreachAttribute3 []string `csv:"BreachAttribute3"` //突破3增加屬性
  2164. BreachAttribute4 []string `csv:"BreachAttribute4"` //突破4增加屬性
  2165. BreachAttribute5 []string `csv:"BreachAttribute5"` //突破5增加屬性
  2166. BreachAttribute6 []string `csv:"BreachAttribute6"` //突破6增加屬性
  2167. BreachAttribute7 []string `csv:"BreachAttribute7"` //突破7增加屬性
  2168. BreachAttribute8 []string `csv:"BreachAttribute8"` //突破8增加屬性
  2169. BreachAttribute9 []string `csv:"BreachAttribute9"` //突破9增加屬性
  2170. BreachAttribute10 []string `csv:"BreachAttribute10"` //突破10增加屬性
  2171. BreachAttribute11 []string `csv:"BreachAttribute11"` //突破11增加屬性
  2172. BreachAttribute12 []string `csv:"BreachAttribute12"` //突破12增加屬性
  2173. BreachAttribute13 []string `csv:"BreachAttribute13"` //突破13增加屬性
  2174. BreachAttribute14 []string `csv:"BreachAttribute14"` //突破14增加屬性
  2175. BreachAttribute15 []string `csv:"BreachAttribute15"` //突破15增加屬性
  2176. BreachAttribute16 []string `csv:"BreachAttribute16"` //突破16增加屬性
  2177. BreachAttribute17 []string `csv:"BreachAttribute17"` //突破17增加屬性
  2178. BreachAttribute18 []string `csv:"BreachAttribute18"` //突破18增加屬性
  2179. BreachAttribute19 []string `csv:"BreachAttribute19"` //突破19增加屬性
  2180. BreachAttribute20 []string `csv:"BreachAttribute20"` //突破20增加屬性
  2181. BreachAttribute21 []string `csv:"BreachAttribute21"` //突破21增加屬性
  2182. BreachAttribute22 []string `csv:"BreachAttribute22"` //突破22增加屬性
  2183. BreachAttribute23 []string `csv:"BreachAttribute23"` //突破23增加屬性
  2184. BreachAttribute24 []string `csv:"BreachAttribute24"` //突破24增加屬性
  2185. BreachAttribute25 []string `csv:"BreachAttribute25"` //突破25增加屬性
  2186. BreachAttribute26 []string `csv:"BreachAttribute26"` //突破26增加屬性
  2187. BreachAttribute27 []string `csv:"BreachAttribute27"` //突破27增加屬性
  2188. BreachAttribute28 []string `csv:"BreachAttribute28"` //突破28增加屬性
  2189. BreachAttribute29 []string `csv:"BreachAttribute29"` //突破29增加屬性
  2190. BreachAttribute30 []string `csv:"BreachAttribute30"` //突破30增加屬性
  2191. }
  2192. func ParterProgressCfgLoad(path string) {
  2193. cfg := []*ParterProgressCfg{}
  2194. ParterProgressCfgLoader = map[int32]*ParterProgressCfg{}
  2195. loadCsvCfg(path+"ParterProgressCfg.csv", &cfg)
  2196. for _, row := range cfg {
  2197. ParterProgressCfgLoader[row.Id] = row
  2198. }
  2199. }
  2200. var ParterSkillTreeCfgLoader map[int32]*ParterSkillTreeCfg
  2201. type ParterSkillTreeCfg struct {
  2202. SkillId int32 `csv:"SkillId"` //技能ID
  2203. SkillType int32 `csv:"SkillType"` //技能类型
  2204. MaxLv int32 `csv:"MaxLv"` //技能等級上限
  2205. SkillQuality int32 `csv:"SkillQuality"` //技能品质
  2206. JobType int32 `csv:"JobType"` //职业类型
  2207. JobBranch int32 `csv:"JobBranch"` //职业分支
  2208. JobStage int32 `csv:"JobStage"` //职业階段
  2209. ParterID int32 `csv:"ParterID"` //对应夥伴
  2210. OpenLevel int32 `csv:"OpenLevel"` //解锁夥伴等級要求
  2211. OpenNeedCost []string `csv:"OpenNeedCost"` //解锁需求
  2212. Pos int32 `csv:"Pos"` //技能树位置件
  2213. Order int32 `csv:"order"` //技能排序
  2214. SuperSkill []string `csv:"SuperSkill"` //進階技能
  2215. BeforeSkill int32 `csv:"beforeSkill"` //下階技能
  2216. SkillBranch int32 `csv:"SkillBranch"` //進階职业階段
  2217. PressPoint int32 `csv:"PressPoint"` //技能压制值
  2218. StartPressPoint int32 `csv:"StartPressPoint"` //技能原压制值
  2219. }
  2220. func ParterSkillTreeCfgLoad(path string) {
  2221. cfg := []*ParterSkillTreeCfg{}
  2222. ParterSkillTreeCfgLoader = map[int32]*ParterSkillTreeCfg{}
  2223. loadCsvCfg(path+"ParterSkillTreeCfg.csv", &cfg)
  2224. for _, row := range cfg {
  2225. ParterSkillTreeCfgLoader[row.SkillId] = row
  2226. }
  2227. }
  2228. var PassCheckCfgLoader map[int32]*PassCheckCfg
  2229. type PassCheckCfg struct {
  2230. Lv int32 `csv:"Lv"` //等級
  2231. RMB float32 `csv:"RMB"` //价格
  2232. Automatic int32 `csv:"Automatic"` //自动挑战
  2233. AddLeadExp int32 `csv:"AddLeadExp"` //時光助力主角经验提升万分比
  2234. AddAttrLevel []string `csv:"AddAttrLevel"` //增加主角屬性
  2235. }
  2236. func PassCheckCfgLoad(path string) {
  2237. cfg := []*PassCheckCfg{}
  2238. PassCheckCfgLoader = map[int32]*PassCheckCfg{}
  2239. loadCsvCfg(path+"PassCheckCfg.csv", &cfg)
  2240. for _, row := range cfg {
  2241. PassCheckCfgLoader[row.Lv] = row
  2242. }
  2243. }
  2244. var PassiveSkillCfgLoader map[int32]*PassiveSkillCfg
  2245. type PassiveSkillCfg struct {
  2246. SkillId int32 `csv:"SkillId"` //技能ID
  2247. AddAttributes []string `csv:"AddAttributes"` //增加屬性
  2248. }
  2249. func PassiveSkillCfgLoad(path string) {
  2250. cfg := []*PassiveSkillCfg{}
  2251. PassiveSkillCfgLoader = map[int32]*PassiveSkillCfg{}
  2252. loadCsvCfg(path+"PassiveSkillCfg.csv", &cfg)
  2253. for _, row := range cfg {
  2254. PassiveSkillCfgLoader[row.SkillId] = row
  2255. }
  2256. }
  2257. var PetBattleCfgLoader map[int32]*PetBattleCfg
  2258. type PetBattleCfg struct {
  2259. Id int32 `csv:"Id"` //唯一id
  2260. AvatarId int32 `csv:"AvatarId"` //模型id
  2261. JobType int32 `csv:"JobType"` //寵物职业
  2262. Fame int32 `csv:"Fame"` //頭像框
  2263. NatureType int32 `csv:"NatureType"` //屬性
  2264. Hp float32 `csv:"Hp"` //生命
  2265. Sp float32 `csv:"Sp"` //蓝量
  2266. Atk float32 `csv:"Atk"` //物攻
  2267. Matk float32 `csv:"Matk"` //魔攻
  2268. Skill1 int32 `csv:"Skill1"` //技能1
  2269. Skill1Rate []string `csv:"Skill1Rate"` //技能1发动概率
  2270. Skill2 int32 `csv:"Skill2"` //技能2
  2271. Skill2Rate []string `csv:"Skill2Rate"` //技能2发动概率
  2272. Skill3 int32 `csv:"Skill3"` //技能3
  2273. Skill3Rate []string `csv:"Skill3Rate"` //技能3发动概率
  2274. Skill4 int32 `csv:"Skill4"` //技能4
  2275. }
  2276. func PetBattleCfgLoad(path string) {
  2277. cfg := []*PetBattleCfg{}
  2278. PetBattleCfgLoader = map[int32]*PetBattleCfg{}
  2279. loadCsvCfg(path+"PetBattleCfg.csv", &cfg)
  2280. for _, row := range cfg {
  2281. PetBattleCfgLoader[row.Id] = row
  2282. }
  2283. }
  2284. var PetCfgLoader map[int32]*PetCfg
  2285. type PetCfg struct {
  2286. Id int32 `csv:"Id"` //唯一id
  2287. AvatarId int32 `csv:"AvatarId"` //模型id
  2288. JobType int32 `csv:"JobType"` //寵物职业
  2289. Quality int32 `csv:"Quality"` //品质
  2290. Fame int32 `csv:"Fame"` //頭像框
  2291. NatureType int32 `csv:"NatureType"` //屬性
  2292. ConversionRate int32 `csv:"ConversionRate"` //屬性转化率
  2293. Pos int32 `csv:"Pos"` //虚拟站位
  2294. Hp float32 `csv:"Hp"` //生命
  2295. Sp float32 `csv:"Sp"` //蓝量
  2296. Atk float32 `csv:"Atk"` //物攻
  2297. Matk float32 `csv:"Matk"` //魔攻
  2298. Def float32 `csv:"Def"` //物防
  2299. Mdef float32 `csv:"Mdef"` //魔防
  2300. Hit float32 `csv:"Hit"` //命中
  2301. Dodge float32 `csv:"Dodge"` //闪避
  2302. Crit float32 `csv:"Crit"` //暴击
  2303. Ten float32 `csv:"Ten"` //韧性
  2304. AttackSpeed float32 `csv:"AttackSpeed"` //攻击速度
  2305. HpRate int32 `csv:"HpRate"` //生命系数
  2306. SpRate int32 `csv:"SpRate"` //蓝量系数
  2307. AtkRate int32 `csv:"AtkRate"` //物攻系数
  2308. MatkRate int32 `csv:"MatkRate"` //魔攻系数
  2309. DefRate int32 `csv:"DefRate"` //物防系数
  2310. MdefRate int32 `csv:"MdefRate"` //魔防系数
  2311. HitRate int32 `csv:"HitRate"` //命中系数
  2312. DodgeRate int32 `csv:"DodgeRate"` //闪避系数
  2313. CritRate int32 `csv:"CritRate"` //暴击系数
  2314. TenRate int32 `csv:"TenRate"` //韧性系数
  2315. NormalSkillIds []string `csv:"NormalSkillIds"` //普攻技能id
  2316. Skill1 int32 `csv:"Skill1"` //技能1
  2317. Skill1Rate []string `csv:"Skill1Rate"` //技能1发动概率
  2318. Skill2 int32 `csv:"Skill2"` //技能2
  2319. Skill2Rate []string `csv:"Skill2Rate"` //技能2发动概率
  2320. Skill3 int32 `csv:"Skill3"` //技能3
  2321. Skill3Rate []string `csv:"Skill3Rate"` //技能3发动概率
  2322. Skill4 int32 `csv:"Skill4"` //技能4
  2323. Skill4Rate []string `csv:"Skill4Rate"` //技能4发动概率
  2324. EmptySkill int32 `csv:"EmptySkill"` //备用技能
  2325. PetReward []string `csv:"PetReward"` //收集奖励
  2326. Contract int32 `csv:"contract"` //寵物契約继承屬性
  2327. Understand int32 `csv:"understand"` //領悟额外增加继承屬性
  2328. }
  2329. func PetCfgLoad(path string) {
  2330. cfg := []*PetCfg{}
  2331. PetCfgLoader = map[int32]*PetCfg{}
  2332. loadCsvCfg(path+"PetCfg.csv", &cfg)
  2333. for _, row := range cfg {
  2334. PetCfgLoader[row.Id] = row
  2335. }
  2336. }
  2337. var PetEquipCfgLoader map[int32]*PetEquipCfg
  2338. type PetEquipCfg struct {
  2339. Id int32 `csv:"Id"` //id
  2340. Type int32 `csv:"Type"` //格子编号
  2341. Quality int32 `csv:"Quality"` //品质
  2342. MaxLevel int32 `csv:"MaxLevel"` //最大等級
  2343. Advance int32 `csv:"Advance"` //進階目标
  2344. AdvanceCost []string `csv:"AdvanceCost"` //進階消耗
  2345. }
  2346. func PetEquipCfgLoad(path string) {
  2347. cfg := []*PetEquipCfg{}
  2348. PetEquipCfgLoader = map[int32]*PetEquipCfg{}
  2349. loadCsvCfg(path+"PetEquipCfg.csv", &cfg)
  2350. for _, row := range cfg {
  2351. PetEquipCfgLoader[row.Id] = row
  2352. }
  2353. }
  2354. var PetEquipExpCfgLoader map[int32]*PetEquipExpCfg
  2355. type PetEquipExpCfg struct {
  2356. Id int32 `csv:"Id"` //唯一ID
  2357. PetEquipLevel int32 `csv:"PetEquipLevel"` //印记等級
  2358. PetEquipID int32 `csv:"PetEquipID"` //印记ID
  2359. Cost []string `csv:"Cost"` //升級所需材料
  2360. Nature []string `csv:"Nature"` //屬性
  2361. FightPower int32 `csv:"FightPower"` //战斗力
  2362. }
  2363. func PetEquipExpCfgLoad(path string) {
  2364. cfg := []*PetEquipExpCfg{}
  2365. PetEquipExpCfgLoader = map[int32]*PetEquipExpCfg{}
  2366. loadCsvCfg(path+"PetEquipExpCfg.csv", &cfg)
  2367. for _, row := range cfg {
  2368. PetEquipExpCfgLoader[row.Id] = row
  2369. }
  2370. }
  2371. var PetEquipSuitCfgLoader map[int32]*PetEquipSuitCfg
  2372. type PetEquipSuitCfg struct {
  2373. Id int32 `csv:"Id"` //id
  2374. Amount []string `csv:"Amount"` //激活数量
  2375. Suit []string `csv:"Suit"` //6件屬性
  2376. }
  2377. func PetEquipSuitCfgLoad(path string) {
  2378. cfg := []*PetEquipSuitCfg{}
  2379. PetEquipSuitCfgLoader = map[int32]*PetEquipSuitCfg{}
  2380. loadCsvCfg(path+"PetEquipSuitCfg.csv", &cfg)
  2381. for _, row := range cfg {
  2382. PetEquipSuitCfgLoader[row.Id] = row
  2383. }
  2384. }
  2385. var PetExpCfgLoader map[int32]*PetExpCfg
  2386. type PetExpCfg struct {
  2387. PetLevel int32 `csv:"petLevel"` //寵物等級
  2388. Experience1 int32 `csv:"experience1"` //Normal升級所需经验
  2389. Experience2 int32 `csv:"experience2"` //Mini升級所需经验
  2390. Experience3 int32 `csv:"experience3"` //Mvp升級所需经验
  2391. CostMoney1 int32 `csv:"CostMoney1"` //Normal升級所需银幣
  2392. CostMoney2 int32 `csv:"CostMoney2"` //Mini升級所需银幣
  2393. CostMoney3 int32 `csv:"CostMoney3"` //Mvp升級所需银幣
  2394. Capacity1 int32 `csv:"Capacity1"` //Normal战力
  2395. Capacity2 int32 `csv:"Capacity2"` //Mini战力
  2396. Capacity3 int32 `csv:"Capacity3"` //Mvp战力
  2397. }
  2398. func PetExpCfgLoad(path string) {
  2399. cfg := []*PetExpCfg{}
  2400. PetExpCfgLoader = map[int32]*PetExpCfg{}
  2401. loadCsvCfg(path+"PetExpCfg.csv", &cfg)
  2402. for _, row := range cfg {
  2403. PetExpCfgLoader[row.PetLevel] = row
  2404. }
  2405. }
  2406. var PetpartnerCfgLoader map[int32]*PetpartnerCfg
  2407. type PetpartnerCfg struct {
  2408. Id int32 `csv:"Id"` //唯一id
  2409. Condition1 []string `csv:"Condition1"` //激活条件1
  2410. Attribute1 []string `csv:"attribute1"` //屬性1
  2411. Capacity1 int32 `csv:"Capacity1"` //战力1
  2412. AddHeroCap1 []string `csv:"AddHeroCap1"` //战力1
  2413. Condition2 []string `csv:"Condition2"` //激活条件2
  2414. Attribute2 []string `csv:"attribute2"` //屬性2
  2415. Capacity2 int32 `csv:"Capacity2"` //战力2
  2416. AddHeroCap2 []string `csv:"AddHeroCap2"` //战力2
  2417. Condition3 []string `csv:"Condition3"` //激活条件3
  2418. Attribute3 []string `csv:"attribute3"` //屬性3
  2419. Capacity3 int32 `csv:"Capacity3"` //战力3
  2420. AddHeroCap3 []string `csv:"AddHeroCap3"` //战力3
  2421. }
  2422. func PetpartnerCfgLoad(path string) {
  2423. cfg := []*PetpartnerCfg{}
  2424. PetpartnerCfgLoader = map[int32]*PetpartnerCfg{}
  2425. loadCsvCfg(path+"PetpartnerCfg.csv", &cfg)
  2426. for _, row := range cfg {
  2427. PetpartnerCfgLoader[row.Id] = row
  2428. }
  2429. }
  2430. var PetProgressCfgLoader map[int32]*PetProgressCfg
  2431. type PetProgressCfg struct {
  2432. Id int32 `csv:"Id"` //寵物ID
  2433. CostMoney []string `csv:"CostMoney"` //消耗银幣
  2434. AddFight []string `csv:"AddFight"` //進階增加战力
  2435. Attribute1 []string `csv:"Attribute1"` //1階增加屬性
  2436. AttributeRateAdd1 []string `csv:"AttributeRateAdd1"` //1階成長率
  2437. Condition11 []string `csv:"Condition11"` //1階条件1
  2438. Condition12 []string `csv:"Condition12"` //1階条件2
  2439. Attribute2 []string `csv:"Attribute2"` //進階2增加屬性
  2440. AttributeRateAdd2 []string `csv:"AttributeRateAdd2"` //進階2成長率
  2441. Condition21 []string `csv:"Condition21"` //2階条件1
  2442. Condition22 []string `csv:"Condition22"` //2階条件2
  2443. Attribute3 []string `csv:"Attribute3"` //進階3增加屬性
  2444. AttributeRateAdd3 []string `csv:"AttributeRateAdd3"` //進階3成長率
  2445. Condition31 []string `csv:"Condition31"` //3階条件1
  2446. Condition32 []string `csv:"Condition32"` //3階条件2
  2447. Attribute4 []string `csv:"Attribute4"` //進階4增加屬性
  2448. AttributeRateAdd4 []string `csv:"AttributeRateAdd4"` //進階4成長率
  2449. Condition41 []string `csv:"Condition41"` //4階条件1
  2450. Condition42 []string `csv:"Condition42"` //4階条件2
  2451. Attribute5 []string `csv:"Attribute5"` //進階5增加屬性
  2452. AttributeRateAdd5 []string `csv:"AttributeRateAdd5"` //進階5成長率
  2453. Condition51 []string `csv:"Condition51"` //5階条件1
  2454. Condition52 []string `csv:"Condition52"` //5階条件2
  2455. Attribute6 []string `csv:"Attribute6"` //進階6增加屬性
  2456. AttributeRateAdd6 []string `csv:"AttributeRateAdd6"` //進階6成長率
  2457. Condition61 []string `csv:"Condition61"` //6階条件1
  2458. Condition62 []string `csv:"Condition62"` //6階条件2
  2459. Attribute7 []string `csv:"Attribute7"` //進階7增加屬性
  2460. AttributeRateAdd7 []string `csv:"AttributeRateAdd7"` //進階7成長率
  2461. Condition71 []string `csv:"Condition71"` //7階条件1
  2462. Condition72 []string `csv:"Condition72"` //7階条件2
  2463. Attribute8 []string `csv:"Attribute8"` //進階8增加屬性
  2464. AttributeRateAdd8 []string `csv:"AttributeRateAdd8"` //進階8成長率
  2465. Condition81 []string `csv:"Condition81"` //8階条件1
  2466. Condition82 []string `csv:"Condition82"` //8階条件2
  2467. Attribute9 []string `csv:"Attribute9"` //進階9增加屬性
  2468. AttributeRateAdd9 []string `csv:"AttributeRateAdd9"` //進階9成長率
  2469. Condition91 []string `csv:"Condition91"` //9階条件1
  2470. Condition92 []string `csv:"Condition92"` //9階条件2
  2471. Attribute10 []string `csv:"Attribute10"` //進階10增加屬性
  2472. AttributeRateAdd10 []string `csv:"AttributeRateAdd10"` //進階10成長率
  2473. Condition101 []string `csv:"Condition101"` //10階条件1
  2474. Condition102 []string `csv:"Condition102"` //10階条件2
  2475. }
  2476. func PetProgressCfgLoad(path string) {
  2477. cfg := []*PetProgressCfg{}
  2478. PetProgressCfgLoader = map[int32]*PetProgressCfg{}
  2479. loadCsvCfg(path+"PetProgressCfg.csv", &cfg)
  2480. for _, row := range cfg {
  2481. PetProgressCfgLoader[row.Id] = row
  2482. }
  2483. }
  2484. var PresspointPvPCfgLoader map[int32]*PresspointPvPCfg
  2485. type PresspointPvPCfg struct {
  2486. Id int32 `csv:"Id"` //ID挡位
  2487. TriggerConditions int32 `csv:"TriggerConditions"` //差值
  2488. Buffid []string `csv:"buffid"` //触发buff
  2489. }
  2490. func PresspointPvPCfgLoad(path string) {
  2491. cfg := []*PresspointPvPCfg{}
  2492. PresspointPvPCfgLoader = map[int32]*PresspointPvPCfg{}
  2493. loadCsvCfg(path+"PresspointPvPCfg.csv", &cfg)
  2494. for _, row := range cfg {
  2495. PresspointPvPCfgLoader[row.Id] = row
  2496. }
  2497. }
  2498. var PrivilegeCardCfgLoader map[int32]*PrivilegeCardCfg
  2499. type PrivilegeCardCfg struct {
  2500. Lv int32 `csv:"Lv"` //等級
  2501. RMB float32 `csv:"RMB"` //价格
  2502. UnlockCond []string `csv:"UnlockCond"` //解锁条件
  2503. QuickBattle int32 `csv:"QuickBattle"` //战斗X2加速
  2504. Reward []string `csv:"Reward"` //特权每日禮包
  2505. PurseQuota int32 `csv:"PurseQuota"` //充值钱包额度
  2506. BuyReward []string `csv:"BuyReward"` //购买奖励显示
  2507. }
  2508. func PrivilegeCardCfgLoad(path string) {
  2509. cfg := []*PrivilegeCardCfg{}
  2510. PrivilegeCardCfgLoader = map[int32]*PrivilegeCardCfg{}
  2511. loadCsvCfg(path+"PrivilegeCardCfg.csv", &cfg)
  2512. for _, row := range cfg {
  2513. PrivilegeCardCfgLoader[row.Lv] = row
  2514. }
  2515. }
  2516. var PurseShopCfgLoader map[int32]*PurseShopCfg
  2517. type PurseShopCfg struct {
  2518. Id int32 `csv:"Id"` //禮包Id
  2519. Name string `csv:"Name"` //禮包名字
  2520. Type int32 `csv:"Type"` //类型
  2521. RMB float32 `csv:"RMB"` //价格
  2522. Reward []string `csv:"Reward"` //购买后获得道具
  2523. FirstBuyReward []string `csv:"FirstBuyReward"` //首次购买奖励
  2524. ExtraBuyReward []string `csv:"ExtraBuyReward"` //购买额外获得
  2525. RestrictedType int32 `csv:"RestrictedType"` //限购类型次数
  2526. SortId int32 `csv:"SortId"` //排序Id
  2527. RmbTotalPay int32 `csv:"RmbTotalPay"` //累计充值金额
  2528. }
  2529. func PurseShopCfgLoad(path string) {
  2530. cfg := []*PurseShopCfg{}
  2531. PurseShopCfgLoader = map[int32]*PurseShopCfg{}
  2532. loadCsvCfg(path+"PurseShopCfg.csv", &cfg)
  2533. for _, row := range cfg {
  2534. PurseShopCfgLoader[row.Id] = row
  2535. }
  2536. }
  2537. var QualityPointCfgLoader map[int32]*QualityPointCfg
  2538. type QualityPointCfg struct {
  2539. Count int32 `csv:"count"` //点数
  2540. Cost int32 `csv:"cost"` //消耗
  2541. }
  2542. func QualityPointCfgLoad(path string) {
  2543. cfg := []*QualityPointCfg{}
  2544. QualityPointCfgLoader = map[int32]*QualityPointCfg{}
  2545. loadCsvCfg(path+"QualityPointCfg.csv", &cfg)
  2546. for _, row := range cfg {
  2547. QualityPointCfgLoader[row.Count] = row
  2548. }
  2549. }
  2550. var QuickBattleCostCfgLoader map[int32]*QuickBattleCostCfg
  2551. type QuickBattleCostCfg struct {
  2552. ID int32 `csv:"ID"` //次数
  2553. Cost int32 `csv:"Cost"` //消耗
  2554. CostType int32 `csv:"CostType"` //消耗类型
  2555. }
  2556. func QuickBattleCostCfgLoad(path string) {
  2557. cfg := []*QuickBattleCostCfg{}
  2558. QuickBattleCostCfgLoader = map[int32]*QuickBattleCostCfg{}
  2559. loadCsvCfg(path+"QuickBattleCostCfg.csv", &cfg)
  2560. for _, row := range cfg {
  2561. QuickBattleCostCfgLoader[row.ID] = row
  2562. }
  2563. }
  2564. var RobotCfgLoader map[int32]*RobotCfg
  2565. type RobotCfg struct {
  2566. RobotId int32 `csv:"RobotId"` //机器人ID
  2567. RobotName string `csv:"RobotName"` //名字
  2568. ArenaLevelId int32 `csv:"ArenaLevelId"` //段位ID
  2569. RobotLevel int32 `csv:"RobotLevel"` //等級
  2570. RobotAvatar int32 `csv:"RobotAvatar"` //机器人模型
  2571. RobotEquip []string `csv:"RobotEquip"` //装备
  2572. RobotSkill []string `csv:"RobotSkill"` //技能
  2573. RobotHeadPortrait int32 `csv:"RobotHeadPortrait"` //頭像
  2574. PartnerId []string `csv:"PartnerId"` //夥伴
  2575. PartnerEquip []string `csv:"PartnerEquip"` //夥伴装备
  2576. PartnerLevel []string `csv:"PartnerLevel"` //夥伴等級
  2577. FightPower []string `csv:"FightPower"` //战斗力
  2578. SystemType int32 `csv:"SystemType"` //机器人系统类别
  2579. }
  2580. func RobotCfgLoad(path string) {
  2581. cfg := []*RobotCfg{}
  2582. RobotCfgLoader = map[int32]*RobotCfg{}
  2583. loadCsvCfg(path+"RobotCfg.csv", &cfg)
  2584. for _, row := range cfg {
  2585. RobotCfgLoader[row.RobotId] = row
  2586. }
  2587. }
  2588. var RoleAttributeCfgLoader map[int32]*RoleAttributeCfg
  2589. type RoleAttributeCfg struct {
  2590. BaseLv int32 `csv:"BaseLv"` //角色等級
  2591. Name int32 `csv:"Name"` //需求经验
  2592. GetPoint int32 `csv:"GetPoint"` //获得点数
  2593. Hp int32 `csv:"Hp"` //生命
  2594. Sp int32 `csv:"Sp"` //蓝量
  2595. Atk int32 `csv:"Atk"` //物攻
  2596. Matk int32 `csv:"Matk"` //魔攻
  2597. Def int32 `csv:"Def"` //物防
  2598. Mdef int32 `csv:"Mdef"` //魔防
  2599. Hit int32 `csv:"Hit"` //命中
  2600. Dodge int32 `csv:"Dodge"` //闪避
  2601. Crit int32 `csv:"Crit"` //暴击
  2602. Ten int32 `csv:"Ten"` //韧性
  2603. }
  2604. func RoleAttributeCfgLoad(path string) {
  2605. cfg := []*RoleAttributeCfg{}
  2606. RoleAttributeCfgLoader = map[int32]*RoleAttributeCfg{}
  2607. loadCsvCfg(path+"RoleAttributeCfg.csv", &cfg)
  2608. for _, row := range cfg {
  2609. RoleAttributeCfgLoader[row.BaseLv] = row
  2610. }
  2611. }
  2612. var RuneShopExploreCfgLoader map[int32]*RuneShopExploreCfg
  2613. type RuneShopExploreCfg struct {
  2614. ID int32 `csv:"ID"` //高級解锁商品ID
  2615. Round int32 `csv:"Round"` //活动轮次
  2616. GoldExp string `csv:"GoldExp"` //消耗金幣获取经验比例
  2617. MissionExp string `csv:"MissionExp"` //任务活跃度转化经验比例
  2618. MissonExpUp string `csv:"MissonExpUp"` //解锁后任务获得经验提高
  2619. RMB float32 `csv:"RMB"` //解锁价格
  2620. SellingBegin int32 `csv:"SellingBegin"` //间隔時间
  2621. StartTime string `csv:"StartTime"` //活动开启時间
  2622. SellingDuration int32 `csv:"SellingDuration"` //活动结束時長
  2623. CloseTime string `csv:"CloseTime"` //结束時间
  2624. MaxLvRewad []string `csv:"MaxLvRewad"` //满級奖励
  2625. ExpCost int32 `csv:"ExpCost"` //領取消耗经验
  2626. }
  2627. func RuneShopExploreCfgLoad(path string) {
  2628. cfg := []*RuneShopExploreCfg{}
  2629. RuneShopExploreCfgLoader = map[int32]*RuneShopExploreCfg{}
  2630. loadCsvCfg(path+"RuneShopExploreCfg.csv", &cfg)
  2631. for _, row := range cfg {
  2632. RuneShopExploreCfgLoader[row.ID] = row
  2633. }
  2634. }
  2635. var RuneShopExploreRewardCfgLoader map[int32]*RuneShopExploreRewardCfg
  2636. type RuneShopExploreRewardCfg struct {
  2637. ID int32 `csv:"ID"` //奖励ID
  2638. Lv int32 `csv:"Lv"` //探索等級
  2639. Exp int32 `csv:"Exp"` //升級所需经验
  2640. Reward []string `csv:"Reward"` //普通奖励
  2641. CashReward []string `csv:"CashReward"` //高級奖励
  2642. MaxRewardConsumen int32 `csv:"MaxRewardConsumen"` //满級奖励消耗所需经验
  2643. RewardSign int32 `csv:"RewardSign"` //是否为大奖
  2644. ActiveRound int32 `csv:"ActiveRound"` //活动轮次
  2645. }
  2646. func RuneShopExploreRewardCfgLoad(path string) {
  2647. cfg := []*RuneShopExploreRewardCfg{}
  2648. RuneShopExploreRewardCfgLoader = map[int32]*RuneShopExploreRewardCfg{}
  2649. loadCsvCfg(path+"RuneShopExploreRewardCfg.csv", &cfg)
  2650. for _, row := range cfg {
  2651. RuneShopExploreRewardCfgLoader[row.ID] = row
  2652. }
  2653. }
  2654. var RuneShopGiftsCfgLoader map[int32]*RuneShopGiftsCfg
  2655. type RuneShopGiftsCfg struct {
  2656. Id int32 `csv:"Id"` //禮包Id
  2657. Name string `csv:"Name"` //禮包名字
  2658. Type int32 `csv:"Type"` //类型
  2659. RMB float32 `csv:"RMB"` //价格
  2660. Reward []string `csv:"Reward"` //购买后获得道具
  2661. FirstBuyReward []string `csv:"FirstBuyReward"` //首次购买奖励
  2662. ExtraBuyReward []string `csv:"ExtraBuyReward"` //购买额外获得
  2663. RestrictedType int32 `csv:"RestrictedType"` //限购类型次数
  2664. SortId int32 `csv:"SortId"` //排序Id
  2665. RmbTotalPay int32 `csv:"RmbTotalPay"` //累计充值金额
  2666. SDKGoodsId string `csv:"SDKGoodsId"` //SDK商品ID
  2667. }
  2668. func RuneShopGiftsCfgLoad(path string) {
  2669. cfg := []*RuneShopGiftsCfg{}
  2670. RuneShopGiftsCfgLoader = map[int32]*RuneShopGiftsCfg{}
  2671. loadCsvCfg(path+"RuneShopGiftsCfg.csv", &cfg)
  2672. for _, row := range cfg {
  2673. RuneShopGiftsCfgLoader[row.Id] = row
  2674. }
  2675. }
  2676. var RuneShopGuildBattleCfgLoader map[int32]*RuneShopGuildBattleCfg
  2677. type RuneShopGuildBattleCfg struct {
  2678. Id int32 `csv:"Id"` //禮包Id
  2679. Name string `csv:"Name"` //禮包名字
  2680. RMB float32 `csv:"RMB"` //价格
  2681. Reward []string `csv:"Reward"` //购买后获得道具
  2682. RestrictedType int32 `csv:"RestrictedType"` //限购类型次数
  2683. SortId int32 `csv:"SortId"` //排序Id
  2684. }
  2685. func RuneShopGuildBattleCfgLoad(path string) {
  2686. cfg := []*RuneShopGuildBattleCfg{}
  2687. RuneShopGuildBattleCfgLoader = map[int32]*RuneShopGuildBattleCfg{}
  2688. loadCsvCfg(path+"RuneShopGuildBattleCfg.csv", &cfg)
  2689. for _, row := range cfg {
  2690. RuneShopGuildBattleCfgLoader[row.Id] = row
  2691. }
  2692. }
  2693. var RuneShopLimitCfgLoader map[int32]*RuneShopLimitCfg
  2694. type RuneShopLimitCfg struct {
  2695. Id int32 `csv:"Id"` //限時商品Id
  2696. Name string `csv:"Name"` //商品名字
  2697. BuyReward []string `csv:"BuyReward"` //购买奖励
  2698. RMB float32 `csv:"RMB"` //价格
  2699. SellingType int32 `csv:"SellingType"` //商品上架类型
  2700. SellingBegin int32 `csv:"SellingBegin"` //开服后起始時间
  2701. SellingDuration int32 `csv:"SellingDuration"` //开服上架持续時長
  2702. BeginTime string `csv:"BeginTime"` //商品上架時间
  2703. EndTime string `csv:"EndTime"` //商品下架時间
  2704. RestrictedType int32 `csv:"RestrictedType"` //限购次数
  2705. SeasonId int32 `csv:"SeasonId"` //赛季ID
  2706. ActiveId int32 `csv:"ActiveId"` //活动ID
  2707. RedPoint int32 `csv:"RedPoint"` //红点显示
  2708. SortId int32 `csv:"SortId"` //排序Id
  2709. }
  2710. func RuneShopLimitCfgLoad(path string) {
  2711. cfg := []*RuneShopLimitCfg{}
  2712. RuneShopLimitCfgLoader = map[int32]*RuneShopLimitCfg{}
  2713. loadCsvCfg(path+"RuneShopLimitCfg.csv", &cfg)
  2714. for _, row := range cfg {
  2715. RuneShopLimitCfgLoader[row.Id] = row
  2716. }
  2717. }
  2718. var RuneShopMonthCardCfgLoader map[int32]*RuneShopMonthCardCfg
  2719. type RuneShopMonthCardCfg struct {
  2720. Id int32 `csv:"Id"` //周卡类型
  2721. Name string `csv:"Name"` //周卡名字
  2722. AddTime int32 `csv:"AddTime"` //增加時長
  2723. BuyReward []string `csv:"BuyReward"` //购买奖励显示
  2724. DayReward []string `csv:"DayReward"` //每日奖励
  2725. TotalReward []string `csv:"TotalReward"` //总计奖励
  2726. RMB float32 `csv:"RMB"` //价格
  2727. BuyRewardServer []string `csv:"BuyRewardServer"` //获得购买奖励
  2728. RewardMail int32 `csv:"RewardMail"` //奖励邮件
  2729. Monthdec string `csv:"Monthdec"` //周卡描述
  2730. }
  2731. func RuneShopMonthCardCfgLoad(path string) {
  2732. cfg := []*RuneShopMonthCardCfg{}
  2733. RuneShopMonthCardCfgLoader = map[int32]*RuneShopMonthCardCfg{}
  2734. loadCsvCfg(path+"RuneShopMonthCardCfg.csv", &cfg)
  2735. for _, row := range cfg {
  2736. RuneShopMonthCardCfgLoader[row.Id] = row
  2737. }
  2738. }
  2739. var RuneShopRankAidouluCfgLoader map[int32]*RuneShopRankAidouluCfg
  2740. type RuneShopRankAidouluCfg struct {
  2741. Id int32 `csv:"Id"` //禮包Id
  2742. RankId int32 `csv:"RankId"` //活序号
  2743. Name string `csv:"Name"` //禮包名字
  2744. RMB float32 `csv:"RMB"` //价格
  2745. Reward []string `csv:"Reward"` //前端显示获得道具
  2746. RestrictedType int32 `csv:"RestrictedType"` //限购类型次数
  2747. SortId int32 `csv:"SortId"` //排序Id
  2748. SeverReward []string `csv:"SeverReward"` //购买后获得道具
  2749. RewardScore int32 `csv:"RewardScore"` //购买后获得积分
  2750. IfRequite int32 `csv:"IfRequite"` //是否解锁饋赠
  2751. }
  2752. func RuneShopRankAidouluCfgLoad(path string) {
  2753. cfg := []*RuneShopRankAidouluCfg{}
  2754. RuneShopRankAidouluCfgLoader = map[int32]*RuneShopRankAidouluCfg{}
  2755. loadCsvCfg(path+"RuneShopRankAidouluCfg.csv", &cfg)
  2756. for _, row := range cfg {
  2757. RuneShopRankAidouluCfgLoader[row.Id] = row
  2758. }
  2759. }
  2760. var RuneShopRankArenaCfgLoader map[int32]*RuneShopRankArenaCfg
  2761. type RuneShopRankArenaCfg struct {
  2762. Id int32 `csv:"Id"` //禮包Id
  2763. RankId int32 `csv:"RankId"` //活序号
  2764. Name string `csv:"Name"` //禮包名字
  2765. RMB float32 `csv:"RMB"` //价格
  2766. Reward []string `csv:"Reward"` //购买后获得道具
  2767. RestrictedType int32 `csv:"RestrictedType"` //限购类型次数
  2768. SortId int32 `csv:"SortId"` //排序Id
  2769. }
  2770. func RuneShopRankArenaCfgLoad(path string) {
  2771. cfg := []*RuneShopRankArenaCfg{}
  2772. RuneShopRankArenaCfgLoader = map[int32]*RuneShopRankArenaCfg{}
  2773. loadCsvCfg(path+"RuneShopRankArenaCfg.csv", &cfg)
  2774. for _, row := range cfg {
  2775. RuneShopRankArenaCfgLoader[row.Id] = row
  2776. }
  2777. }
  2778. var RuneShopRankMapCfgLoader map[int32]*RuneShopRankMapCfg
  2779. type RuneShopRankMapCfg struct {
  2780. Id int32 `csv:"Id"` //禮包Id
  2781. RankId int32 `csv:"RankId"` //活序号
  2782. Name string `csv:"Name"` //禮包名字
  2783. RMB float32 `csv:"RMB"` //价格
  2784. Reward []string `csv:"Reward"` //购买后获得道具
  2785. RewardScore int32 `csv:"RewardScore"` //购买后获得积分
  2786. RestrictedType int32 `csv:"RestrictedType"` //限购类型次数
  2787. SortId int32 `csv:"SortId"` //排序Id
  2788. SeverReward []string `csv:"SeverReward"` //购买后获得道具
  2789. }
  2790. func RuneShopRankMapCfgLoad(path string) {
  2791. cfg := []*RuneShopRankMapCfg{}
  2792. RuneShopRankMapCfgLoader = map[int32]*RuneShopRankMapCfg{}
  2793. loadCsvCfg(path+"RuneShopRankMapCfg.csv", &cfg)
  2794. for _, row := range cfg {
  2795. RuneShopRankMapCfgLoader[row.Id] = row
  2796. }
  2797. }
  2798. var RuneShopRankPetCfgLoader map[int32]*RuneShopRankPetCfg
  2799. type RuneShopRankPetCfg struct {
  2800. Id int32 `csv:"Id"` //禮包Id
  2801. RankId int32 `csv:"RankId"` //活序号
  2802. Name string `csv:"Name"` //禮包名字
  2803. RMB float32 `csv:"RMB"` //价格
  2804. Reward []string `csv:"Reward"` //购买后获得道具
  2805. RestrictedType int32 `csv:"RestrictedType"` //限购类型次数
  2806. SortId int32 `csv:"SortId"` //排序Id
  2807. }
  2808. func RuneShopRankPetCfgLoad(path string) {
  2809. cfg := []*RuneShopRankPetCfg{}
  2810. RuneShopRankPetCfgLoader = map[int32]*RuneShopRankPetCfg{}
  2811. loadCsvCfg(path+"RuneShopRankPetCfg.csv", &cfg)
  2812. for _, row := range cfg {
  2813. RuneShopRankPetCfgLoader[row.Id] = row
  2814. }
  2815. }
  2816. var RuneShopRankSkillCfgLoader map[int32]*RuneShopRankSkillCfg
  2817. type RuneShopRankSkillCfg struct {
  2818. Id int32 `csv:"Id"` //禮包Id
  2819. RankId int32 `csv:"RankId"` //活序号
  2820. Name string `csv:"Name"` //禮包名字
  2821. RMB float32 `csv:"RMB"` //价格
  2822. Reward []string `csv:"Reward"` //购买后获得道具
  2823. RestrictedType int32 `csv:"RestrictedType"` //限购类型次数
  2824. SortId int32 `csv:"SortId"` //排序Id
  2825. }
  2826. func RuneShopRankSkillCfgLoad(path string) {
  2827. cfg := []*RuneShopRankSkillCfg{}
  2828. RuneShopRankSkillCfgLoader = map[int32]*RuneShopRankSkillCfg{}
  2829. loadCsvCfg(path+"RuneShopRankSkillCfg.csv", &cfg)
  2830. for _, row := range cfg {
  2831. RuneShopRankSkillCfgLoader[row.Id] = row
  2832. }
  2833. }
  2834. var RuneShopRankTowerCfgLoader map[int32]*RuneShopRankTowerCfg
  2835. type RuneShopRankTowerCfg struct {
  2836. Id int32 `csv:"Id"` //禮包Id
  2837. RankId int32 `csv:"RankId"` //活序号
  2838. Name string `csv:"Name"` //禮包名字
  2839. RMB float32 `csv:"RMB"` //价格
  2840. Reward []string `csv:"Reward"` //购买后获得道具
  2841. RestrictedType int32 `csv:"RestrictedType"` //限购类型次数
  2842. SortId int32 `csv:"SortId"` //排序Id
  2843. }
  2844. func RuneShopRankTowerCfgLoad(path string) {
  2845. cfg := []*RuneShopRankTowerCfg{}
  2846. RuneShopRankTowerCfgLoader = map[int32]*RuneShopRankTowerCfg{}
  2847. loadCsvCfg(path+"RuneShopRankTowerCfg.csv", &cfg)
  2848. for _, row := range cfg {
  2849. RuneShopRankTowerCfgLoader[row.Id] = row
  2850. }
  2851. }
  2852. var RushListCfgLoader map[int32]*RushListCfg
  2853. type RushListCfg struct {
  2854. Id int32 `csv:"Id"` //RankId
  2855. RankType int32 `csv:"RankType"` //活动种类
  2856. RankId int32 `csv:"RankId"` //活动序号
  2857. StartDay int32 `csv:"StartDay"` //活动开始日期
  2858. StartTime string `csv:"StartTime"` //活动开始時间
  2859. CloseDay int32 `csv:"CloseDay"` //活动结束日期
  2860. CloseTime string `csv:"CloseTime"` //活动结束時间
  2861. RestDay int32 `csv:"RestDay"` //功能结束日期
  2862. RestTime string `csv:"RestTime"` //功能结束時间
  2863. RankGrade int32 `csv:"RankGrade"` //排名档次
  2864. Rank []string `csv:"Rank"` //排名区间
  2865. Reward []string `csv:"Reward"` //排名奖励
  2866. }
  2867. func RushListCfgLoad(path string) {
  2868. cfg := []*RushListCfg{}
  2869. RushListCfgLoader = map[int32]*RushListCfg{}
  2870. loadCsvCfg(path+"RushListCfg.csv", &cfg)
  2871. for _, row := range cfg {
  2872. RushListCfgLoader[row.Id] = row
  2873. }
  2874. }
  2875. var RushListTargetCfgLoader map[int32]*RushListTargetCfg
  2876. type RushListTargetCfg struct {
  2877. Id int32 `csv:"Id"` //Id
  2878. RankType int32 `csv:"RankType"` //活动种类
  2879. RankId int32 `csv:"RankId"` //活序号
  2880. Rank []string `csv:"Rank"` //条件区间
  2881. TargetGrade int32 `csv:"TargetGrade"` //目标档次
  2882. Reward []string `csv:"Reward"` //奖励
  2883. }
  2884. func RushListTargetCfgLoad(path string) {
  2885. cfg := []*RushListTargetCfg{}
  2886. RushListTargetCfgLoader = map[int32]*RushListTargetCfg{}
  2887. loadCsvCfg(path+"RushListTargetCfg.csv", &cfg)
  2888. for _, row := range cfg {
  2889. RushListTargetCfgLoader[row.Id] = row
  2890. }
  2891. }
  2892. var ServiceRecordCfgLoader map[int32]*ServiceRecordCfg
  2893. type ServiceRecordCfg struct {
  2894. Id int32 `csv:"Id"` //合服记录编号
  2895. ActivitiesId []string `csv:"ActivitiesId"` //活动Id
  2896. }
  2897. func ServiceRecordCfgLoad(path string) {
  2898. cfg := []*ServiceRecordCfg{}
  2899. ServiceRecordCfgLoader = map[int32]*ServiceRecordCfg{}
  2900. loadCsvCfg(path+"ServiceRecordCfg.csv", &cfg)
  2901. for _, row := range cfg {
  2902. ServiceRecordCfgLoader[row.Id] = row
  2903. }
  2904. }
  2905. var ShieldedWordCfgLoader map[int32]*ShieldedWordCfg
  2906. type ShieldedWordCfg struct {
  2907. ID int32 `csv:"ID"` //ID
  2908. Type string `csv:"Type"` //Type
  2909. }
  2910. func ShieldedWordCfgLoad(path string) {
  2911. cfg := []*ShieldedWordCfg{}
  2912. ShieldedWordCfgLoader = map[int32]*ShieldedWordCfg{}
  2913. loadCsvCfg(path+"ShieldedWordCfg.csv", &cfg)
  2914. for _, row := range cfg {
  2915. ShieldedWordCfgLoader[row.ID] = row
  2916. }
  2917. }
  2918. var ShopCfgLoader map[int32]*ShopCfg
  2919. type ShopCfg struct {
  2920. GoodsId int32 `csv:"GoodsId"` //商品Id
  2921. GoodsName string `csv:"GoodsName"` //商品名称
  2922. GoodsType int32 `csv:"GoodsType"` //商品所屬tab
  2923. GoodsTypename string `csv:"GoodsTypename"` //商品页签
  2924. GoodsItem int32 `csv:"GoodsItem"` //商品内容
  2925. PayForType int32 `csv:"PayForType"` //消耗资源类型
  2926. PayForNum int32 `csv:"PayForNum"` //消耗资源数量
  2927. HdDrop int32 `csv:"HdDrop"` //活动商品
  2928. SellWell int32 `csv:"SellWell"` //是否热销
  2929. Proportion int32 `csv:"Proportion"` //折扣比例
  2930. DiscountPayForNum int32 `csv:"DiscountPayForNum"` //折扣后价格
  2931. RestrictedType string `csv:"RestrictedType"` //限购类型次数
  2932. BeginTime string `csv:"BeginTime"` //开始時间
  2933. EndTime string `csv:"EndTime"` //结束時间
  2934. SortId int32 `csv:"SortId"` //排序Id
  2935. Weight int32 `csv:"Weight"` //权重概率
  2936. Weight1 int32 `csv:"Weight1"` //VIP权重概率1
  2937. Weight2 int32 `csv:"Weight2"` //VIP权重概率2
  2938. Weight3 int32 `csv:"Weight3"` //VIP权重概率3
  2939. Weight4 int32 `csv:"Weight4"` //VIP权重概率4
  2940. NtfClient int32 `csv:"NtfClient"` //是否通知客户端
  2941. GoodsPic string `csv:"GoodsPic"` //图片
  2942. Reward []string `csv:"Reward"` //购买后获得道具
  2943. Condition []string `csv:"Condition"` //上架解锁条件枚举
  2944. }
  2945. func ShopCfgLoad(path string) {
  2946. cfg := []*ShopCfg{}
  2947. ShopCfgLoader = map[int32]*ShopCfg{}
  2948. loadCsvCfg(path+"ShopCfg.csv", &cfg)
  2949. for _, row := range cfg {
  2950. ShopCfgLoader[row.GoodsId] = row
  2951. }
  2952. }
  2953. var ShopTypeCfgLoader map[int32]*ShopTypeCfg
  2954. type ShopTypeCfg struct {
  2955. Id int32 `csv:"Id"` //商店唯一ID
  2956. ShopType int32 `csv:"ShopType"` //商店类型
  2957. Currency []string `csv:"Currency"` //交易货幣
  2958. RefreshTime []string `csv:"RefreshTime"` //自动刷新時间点
  2959. PayForRefresh []string `csv:"PayForRefresh"` //手动刷新消耗
  2960. RefreshNum int32 `csv:"RefreshNum"` //手动刷新最大次数
  2961. GoodsRefreshNum int32 `csv:"GoodsRefreshNum"` //刷新商店道具上架数量
  2962. SortId int32 `csv:"SortId"` //商店页签排序
  2963. ActShop int32 `csv:"ActShop"` //活动商店类型
  2964. }
  2965. func ShopTypeCfgLoad(path string) {
  2966. cfg := []*ShopTypeCfg{}
  2967. ShopTypeCfgLoader = map[int32]*ShopTypeCfg{}
  2968. loadCsvCfg(path+"ShopTypeCfg.csv", &cfg)
  2969. for _, row := range cfg {
  2970. ShopTypeCfgLoader[row.Id] = row
  2971. }
  2972. }
  2973. var SignInCfgLoader map[int32]*SignInCfg
  2974. type SignInCfg struct {
  2975. ID int32 `csv:"ID"` //序列id
  2976. SignInType int32 `csv:"SignInType"` //签到类型
  2977. SignInReward []string `csv:"SignInReward"` //签到奖励
  2978. VipLevel int32 `csv:"VipLevel"` //Vip等級
  2979. SignInAddReward []string `csv:"SignInAddReward"` //累计奖励
  2980. Balloon int32 `csv:"balloon"` //气球方向
  2981. }
  2982. func SignInCfgLoad(path string) {
  2983. cfg := []*SignInCfg{}
  2984. SignInCfgLoader = map[int32]*SignInCfg{}
  2985. loadCsvCfg(path+"SignInCfg.csv", &cfg)
  2986. for _, row := range cfg {
  2987. SignInCfgLoader[row.ID] = row
  2988. }
  2989. }
  2990. var SkillCfgLoader map[int32]*SkillCfg
  2991. type SkillCfg struct {
  2992. SkillId int32 `csv:"SkillId"` //技能ID
  2993. SkillType int32 `csv:"SkillType"` //技能类型
  2994. JobType int32 `csv:"JobType"` //职业类型
  2995. JobBranch int32 `csv:"JobBranch"` //职业分支
  2996. JobStage int32 `csv:"JobStage"` //职业階段
  2997. Hide int32 `csv:"Hide"` //隐藏
  2998. BuffPoint []string `csv:"BuffPoint"` //技能点数
  2999. AddFight int32 `csv:"AddFight"` //技能升級提升战力
  3000. SpcSkillDec []string `csv:"SpcSkillDec"` //特殊技能
  3001. }
  3002. func SkillCfgLoad(path string) {
  3003. cfg := []*SkillCfg{}
  3004. SkillCfgLoader = map[int32]*SkillCfg{}
  3005. loadCsvCfg(path+"SkillCfg.csv", &cfg)
  3006. for _, row := range cfg {
  3007. SkillCfgLoader[row.SkillId] = row
  3008. }
  3009. }
  3010. var SkillDemandCfgLoader map[int32]*SkillDemandCfg
  3011. type SkillDemandCfg struct {
  3012. LearnLv int32 `csv:"LearnLv"` //技能學習等級
  3013. LvupDemand []string `csv:"LvupDemand"` //技能升級需求等級
  3014. LvupCost []string `csv:"LvupCost"` //技能升級所需消耗
  3015. }
  3016. func SkillDemandCfgLoad(path string) {
  3017. cfg := []*SkillDemandCfg{}
  3018. SkillDemandCfgLoader = map[int32]*SkillDemandCfg{}
  3019. loadCsvCfg(path+"SkillDemandCfg.csv", &cfg)
  3020. for _, row := range cfg {
  3021. SkillDemandCfgLoader[row.LearnLv] = row
  3022. }
  3023. }
  3024. var SkillLvCfgLoader map[int32]*SkillLvCfg
  3025. type SkillLvCfg struct {
  3026. Id int32 `csv:"Id"` //固定ID
  3027. Cost int32 `csv:"Cost"` //SP消耗
  3028. SkillId int32 `csv:"SkillId"` //技能ID
  3029. SkillLV int32 `csv:"SkillLV"` //技能等級
  3030. }
  3031. func SkillLvCfgLoad(path string) {
  3032. cfg := []*SkillLvCfg{}
  3033. SkillLvCfgLoader = map[int32]*SkillLvCfg{}
  3034. loadCsvCfg(path+"SkillLvCfg.csv", &cfg)
  3035. for _, row := range cfg {
  3036. SkillLvCfgLoader[row.Id] = row
  3037. }
  3038. }
  3039. var SkillSlotCfgLoader map[int32]*SkillSlotCfg
  3040. type SkillSlotCfg struct {
  3041. ID int32 `csv:"ID"` //编号
  3042. Condition int32 `csv:"Condition"` //升級解锁条件
  3043. SCondition []string `csv:"S_Condition"` //升級解锁条件
  3044. FightPower int32 `csv:"FightPower"` //技能槽附加战斗力
  3045. ParterCondition int32 `csv:"ParterCondition"` //夥伴技能升級条件
  3046. SParterCondition []string `csv:"S_ParterCondition"` //夥伴技能升級条件
  3047. }
  3048. func SkillSlotCfgLoad(path string) {
  3049. cfg := []*SkillSlotCfg{}
  3050. SkillSlotCfgLoader = map[int32]*SkillSlotCfg{}
  3051. loadCsvCfg(path+"SkillSlotCfg.csv", &cfg)
  3052. for _, row := range cfg {
  3053. SkillSlotCfgLoader[row.ID] = row
  3054. }
  3055. }
  3056. var SkillSuitNewCfgLoader map[int32]*SkillSuitNewCfg
  3057. type SkillSuitNewCfg struct {
  3058. Id int32 `csv:"Id"` //id
  3059. Name string `csv:"Name"` //名称
  3060. Suit1 []string `csv:"Suit1"` //效果
  3061. TriggerConditions []string `csv:"TriggerConditions"` //激活条件
  3062. Buffid int32 `csv:"buffid"` //触发buff
  3063. }
  3064. func SkillSuitNewCfgLoad(path string) {
  3065. cfg := []*SkillSuitNewCfg{}
  3066. SkillSuitNewCfgLoader = map[int32]*SkillSuitNewCfg{}
  3067. loadCsvCfg(path+"SkillSuitNewCfg.csv", &cfg)
  3068. for _, row := range cfg {
  3069. SkillSuitNewCfgLoader[row.Id] = row
  3070. }
  3071. }
  3072. var SkillTreeCfgLoader map[int32]*SkillTreeCfg
  3073. type SkillTreeCfg struct {
  3074. SkillId int32 `csv:"SkillId"` //技能ID
  3075. Name string `csv:"Name"` //技能名字
  3076. SkillType int32 `csv:"SkillType"` //技能类型
  3077. MaxLv int32 `csv:"MaxLv"` //技能等級上限
  3078. SkillQuality int32 `csv:"SkillQuality"` //技能品质
  3079. JobType int32 `csv:"JobType"` //职业类型
  3080. JobBranch int32 `csv:"JobBranch"` //职业分支
  3081. JobStage int32 `csv:"JobStage"` //职业階段
  3082. OpenLevel int32 `csv:"OpenLevel"` //解锁主角等級要求
  3083. OpenNeedCost []string `csv:"OpenNeedCost"` //解锁需求
  3084. Pos int32 `csv:"Pos"` //技能树位置件
  3085. Order int32 `csv:"order"` //技能排序
  3086. SuperSkill []string `csv:"SuperSkill"` //進階技能
  3087. BeforeSkill int32 `csv:"beforeSkill"` //下階技能
  3088. SkillBranch int32 `csv:"SkillBranch"` //進階职业階段
  3089. PressPoint int32 `csv:"PressPoint"` //技能压制值
  3090. StartPressPoint int32 `csv:"StartPressPoint"` //技能原压制值
  3091. }
  3092. func SkillTreeCfgLoad(path string) {
  3093. cfg := []*SkillTreeCfg{}
  3094. SkillTreeCfgLoader = map[int32]*SkillTreeCfg{}
  3095. loadCsvCfg(path+"SkillTreeCfg.csv", &cfg)
  3096. for _, row := range cfg {
  3097. SkillTreeCfgLoader[row.SkillId] = row
  3098. }
  3099. }
  3100. var SkillUpEffectCfgLoader map[int32]*SkillUpEffectCfg
  3101. type SkillUpEffectCfg struct {
  3102. Id int32 `csv:"Id"` //技能ID
  3103. SkillId int32 `csv:"SkillId"` //技能ID
  3104. SkillLv int32 `csv:"SkillLv"` //技能等級
  3105. SkillType int32 `csv:"SkillType"` //技能类型
  3106. AddAttributes []string `csv:"AddAttributes"` //增加屬性
  3107. }
  3108. func SkillUpEffectCfgLoad(path string) {
  3109. cfg := []*SkillUpEffectCfg{}
  3110. SkillUpEffectCfgLoader = map[int32]*SkillUpEffectCfg{}
  3111. loadCsvCfg(path+"SkillUpEffectCfg.csv", &cfg)
  3112. for _, row := range cfg {
  3113. SkillUpEffectCfgLoader[row.Id] = row
  3114. }
  3115. }
  3116. var SummonServerCfgLoader map[int32]*SummonServerCfg
  3117. type SummonServerCfg struct {
  3118. Id int32 `csv:"Id"` //召唤Id
  3119. Name string `csv:"Name"` //召唤名字
  3120. Cost []string `csv:"Cost"` //消耗道具顺序
  3121. Method []string `csv:"Method"` //召唤方式
  3122. DropId int32 `csv:"DropId"` //钥匙掉落包
  3123. DropId2 int32 `csv:"DropId2"` //金幣掉落包
  3124. Total int32 `csv:"Total"` //额外奖励的累计次数
  3125. ExtDropId int32 `csv:"ExtDropId"` //额外奖励的掉落包
  3126. SortId int32 `csv:"SortId"` //界面排序
  3127. ShowItemType []string `csv:"ShowItemType"` //可用于表现的道具类型
  3128. UnLock int32 `csv:"UnLock"` //解锁ID
  3129. ActivitiesId int32 `csv:"ActivitiesId"` //活动Id
  3130. Type int32 `csv:"Type"` //召唤类型
  3131. StartDay int32 `csv:"StartDay"` //开服時间
  3132. SummoType int32 `csv:"SummoType"` //召唤组
  3133. }
  3134. func SummonServerCfgLoad(path string) {
  3135. cfg := []*SummonServerCfg{}
  3136. SummonServerCfgLoader = map[int32]*SummonServerCfg{}
  3137. loadCsvCfg(path+"SummonServerCfg.csv", &cfg)
  3138. for _, row := range cfg {
  3139. SummonServerCfgLoader[row.Id] = row
  3140. }
  3141. }
  3142. var SummonTemplateCfgLoader map[int32]*SummonTemplateCfg
  3143. type SummonTemplateCfg struct {
  3144. Id int32 `csv:"Id"` //ID
  3145. BlueNum []string `csv:"BlueNum"` //蓝色
  3146. PurpleNum []string `csv:"PurpleNum"` //紫色
  3147. GoldNum []string `csv:"GoldNum"` //金色
  3148. SecurityNum int32 `csv:"SecurityNum"` //保底增加百分比
  3149. Probability1 int32 `csv:"Probability1"` //用道具抽取权重
  3150. Probability2 int32 `csv:"Probability2"` //用金幣抽取权重
  3151. CardType int32 `csv:"CardType"` //类型
  3152. }
  3153. func SummonTemplateCfgLoad(path string) {
  3154. cfg := []*SummonTemplateCfg{}
  3155. SummonTemplateCfgLoader = map[int32]*SummonTemplateCfg{}
  3156. loadCsvCfg(path+"SummonTemplateCfg.csv", &cfg)
  3157. for _, row := range cfg {
  3158. SummonTemplateCfgLoader[row.Id] = row
  3159. }
  3160. }
  3161. var SysRewardLoader map[int32]*SysReward
  3162. type SysReward struct {
  3163. Id int32 `csv:"Id"` //爬塔层数
  3164. Reward []string `csv:"Reward"` //对应奖励
  3165. }
  3166. func SysRewardLoad(path string) {
  3167. cfg := []*SysReward{}
  3168. SysRewardLoader = map[int32]*SysReward{}
  3169. loadCsvCfg(path+"SysReward.csv", &cfg)
  3170. for _, row := range cfg {
  3171. SysRewardLoader[row.Id] = row
  3172. }
  3173. }
  3174. var TargetTaskCfgLoader map[int32]*TargetTaskCfg
  3175. type TargetTaskCfg struct {
  3176. TargetTaskId int32 `csv:"TargetTaskId"` //任务ID
  3177. TargetTaskCondition []string `csv:"TargetTaskCondition"` //任务枚举
  3178. TargetTaskType int32 `csv:"TargetTaskType"` //任务类型
  3179. TargetReward []string `csv:"TargetReward"` //任务奖励
  3180. FollowTaskOld int32 `csv:"FollowTaskOld"` //后续ID
  3181. TargetTaskTitle string `csv:"TargetTaskTitle"` //任务标题
  3182. TargetTaskDescribe string `csv:"TargetTaskDescribe"` //任务描述
  3183. SkipInterface int32 `csv:"SkipInterface"` //跳转界面
  3184. ShowState int32 `csv:"ShowState"` //是否显示進度
  3185. }
  3186. func TargetTaskCfgLoad(path string) {
  3187. cfg := []*TargetTaskCfg{}
  3188. TargetTaskCfgLoader = map[int32]*TargetTaskCfg{}
  3189. loadCsvCfg(path+"TargetTaskCfg.csv", &cfg)
  3190. for _, row := range cfg {
  3191. TargetTaskCfgLoader[row.TargetTaskId] = row
  3192. }
  3193. }
  3194. var TopTowerCfgLevelLoader map[int32]*TopTowerCfgLevel
  3195. type TopTowerCfgLevel struct {
  3196. LevelId int32 `csv:"LevelId"` //区间ID
  3197. RankId []string `csv:"RankId"` //排名ID
  3198. LevelRank1 []string `csv:"LevelRank1"` //第1层
  3199. LevelRank2 []string `csv:"LevelRank2"` //第2层
  3200. LevelRank3 []string `csv:"LevelRank3"` //第3层
  3201. LevelRank4 []string `csv:"LevelRank4"` //第4层
  3202. LevelRank5 []string `csv:"LevelRank5"` //第5层
  3203. LevelRank6 []string `csv:"LevelRank6"` //第6层
  3204. LevelRank7 []string `csv:"LevelRank7"` //第7层
  3205. LevelRank8 []string `csv:"LevelRank8"` //第8层
  3206. LevelRank9 []string `csv:"LevelRank9"` //第9层
  3207. LevelRank10 []string `csv:"LevelRank10"` //第10层
  3208. }
  3209. func TopTowerCfgLevelLoad(path string) {
  3210. cfg := []*TopTowerCfgLevel{}
  3211. TopTowerCfgLevelLoader = map[int32]*TopTowerCfgLevel{}
  3212. loadCsvCfg(path+"TopTowerCfgLevel.csv", &cfg)
  3213. for _, row := range cfg {
  3214. TopTowerCfgLevelLoader[row.LevelId] = row
  3215. }
  3216. }
  3217. var TopTowerCfgRewardLoader map[int32]*TopTowerCfgReward
  3218. type TopTowerCfgReward struct {
  3219. LevelId int32 `csv:"LevelId"` //层数
  3220. RewardItems []string `csv:"RewardItems"` //层数奖励
  3221. BuyRoadCost []string `csv:"BuyRoadCost"` //买路花费
  3222. }
  3223. func TopTowerCfgRewardLoad(path string) {
  3224. cfg := []*TopTowerCfgReward{}
  3225. TopTowerCfgRewardLoader = map[int32]*TopTowerCfgReward{}
  3226. loadCsvCfg(path+"TopTowerCfgReward.csv", &cfg)
  3227. for _, row := range cfg {
  3228. TopTowerCfgRewardLoader[row.LevelId] = row
  3229. }
  3230. }
  3231. var TransportCfgLoader map[int32]*TransportCfg
  3232. type TransportCfg struct {
  3233. ShipLevel int32 `csv:"ShipLevel"` //飞艇等級
  3234. Duration int32 `csv:"Duration"` //远航完成時長
  3235. Consume []string `csv:"Consume"` //飞艇升級消耗
  3236. Probability int32 `csv:"Probability"` //飞艇升級成功率
  3237. TranspoertReward []string `csv:"TranspoertReward"` //远航完成奖励
  3238. RobberyTimes int32 `csv:"RobberyTimes"` //被打劫次数
  3239. RobberyLose []string `csv:"RobberyLose"` //被打劫后损失奖励
  3240. RobberyReward []string `csv:"RobberyReward"` //打劫奖励
  3241. RobberyFraction int32 `csv:"RobberyFraction"` //打劫获得积分
  3242. TopLevel []string `csv:"TopLevel"` //直接升至顶級
  3243. }
  3244. func TransportCfgLoad(path string) {
  3245. cfg := []*TransportCfg{}
  3246. TransportCfgLoader = map[int32]*TransportCfg{}
  3247. loadCsvCfg(path+"TransportCfg.csv", &cfg)
  3248. for _, row := range cfg {
  3249. TransportCfgLoader[row.ShipLevel] = row
  3250. }
  3251. }
  3252. var UIFuncUnLockCfgLoader map[int32]*UIFuncUnLockCfg
  3253. type UIFuncUnLockCfg struct {
  3254. Id int32 `csv:"Id"` //ID
  3255. UIId int32 `csv:"UIId"` //界面ID
  3256. UnlockCond []string `csv:"UnlockCond"` //解锁条件列表
  3257. LockNotice string `csv:"LockNotice"` //锁定提示
  3258. NeedLock bool `csv:"NeedLock"` //需要锁定
  3259. NeedMask bool `csv:"NeedMask"` //需要按钮遮挡
  3260. NeedNotify bool `csv:"NeedNotify"` //需要提示界面
  3261. NeedGuide bool `csv:"NeedGuide"` //需要引导
  3262. NeedDisplay bool `csv:"NeedDisplay"` //需要显示
  3263. PrePose int32 `csv:"PrePose"` //前置
  3264. PostPose int32 `csv:"PostPose"` //后置
  3265. ForceGuideGroup int32 `csv:"ForceGuideGroup"` //强制引导
  3266. }
  3267. func UIFuncUnLockCfgLoad(path string) {
  3268. cfg := []*UIFuncUnLockCfg{}
  3269. UIFuncUnLockCfgLoader = map[int32]*UIFuncUnLockCfg{}
  3270. loadCsvCfg(path+"UIFuncUnLockCfg.csv", &cfg)
  3271. for _, row := range cfg {
  3272. UIFuncUnLockCfgLoader[row.Id] = row
  3273. }
  3274. }
  3275. var VipCfgLoader map[int32]*VipCfg
  3276. type VipCfg struct {
  3277. Lv int32 `csv:"Lv"` //Vip等級
  3278. QuickBattle int32 `csv:"QuickBattle"` //战斗X2加速
  3279. Reward []string `csv:"Reward"` //Vip道具奖励
  3280. VipExp int32 `csv:"VipExp"` //Vip升級所需经验
  3281. EvilFreeTimes int32 `csv:"EvilFreeTimes"` //恶魔免费刷新次数
  3282. VipLogin int32 `csv:"VipLogin"` //VIP上线提示
  3283. PetAdvance int32 `csv:"PetAdvance"` //寵物進階消耗免费
  3284. CardReset int32 `csv:"CardReset"` //卡片重铸免费
  3285. PetBreak int32 `csv:"PetBreak"` //寵物分解全额返还
  3286. SkillReset int32 `csv:"SkillReset"` //角色技能重置免费
  3287. GuildBossChallenge int32 `csv:"GuildBossChallenge"` //公会狩猎额外次数
  3288. CardInsertion int32 `csv:"CardInsertion"` //一键插卡功能
  3289. ShopWeight int32 `csv:"ShopWeight"` //黑市VIP权重
  3290. WorldBoss int32 `csv:"WorldBoss"` //世界BOSS刮奖次数
  3291. PvpReward int32 `csv:"PvpReward"` //额外荣誉之证
  3292. HangupTimes int32 `csv:"HangupTimes"` //時光之力购买次数
  3293. SilverUp int32 `csv:"SilverUp"` //银幣加成
  3294. BaseExpUp int32 `csv:"BaseExpUp"` //基础经验加成
  3295. PartnerExpUp int32 `csv:"PartnerExpUp"` //夥伴经验加成
  3296. SkillExpUp int32 `csv:"SkillExpUp"` //技能经验加成
  3297. GiftBuyTimes []string `csv:"GiftBuyTimes"` //每日禮包购买次数+1
  3298. HangupDuration int32 `csv:"HangupDuration"` //离线挂机時長上限(秒)
  3299. SignInRewardUp int32 `csv:"SignInRewardUp"` //签到翻倍
  3300. WorldBossCount int32 `csv:"WorldBossCount"` //世界BOSS购买次数
  3301. DevilsUp int32 `csv:"DevilsUp"` //挂机魔魂值加成
  3302. TransportRobbery int32 `csv:"TransportRobbery"` //飞艇被抢劫掉落减少至
  3303. }
  3304. func VipCfgLoad(path string) {
  3305. cfg := []*VipCfg{}
  3306. VipCfgLoader = map[int32]*VipCfg{}
  3307. loadCsvCfg(path+"VipCfg.csv", &cfg)
  3308. for _, row := range cfg {
  3309. VipCfgLoader[row.Lv] = row
  3310. }
  3311. }
  3312. var WishCfgLoader map[int32]*WishCfg
  3313. type WishCfg struct {
  3314. Id int32 `csv:"Id"` //ID
  3315. Name string `csv:"Name"` //名字
  3316. BoxType int32 `csv:"BoxType"` //宝箱类型
  3317. WishReward []string `csv:"WishReward"` //许愿奖励(随机/权重:道具:数量/自选/道具:数量)
  3318. AccelerateCost []string `csv:"AccelerateCost"` //加速消耗
  3319. LuckyProbability int32 `csv:"LuckyProbability"` //暴击概率(百分比)
  3320. LuckyReward []string `csv:"LuckyReward"` //暴击奖励(概率:道具:数量)
  3321. WishCountdown int32 `csv:"WishCountdown"` //倒计時(秒)
  3322. }
  3323. func WishCfgLoad(path string) {
  3324. cfg := []*WishCfg{}
  3325. WishCfgLoader = map[int32]*WishCfg{}
  3326. loadCsvCfg(path+"WishCfg.csv", &cfg)
  3327. for _, row := range cfg {
  3328. WishCfgLoader[row.Id] = row
  3329. }
  3330. }
  3331. var WorldBossCfgLoader map[int32]*WorldBossCfg
  3332. type WorldBossCfg struct {
  3333. Id int32 `csv:"Id"` //全局配置id
  3334. SummonId int32 `csv:"SummonId"` //召唤物id
  3335. StartDay int32 `csv:"StartDay"` //开服時间
  3336. Tiaozhantiaojian int32 `csv:"Tiaozhantiaojian"` //解锁条件
  3337. SummonTime []string `csv:"SummonTime"` //召唤時间
  3338. LifeTime int32 `csv:"LifeTime"` //存活時间
  3339. FirstRewardServer []string `csv:"FirstRewardServer"` //1等奖
  3340. SecondRewardServer []string `csv:"SecondRewardServer"` //2等奖
  3341. ThreeRewardServer []string `csv:"ThreeRewardServer"` //3等奖奖
  3342. Roll []string `csv:"Roll"` //中将概率
  3343. Roll2 []string `csv:"Roll2"` //衰减概率
  3344. AutoHp []string `csv:"AutoHp"` //系统掉血
  3345. }
  3346. func WorldBossCfgLoad(path string) {
  3347. cfg := []*WorldBossCfg{}
  3348. WorldBossCfgLoader = map[int32]*WorldBossCfg{}
  3349. loadCsvCfg(path+"WorldBossCfg.csv", &cfg)
  3350. for _, row := range cfg {
  3351. WorldBossCfgLoader[row.Id] = row
  3352. }
  3353. }
  3354. var WorldBossChangePlayCfgLoader map[int32]*WorldBossChangePlayCfg
  3355. type WorldBossChangePlayCfg struct {
  3356. Id int32 `csv:"Id"` //全局配置id
  3357. SummonId int32 `csv:"SummonId"` //召唤物id
  3358. Consume []string `csv:"Consume"` //消耗资源
  3359. StartTime string `csv:"StartTime"` //活动开始時间
  3360. EndTime string `csv:"EndTime"` //活动结束時间
  3361. SummonTime []string `csv:"SummonTime"` //召唤時间
  3362. LifeTime int32 `csv:"LifeTime"` //存活時间
  3363. ChangePlayId []string `csv:"ChangePlayId"` //变身
  3364. FirstRewardServer []string `csv:"FirstRewardServer"` //1等奖
  3365. SecondRewardServer []string `csv:"SecondRewardServer"` //2等奖
  3366. ThreeRewardServer []string `csv:"ThreeRewardServer"` //3等奖奖
  3367. Roll []string `csv:"Roll"` //中将概率
  3368. Roll2 []string `csv:"Roll2"` //衰减概率
  3369. AutoHp []string `csv:"AutoHp"` //系统掉血
  3370. HpSegment int32 `csv:"HpSegment"` //血条段数
  3371. }
  3372. func WorldBossChangePlayCfgLoad(path string) {
  3373. cfg := []*WorldBossChangePlayCfg{}
  3374. WorldBossChangePlayCfgLoader = map[int32]*WorldBossChangePlayCfg{}
  3375. loadCsvCfg(path+"WorldBossChangePlayCfg.csv", &cfg)
  3376. for _, row := range cfg {
  3377. WorldBossChangePlayCfgLoader[row.Id] = row
  3378. }
  3379. }
  3380. var HardLevelCfgLoader map[int32]*HardLevelCfg
  3381. type HardLevelCfg struct {
  3382. Id int32 `csv:"Id"` //唯一id
  3383. LevelId int32 `csv:"LevelId"` //场景id
  3384. MapId int32 `csv:"MapId"` //地图id
  3385. BaseExp int32 `csv:"BaseExp"` //通关base经验
  3386. JobExp int32 `csv:"JobExp"` //通关job经验
  3387. Zeny int32 `csv:"Zeny"` //通关银币
  3388. Gold int32 `csv:"Gold"` //通关金币
  3389. Parter int32 `csv:"Parter"` //通关伙伴经验
  3390. Cash int32 `csv:"Cash"` //活动通关现金
  3391. FreeInvest int32 `csv:"FreeInvest"` //通关免费充值额度
  3392. }
  3393. func HardLevelCfgLoad(path string) {
  3394. cfg := []*HardLevelCfg{}
  3395. HardLevelCfgLoader = map[int32]*HardLevelCfg{}
  3396. loadCsvCfg(path+"HardLevelCfg.csv", &cfg)
  3397. for _, row := range cfg {
  3398. HardLevelCfgLoader[row.Id] = row
  3399. }
  3400. }
  3401. var YuanHangTrialRankCfgLoader map[int32]*YuanHangTrialRankCfg
  3402. type YuanHangTrialRankCfg struct {
  3403. Id int32 `csv:"Id"` //序列ID
  3404. YuanHangTrialRankCondition []string `csv:"YuanHangTrialRankCondition"` //赛季条件
  3405. YuanHangTrialRankReward []string `csv:"YuanHangTrialRankReward"` //奖励
  3406. YuanHangTrialRankPeriod []string `csv:"YuanHangTrialRankPeriod"` //赛季周期(天)
  3407. }
  3408. func YuanHangTrialRankCfgLoad(path string) {
  3409. cfg := []*YuanHangTrialRankCfg{}
  3410. YuanHangTrialRankCfgLoader = map[int32]*YuanHangTrialRankCfg{}
  3411. loadCsvCfg(path+"YuanHangTrialRankCfg.csv", &cfg)
  3412. for _, row := range cfg {
  3413. YuanHangTrialRankCfgLoader[row.Id] = row
  3414. }
  3415. }
  3416. var CdkCfgLoader map[int32]*CdkCfg
  3417. type CdkCfg struct {
  3418. Id int32 `csv:"Id"` //禮包Id
  3419. Name string `csv:"Name"` //cdk名字
  3420. //Type int32 `csv:"Type"` //类型 1 全服 ,2 个人
  3421. Cdk string `csv:"Cdk"` //兑换码
  3422. Reward []string `csv:"Reward"` //道具
  3423. //UserId []string `csv:"UserId"` //个人uid
  3424. StartTime string `csv:"StartTime"` //开始時间
  3425. EndTime string `csv:"EndTime"` //结束時间
  3426. Total int32 `csv:"Total"` //总数
  3427. }
  3428. func CdkCfgLoad(path string) {
  3429. cfg := []*CdkCfg{}
  3430. CdkCfgLoader = map[int32]*CdkCfg{}
  3431. loadCsvCfg(path+"CdkCfg.csv", &cfg)
  3432. for _, row := range cfg {
  3433. CdkCfgLoader[row.Id] = row
  3434. }
  3435. //util.InfoF("cdk:%v", CdkCfgLoader)
  3436. }