33 lines
609 B
C#
33 lines
609 B
C#
using Fantasy;
|
|
using Fantasy.Entitas;
|
|
|
|
namespace NB.Chat;
|
|
|
|
public sealed class SocialUnit : Entity
|
|
{
|
|
public long GateRouteId;
|
|
|
|
public RoleSimpleInfo Role;
|
|
|
|
/// <summary>
|
|
/// 当前所在地图
|
|
/// </summary>
|
|
public long MapId;
|
|
|
|
|
|
public readonly Dictionary<long, ChatChannelComponent> Channels = new();
|
|
public readonly Dictionary<int, long> SendTime = new Dictionary<int, long>();
|
|
|
|
|
|
public override void Dispose()
|
|
{
|
|
if (IsDisposed)
|
|
{
|
|
return;
|
|
}
|
|
|
|
GateRouteId = 0;
|
|
Role = null;
|
|
base.Dispose();
|
|
}
|
|
} |