12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- // Generate By EToy
- // Don't Edit It!!
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
- /// <summary> guildTask </summary>
- public sealed class guildTaskTable : ITable
- {
- long ITable.Key => Id;
- /// <summary> 功能idid*1000+任务等级*100+圣兵品质*10 </summary>
- public int Id { get; private set; }
- /// <summary> 任务名称 </summary>
- public string Name { get; private set; }
- /// <summary> 任务等级 </summary>
- public int Level { get; private set; }
- /// <summary> 任务奖励道具id+数量 </summary>
- public int[] TaskReward { get; private set; }
- /// <summary> 派遣圣兵数量 </summary>
- public int Number { get; private set; }
- /// <summary> 派遣圣兵品质2:绿3:蓝4:紫6:橙7:红9:彩11:鎏金12:炫彩 </summary>
- public int Quality { get; private set; }
- /// <summary> 派遣奖励道具id+数量 </summary>
- public int[] Reward2 { get; private set; }
- /// <summary> 任务完成时间毫秒 </summary>
- public int Time { get; private set; }
- /// <summary> 接取任务权重 </summary>
- public int Odds { get; private set; }
- void ISerializable.Deserialize(IReader reader)
- {
- Id = reader.ReadInt();
- Name = reader.ReadString();
- Level = reader.ReadInt();
- TaskReward = reader.ReadEnumerable<int[]>();
- Number = reader.ReadInt();
- Quality = reader.ReadInt();
- Reward2 = reader.ReadEnumerable<int[]>();
- Time = reader.ReadInt();
- Odds = reader.ReadInt();
- }
- void ISerializable.Serialize(IWriter writer)
- {
- writer.Write(Id);
- writer.Write(Name);
- writer.Write(Level);
- writer.Write(TaskReward);
- writer.Write(Number);
- writer.Write(Quality);
- writer.Write(Reward2);
- writer.Write(Time);
- writer.Write(Odds);
- }
- }
- }
|