123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- // Generate By EToy
- // Don't Edit It!!
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
- /// <summary> Epigraph </summary>
- public sealed class EpigraphTable : ITable
- {
- long ITable.Key => Id;
- /// <summary> 铭文ID品质*100000+类型*10+序号 </summary>
- public int Id { get; private set; }
- /// <summary> 图标 </summary>
- public string Icon { get; private set; } // c
- /// <summary> 名字 </summary>
- public string Name { get; private set; } // c
- /// <summary> 描述 </summary>
- public string Desc { get; private set; } // c
- /// <summary> 2:绿3:蓝4:紫6:橙7:红8:粉9:彩11:鎏金12:炫彩 </summary>
- public EQualityLevel Quality { get; private set; } // c
- /// <summary> 元素系1:火2:雷3:冰4:毒5:风0:无元素 </summary>
- public EElementType Element { get; private set; }
- /// <summary> 效果参数 </summary>
- public int[] EffectArgs { get; private set; }
- /// <summary> 铭文小图标 </summary>
- public string Icon2 { get; private set; } // c
- /// <summary> 技能id,星级条件 </summary>
- public int[] Skill { get; private set; } // sc
- /// <summary> 拥有属性属性名称1,属性值,属性名称2,属性值…… </summary>
- public int[] Own_attr { get; private set; } // sc
- void ISerializable.Deserialize(IReader reader)
- {
- Id = reader.ReadInt();
- Icon = reader.ReadString();
- Name = reader.ReadString();
- Desc = reader.ReadString();
- Quality = (EQualityLevel)reader.ReadInt();
- Element = (EElementType)reader.ReadInt();
- EffectArgs = reader.ReadEnumerable<int[]>();
- Icon2 = reader.ReadString();
- Skill = reader.ReadEnumerable<int[]>();
- Own_attr = reader.ReadEnumerable<int[]>();
- }
- void ISerializable.Serialize(IWriter writer)
- {
- writer.Write(Id);
- writer.Write(Icon);
- writer.Write(Name);
- writer.Write(Desc);
- writer.Write((int)Quality);
- writer.Write((int)Element);
- writer.Write(EffectArgs);
- writer.Write(Icon2);
- writer.Write(Skill);
- writer.Write(Own_attr);
- }
- }
- }
|