mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Remove obsolete map event handlers (#3440)
This commit is contained in:
@@ -77,7 +77,6 @@ internal partial class MapManager
|
||||
var xform = EntityManager.GetComponent<TransformComponent>(gridComponent.Owner);
|
||||
|
||||
Logger.InfoS("map", $"Binding grid {mapGrid.GridEntityId} to entity {gridComponent.Owner}");
|
||||
OnGridCreated?.Invoke(xform.MapID, mapGrid.GridEntityId);
|
||||
}
|
||||
|
||||
public GridEnumerator GetAllGridsEnumerator()
|
||||
@@ -193,17 +192,11 @@ internal partial class MapManager
|
||||
_grids.Remove(grid.GridEntityId);
|
||||
|
||||
Logger.DebugS("map", $"Deleted grid {grid.GridEntityId}");
|
||||
|
||||
// TODO: Remove this trash
|
||||
OnGridRemoved?.Invoke(mapId, grid.GridEntityId);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public event EventHandler<TileChangedEventArgs>? TileChanged;
|
||||
|
||||
public event GridEventHandler? OnGridCreated;
|
||||
public event GridEventHandler? OnGridRemoved;
|
||||
|
||||
/// <summary>
|
||||
/// Should the OnTileChanged event be suppressed? This is useful for initially loading the map
|
||||
/// so that you don't spam an event for each of the million station tiles.
|
||||
|
||||
Reference in New Issue
Block a user