38 lines
818 B
C#
38 lines
818 B
C#
using Google.Protobuf;
|
|
using Google.Protobuf.WellKnownTypes;
|
|
|
|
|
|
using ServerCore;
|
|
using ServerBase;
|
|
using ServerCommon;
|
|
using ServerCommon.BusinessLogDomain;
|
|
using MetaAssets;
|
|
|
|
|
|
|
|
namespace GameServer;
|
|
|
|
public class MySoldProduct : EntityBase
|
|
{
|
|
public MySoldProduct(Player parent) : base(EntityType.ShopSoldProduct, parent)
|
|
{
|
|
onInit().GetAwaiter().GetResult();
|
|
}
|
|
|
|
public sealed override async Task<Result> onInit()
|
|
{
|
|
addEntityAction(new ShopSoldProductAction(this));
|
|
|
|
return await base.onInit();
|
|
}
|
|
|
|
public override string toBasicString()
|
|
{
|
|
return $"{this.getTypeName()} - {getRootParent().toBasicString()}";
|
|
}
|
|
|
|
public override string toSummaryString()
|
|
{
|
|
return $"{this.getTypeName()} - {getRootParent().toBasicString()}";
|
|
}
|
|
} |