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