49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
using Google.Protobuf;
|
|
using Google.Protobuf.WellKnownTypes;
|
|
|
|
|
|
using ServerCore;
|
|
using ServerBase;
|
|
using ServerCommon;
|
|
using ServerCommon.BusinessLogDomain;
|
|
using MetaAssets;
|
|
|
|
|
|
|
|
namespace GameServer;
|
|
|
|
public class UgcNpcRankEntity : EntityBase
|
|
{
|
|
public const int DefaultPageNum = 0;
|
|
public const int DefaultPageSize = 100;
|
|
|
|
public UgcNpcRankEntity() : base(EntityType.UgcNpcRank)
|
|
{
|
|
}
|
|
|
|
public override async Task<Result> onInit()
|
|
{
|
|
// attribute
|
|
addEntityAttribute(new UgcNpcLikeRankAttribute(this));
|
|
addEntityAttribute(new UgcNpcCommunicationRankAttribute(this));
|
|
addEntityAttribute(new UgcNpcQuestRankAttribute(this));
|
|
|
|
// action
|
|
addEntityAction(new UgcNpcLikeRankAction(this));
|
|
addEntityAction(new UgcNpcCommunicationRankAction(this));
|
|
addEntityAction(new UgcNpcQuestRankAction(this));
|
|
addEntityAction(new UgcNpcRankManageAction(this));
|
|
|
|
return await Task.FromResult(new Result());
|
|
}
|
|
|
|
public override string toBasicString()
|
|
{
|
|
return $"{this.getTypeName()}";
|
|
}
|
|
|
|
public override string toSummaryString()
|
|
{
|
|
return $"{this.getTypeName()}";
|
|
}
|
|
} |