chat
This commit is contained in:
14
Entity/Gate/GateUnit.cs
Normal file
14
Entity/Gate/GateUnit.cs
Normal 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;
|
||||
}
|
||||
9
Entity/Gate/GateUnitManageComponent.cs
Normal file
9
Entity/Gate/GateUnitManageComponent.cs
Normal 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();
|
||||
}
|
||||
8
Entity/Gate/GateUnitSessionComponent.cs
Normal file
8
Entity/Gate/GateUnitSessionComponent.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class GateUnitSessionComponent : Entity
|
||||
{
|
||||
public long AccountID;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class SessionPlayerComponent : Entity
|
||||
{
|
||||
public bool Kick { get; set; }
|
||||
|
||||
public long AccountID;
|
||||
}
|
||||
Reference in New Issue
Block a user