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