using System.Collections.Generic; public partial class MonthlyCardDesc { public Dictionary buffer = new(); } public static class MonthlyCardBuffId { public const string AddSweepTimes = "addSweepTimes"; // public const string ExpGetUp = "expGetUp";// public const string RwdBattleCondUp = "rwdBattleCondUp"; public const string GoldGetUp = "GoldGetUp";// public const string PowerLimitUp = "powerLimitUp";// public const string AdBuyPowerTimes = "adBuyPowerTimes";// public const string LuckPropUp = "luckPropUp"; } public partial class MonthlyCardDescMgr { public override void ReadComplete() { var descList = Instance.ItemTable; if (descList == null) { return; } foreach (MonthlyCardDesc desc in descList.Values) { desc.buffer[MonthlyCardBuffId.AddSweepTimes] = desc.addSweepTimes; desc.buffer[MonthlyCardBuffId.ExpGetUp] = desc.expGetUp; //desc.buffer[MonthlyCardBuffId.RwdBattleCondUp] = desc.rwdBattleCondUp; desc.buffer[MonthlyCardBuffId.GoldGetUp] = desc.GoldGetUp; desc.buffer[MonthlyCardBuffId.PowerLimitUp] = desc.powerLimitUp; desc.buffer[MonthlyCardBuffId.AdBuyPowerTimes] = desc.adBuyPowerTimes; desc.buffer[MonthlyCardBuffId.LuckPropUp] = desc.luckPropUp; } } }