초기커밋
This commit is contained in:
38
GameServer/Contents/Shop/MySoldProduct.cs
Normal file
38
GameServer/Contents/Shop/MySoldProduct.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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()}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user