33 lines
780 B
C#
33 lines
780 B
C#
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;
|
|
}
|
|
} |