mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
ECS grid methods and map partials (#3441)
This commit is contained in:
@@ -151,6 +151,8 @@ internal partial class MapManager
|
||||
|
||||
public virtual void DeleteGrid(EntityUid euid)
|
||||
{
|
||||
_grids.Remove(euid);
|
||||
|
||||
#if DEBUG
|
||||
DebugTools.Assert(_dbgGuardRunning);
|
||||
#endif
|
||||
@@ -182,18 +184,6 @@ internal partial class MapManager
|
||||
EntityManager.DeleteEntity(entityId);
|
||||
}
|
||||
|
||||
public void TrueGridDelete(MapGrid grid)
|
||||
{
|
||||
grid.Deleting = true;
|
||||
var xform = EntityManager.GetComponent<TransformComponent>(grid.GridEntityId);
|
||||
|
||||
var mapId = xform.MapID;
|
||||
|
||||
_grids.Remove(grid.GridEntityId);
|
||||
|
||||
Logger.DebugS("map", $"Deleted grid {grid.GridEntityId}");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public event EventHandler<TileChangedEventArgs>? TileChanged;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user