12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- // 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
- 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> 1:白2:绿3:蓝4:紫5:橙6:红7:彩 </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; }
- 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();
- }
- 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);
- }
- }
- }
|