房间创建和进入相关逻辑和协议

This commit is contained in:
2025-08-27 00:04:40 +08:00
parent 7325e268ce
commit f6d85a1e0a
45 changed files with 1246 additions and 729 deletions

View File

@@ -0,0 +1,8 @@
using Fantasy.Entitas;
namespace NB.Map;
public class MapManageComponent: Entity
{
public readonly Dictionary<long, Map> Maps = new();
}

View File

@@ -0,0 +1,8 @@
using Fantasy.Entitas;
namespace NB.Map;
public class MapUnitManageComponent : Entity
{
public readonly Dictionary<long, MapUnit> Units = new();
}

View File

@@ -0,0 +1,11 @@
using Fantasy.Entitas;
namespace NB.Map;
public class RoomManageComponent : Entity
{
public readonly Dictionary<long, MapRoom> Rooms = new();
public readonly PriorityQueue<int, int> FreeIds = new();
public readonly HashSet<int> InUseID = new();
}