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