초기커밋
This commit is contained in:
33
GameServer/Entity/Party/Helper/PartyExtensions.cs
Normal file
33
GameServer/Entity/Party/Helper/PartyExtensions.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public static class PartyExtensions
|
||||
{
|
||||
public static async Task<Result> joinParty(this Player owner)
|
||||
{
|
||||
var result = new Result();
|
||||
|
||||
// 1. 파티 정보
|
||||
var party_action = owner.getEntityAction<PersonalPartyAction>();
|
||||
NullReferenceCheckHelper.throwIfNull(party_action, () => $"party_action is null !!! - {owner.toBasicString()}");
|
||||
|
||||
result = await party_action.tryLoadParty();
|
||||
if (result.isFail())
|
||||
{
|
||||
Log.getLogger().error(result.toBasicString());
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user