房间创建和进入相关逻辑和协议
This commit is contained in:
8
Entity/Map/Component/MapManageComponent.cs
Normal file
8
Entity/Map/Component/MapManageComponent.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace NB.Map;
|
||||
|
||||
public class MapManageComponent: Entity
|
||||
{
|
||||
public readonly Dictionary<long, Map> Maps = new();
|
||||
}
|
||||
8
Entity/Map/Component/MapUnitManageComponent.cs
Normal file
8
Entity/Map/Component/MapUnitManageComponent.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace NB.Map;
|
||||
|
||||
public class MapUnitManageComponent : Entity
|
||||
{
|
||||
public readonly Dictionary<long, MapUnit> Units = new();
|
||||
}
|
||||
11
Entity/Map/Component/RoomManageComponent.cs
Normal file
11
Entity/Map/Component/RoomManageComponent.cs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user