초기커밋
This commit is contained in:
73
GameServer/Entity/Party/GlobalPartyDetail.cs
Normal file
73
GameServer/Entity/Party/GlobalPartyDetail.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
using Nettention.Proud;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
using PARTY_GUID = System.String;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class GlobalPartyDetail : EntityBase, IWithLogActor
|
||||
{
|
||||
public PARTY_GUID PartyGuid { get; }
|
||||
|
||||
public GlobalPartyDetail(GlobalParty parent, string party_guid)
|
||||
: base(EntityType.GlobalPartyDetail, parent)
|
||||
{
|
||||
PartyGuid = party_guid;
|
||||
}
|
||||
|
||||
public override async Task<Result> onInit()
|
||||
{
|
||||
// attribute
|
||||
addEntityAttribute(new PartyAttribute(this, GameServerApp.getServerLogic().getProudNetListener().getNetServer()!));
|
||||
addEntityAttribute(new PartyMemberAttribute(this));
|
||||
addEntityAttribute(new PartyServerAttribute(this));
|
||||
addEntityAttribute(new PartyInstanceAttribute(this));
|
||||
addEntityAttribute(new PartyInvitePartySendsAttribute(this));
|
||||
|
||||
// action
|
||||
addEntityAction(new GlobalPartyDetailAction(this));
|
||||
addEntityAction(new GlobalPartyDetailInfoAction(this));
|
||||
addEntityAction(new GlobalPartyDetailMemberAction(this));
|
||||
addEntityAction(new GlobalPartyDetailServerAction(this));
|
||||
addEntityAction(new GlobalPartyDetailInstanceAction(this));
|
||||
addEntityAction(new GlobalPartyInvitePartySendAction(this));
|
||||
|
||||
return await base.onInit();
|
||||
}
|
||||
|
||||
public override string toBasicString()
|
||||
{
|
||||
return $"{this.getTypeName()} - {getRootParent()?.toBasicString()}";
|
||||
}
|
||||
|
||||
public override string toSummaryString()
|
||||
{
|
||||
return $"{this.getTypeName()} - {getRootParent()?.toBasicString()}";
|
||||
}
|
||||
|
||||
public virtual ILogActor toLogActor()
|
||||
{
|
||||
var server_logic = ServerLogicApp.getServerLogicApp();
|
||||
|
||||
var log_info = new GlobalPartyActorLog();
|
||||
if (server_logic == null)
|
||||
return log_info;
|
||||
|
||||
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