초기커밋
This commit is contained in:
53
GameServer/Contents/Party/PersonalParty.cs
Normal file
53
GameServer/Contents/Party/PersonalParty.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
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 PersonalParty : EntityBase, IDisposable
|
||||
{
|
||||
private PARTY_GUID m_party_guid { get; set; }
|
||||
public PersonalParty(Player parent, string party_guid) : base(EntityType.PersonalParty, parent)
|
||||
{
|
||||
m_party_guid = party_guid;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
public override async Task<Result> onInit()
|
||||
{
|
||||
// attribute
|
||||
|
||||
// action
|
||||
addEntityAction(new PartyInviteAction(this));
|
||||
|
||||
return await Task.FromResult(new Result());
|
||||
}
|
||||
|
||||
public override string toBasicString()
|
||||
{
|
||||
return $"{this.getTypeName()} - {getRootParent().toBasicString()}";
|
||||
}
|
||||
|
||||
public override string toSummaryString()
|
||||
{
|
||||
return $"{this.getTypeName()} - {getRootParent().toBasicString()}";
|
||||
}
|
||||
|
||||
public void setPartyGuid(string party_guid) => m_party_guid = party_guid;
|
||||
public string getPartyGuid() => m_party_guid;
|
||||
}
|
||||
Reference in New Issue
Block a user