37 lines
948 B
C#
37 lines
948 B
C#
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
|
|
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
|
|
|
|
using Framework.Dynamic;
|
|
using Game.Entities;
|
|
|
|
namespace Game.Groups
|
|
{
|
|
public class GroupReference : Reference<Group, Player>
|
|
{
|
|
public GroupReference()
|
|
{
|
|
iSubGroup = 0;
|
|
}
|
|
|
|
public void Dispose() { Unlink(); }
|
|
|
|
public override void TargetObjectBuildLink()
|
|
{
|
|
GetTarget().LinkMember(this);
|
|
}
|
|
|
|
public override void TargetObjectDestroyLink()
|
|
{
|
|
GetTarget()?.DelinkMember(GetSource().GetGUID());
|
|
}
|
|
|
|
public byte GetSubGroup() { return iSubGroup; }
|
|
|
|
public void SetSubGroup(byte pSubGroup) { iSubGroup = pSubGroup; }
|
|
|
|
byte iSubGroup;
|
|
}
|
|
|
|
public class GroupRefManager : RefManager<GroupReference> { }
|
|
}
|