提交示例代码
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public sealed class GateUnitFlagComponent : Entity
|
||||
{
|
||||
public long GateUnitId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public sealed class GateUnitManageComponent : Entity
|
||||
{
|
||||
public readonly Dictionary<long, GateUnit> Units = new Dictionary<long, GateUnit>();
|
||||
public readonly Dictionary<string, GateUnit> UnitsByUserName = new Dictionary<string, GateUnit>();
|
||||
}
|
||||
11
聊天系统课程代码/Server/Entity/Gate/Model/GateUnit.cs
Normal file
11
聊天系统课程代码/Server/Entity/Gate/Model/GateUnit.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Fantasy.Entitas;
|
||||
using Fantasy.Network;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public sealed class GateUnit : Entity
|
||||
{
|
||||
public EntityReference<Session> Session;
|
||||
public string UserName { get; set; }
|
||||
public readonly Dictionary<int, long> Routes = new Dictionary<int, long>();
|
||||
}
|
||||
Reference in New Issue
Block a user