This commit is contained in:
2025-08-07 09:16:23 +08:00
parent c97bd0ab55
commit 70bfe43a80
34 changed files with 532 additions and 135 deletions

14
Entity/Gate/GateUnit.cs Normal file
View File

@@ -0,0 +1,14 @@
using Fantasy.Entitas;
using Fantasy.Network;
namespace NB.Gate;
public class GateUnit : Entity
{
public bool Kick;
public long AccountID;
public int Region;
public long GameSceneRouteId;
public long ChatSceneRouteId;
public EntityReference<Session> Session;
}

View File

@@ -0,0 +1,9 @@
using Fantasy.Entitas;
using Fantasy.Network;
namespace NB.Gate;
public class GateUnitManageComponent : Entity
{
public readonly Dictionary<long, GateUnit> Units = new();
}

View File

@@ -0,0 +1,8 @@
using Fantasy.Entitas;
namespace NB.Gate;
public sealed class GateUnitSessionComponent : Entity
{
public long AccountID;
}

View File

@@ -1,10 +0,0 @@
using Fantasy.Entitas;
namespace NB.Gate;
public sealed class SessionPlayerComponent : Entity
{
public bool Kick { get; set; }
public long AccountID;
}