123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- // Generate By EToy
- // Don't Edit It!!
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
- /// <summary> Partner </summary>
- public sealed class PartnerTable : ITable
- {
- long ITable.Key => Id;
- /// <summary> 20000+类型*100+品质*10+序号 </summary>
- public int Id { get; private set; } // sc
- public string Name { get; private set; } // c
- /// <summary> 立绘 </summary>
- public string Icon { get; private set; } // c
- /// <summary> 元素系1:火2:雷3:冰4:毒5:风0:无元素 </summary>
- public EElementType Element { get; private set; } // c
- /// <summary> 1:剑 2:锤 3:斧 4:匕首 5:法杖 </summary>
- public int Type { get; private set; } // sc
- /// <summary> 2:绿3:蓝4:紫6:橙7:红9:彩11:鎏金12:炫彩 </summary>
- public EQualityLevel Quality { get; private set; } // sc
- /// <summary> 0:无1:活动 </summary>
- public int Label { get; private set; } // c
- /// <summary> 基础属性属性名称1,属性值,属性名称2,属性值…… </summary>
- public int[] Base_attr { get; private set; } // sc
- /// <summary> 技能id,星级条件 </summary>
- public int[] Skill { get; private set; } // sc
- /// <summary> 拥有属性属性名称1,属性值,属性名称2,属性值…… </summary>
- public int[] Own_attr { get; private set; } // sc
- /// <summary> 模型 </summary>
- public string Model { get; private set; } // c
- /// <summary> 尺寸 </summary>
- public float Size { get; private set; } // c
- /// <summary> 圣兵小图标 </summary>
- public string Icon2 { get; private set; } // c
- /// <summary> 技能图标 </summary>
- public string SkillIcon { get; private set; } // c
- /// <summary> 圣兵立绘特殊展示 </summary>
- public string Picture2 { get; private set; } // c
- void ISerializable.Deserialize(IReader reader)
- {
- Id = reader.ReadInt();
- Name = reader.ReadString();
- Icon = reader.ReadString();
- Element = (EElementType)reader.ReadInt();
- Type = reader.ReadInt();
- Quality = (EQualityLevel)reader.ReadInt();
- Label = reader.ReadInt();
- Base_attr = reader.ReadEnumerable<int[]>();
- Skill = reader.ReadEnumerable<int[]>();
- Own_attr = reader.ReadEnumerable<int[]>();
- Model = reader.ReadString();
- Size = reader.ReadFloat();
- Icon2 = reader.ReadString();
- SkillIcon = reader.ReadString();
- Picture2 = reader.ReadString();
- }
- void ISerializable.Serialize(IWriter writer)
- {
- writer.Write(Id);
- writer.Write(Name);
- writer.Write(Icon);
- writer.Write((int)Element);
- writer.Write(Type);
- writer.Write((int)Quality);
- writer.Write(Label);
- writer.Write(Base_attr);
- writer.Write(Skill);
- writer.Write(Own_attr);
- writer.Write(Model);
- writer.Write(Size);
- writer.Write(Icon2);
- writer.Write(SkillIcon);
- writer.Write(Picture2);
- }
- }
- }
|