mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Kill NetworkedMapManager (#3516)
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com> Co-authored-by: Paul <ritter.paul1@googlemail.com>
This commit is contained in:
@@ -159,13 +159,6 @@ internal partial class MapManager
|
||||
/// <inheritdoc />
|
||||
public event EventHandler<TileChangedEventArgs>? TileChanged;
|
||||
|
||||
/// <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.
|
||||
/// </summary>
|
||||
/// <inheritdoc />
|
||||
public event EventHandler<GridChangedEventArgs>? GridChanged;
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool SuppressOnTileChanged { get; set; }
|
||||
|
||||
@@ -208,10 +201,4 @@ internal partial class MapManager
|
||||
EntityManager.StartComponents(gridEnt);
|
||||
return grid;
|
||||
}
|
||||
|
||||
protected internal static void InvokeGridChanged(MapManager mapManager, MapGridComponent mapGrid, IReadOnlyCollection<(Vector2i position, Tile tile)> changedTiles)
|
||||
{
|
||||
mapManager.GridChanged?.Invoke(mapManager, new GridChangedEventArgs(mapGrid, changedTiles));
|
||||
mapManager.EntityManager.EventBus.RaiseLocalEvent(mapGrid.GridEntityId, new GridModifiedEvent(mapGrid, changedTiles), true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user