Files
2025-05-01 07:20:41 +09:00

50 lines
1.0 KiB
C#

using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using ServerCore;
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
using MetaAssets;
using PARTY_GUID = System.String;
namespace GameServer;
public class GlobalParty : EntityBase
{
public GlobalParty() : base(EntityType.GlobalParty)
{
}
public override async Task<Result> onInit()
{
// action
addEntityAction(new GlobalPartyAction(this));
return await base.onInit();
}
public override string toBasicString()
{
return $"{this.getTypeName()}";
}
public override string toSummaryString()
{
return $"{this.getTypeName()}";
}
public GlobalPartyDetail? getParty(PARTY_GUID party_guid)
{
var action = getEntityAction<GlobalPartyAction>();
NullReferenceCheckHelper.throwIfNull(action, () => $"GlobalPartyAction is null !! - party_guid:{party_guid}");
var party = action.getGlobalPartyDetail(party_guid);
return party;
}
}