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:
@@ -157,30 +157,6 @@ namespace Robust.Shared.Map
|
||||
[Obsolete("Subscribe to TileChangedEvent on the event bus.")]
|
||||
event EventHandler<TileChangedEventArgs> TileChanged;
|
||||
|
||||
[Obsolete("Subscribe to GridStartupEvent on the event bus.")]
|
||||
event GridEventHandler OnGridCreated;
|
||||
|
||||
[Obsolete("Subscribe to GridRemovalEvent on the event bus.")]
|
||||
event GridEventHandler OnGridRemoved;
|
||||
|
||||
/// <summary>
|
||||
/// A Grid was modified.
|
||||
/// </summary>
|
||||
[Obsolete("Subscribe to GridModifiedEvent on the event bus.")]
|
||||
event EventHandler<GridChangedEventArgs> GridChanged;
|
||||
|
||||
/// <summary>
|
||||
/// A new map has been created.
|
||||
/// </summary>
|
||||
[Obsolete("Subscribe to MapChangedEvent on the event bus, and check if Created is true.")]
|
||||
event EventHandler<MapEventArgs> MapCreated;
|
||||
|
||||
/// <summary>
|
||||
/// An existing map has been destroyed.
|
||||
/// </summary>
|
||||
[Obsolete("Subscribe to MapChangedEvent on the event bus, and check if Destroyed is true.")]
|
||||
event EventHandler<MapEventArgs> MapDestroyed;
|
||||
|
||||
bool HasMapEntity(MapId mapId);
|
||||
|
||||
bool IsGrid(EntityUid uid);
|
||||
|
||||
@@ -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