57 lines
1.4 KiB
C#
57 lines
1.4 KiB
C#
using Google.Protobuf;
|
|
using Google.Protobuf.WellKnownTypes;
|
|
|
|
|
|
using ServerCore;
|
|
using ServerBase;
|
|
using ServerCommon;
|
|
using ServerCommon.BusinessLogDomain;
|
|
using MetaAssets;
|
|
|
|
|
|
namespace GameServer;
|
|
|
|
public class CaliumStorageEntity : EntityBase, IWithLogActor
|
|
{
|
|
public CaliumStorageEntity() : base(EntityType.CaliumConverter)
|
|
{}
|
|
|
|
public override async Task<Result> onInit()
|
|
{
|
|
// attribute
|
|
addEntityAttribute(new CaliumStorageAttribute(this));
|
|
|
|
// action
|
|
addEntityAction(new CaliumStorageAction(this));
|
|
addEntityAction(new CaliumContentAction(this));
|
|
addEntityAction(new CaliumEventAction(this));
|
|
addEntityAction(new CaliumWeb3Action(this));
|
|
|
|
return await base.onInit();
|
|
}
|
|
|
|
public override string toBasicString()
|
|
{
|
|
return $"{this.getTypeName()}";
|
|
}
|
|
|
|
public override string toSummaryString()
|
|
{
|
|
return $"{this.getTypeName()}";
|
|
}
|
|
|
|
public virtual ILogActor toLogActor()
|
|
{
|
|
var server_logic = ServerLogicApp.getServerLogicApp();
|
|
var log_info = new CaliumActorLog();
|
|
|
|
log_info.initLogInfo(
|
|
// 서버 정보
|
|
server_logic.getServerConfig().getRegionId()
|
|
, server_logic.getServerConfig().getWorldId()
|
|
, server_logic.getServerType().toServerType()
|
|
);
|
|
|
|
return log_info;
|
|
}
|
|
} |