提交示例代码

This commit is contained in:
Bob.Song
2026-03-05 11:39:06 +08:00
commit 25958f58c3
2534 changed files with 209593 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
using Fantasy.Entitas;
namespace Fantasy;
public sealed class GateUnitFlagComponent : Entity
{
public long GateUnitId { get; set; }
}

View File

@@ -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>();
}

View 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>();
}