协议新增
This commit is contained in:
@@ -266,6 +266,38 @@ namespace Fantasy
|
||||
public int Abrasion { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 商店物品信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class ShopItemInfo : AMessage
|
||||
{
|
||||
public static ShopItemInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<ShopItemInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ConfigId = default;
|
||||
Price = default;
|
||||
Currency = default;
|
||||
Sort = default;
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<ShopItemInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public uint ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint Price { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public uint Currency { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public uint Sort { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public uint Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// fish信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
|
||||
Reference in New Issue
Block a user