Remove GridModifiedEvent (#21291)
This commit is contained in:
@@ -24,7 +24,6 @@ namespace Content.Shared.SubFloor
|
|||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
|
|
||||||
SubscribeLocalEvent<GridModifiedEvent>(OnGridChanged);
|
|
||||||
SubscribeLocalEvent<TileChangedEvent>(OnTileChanged);
|
SubscribeLocalEvent<TileChangedEvent>(OnTileChanged);
|
||||||
SubscribeLocalEvent<SubFloorHideComponent, ComponentStartup>(OnSubFloorStarted);
|
SubscribeLocalEvent<SubFloorHideComponent, ComponentStartup>(OnSubFloorStarted);
|
||||||
SubscribeLocalEvent<SubFloorHideComponent, ComponentShutdown>(OnSubFloorTerminating);
|
SubscribeLocalEvent<SubFloorHideComponent, ComponentShutdown>(OnSubFloorTerminating);
|
||||||
@@ -97,14 +96,6 @@ namespace Content.Shared.SubFloor
|
|||||||
UpdateTile(MapManager.GetGrid(args.NewTile.GridUid), args.NewTile.GridIndices);
|
UpdateTile(MapManager.GetGrid(args.NewTile.GridUid), args.NewTile.GridIndices);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnGridChanged(GridModifiedEvent args)
|
|
||||||
{
|
|
||||||
foreach (var modified in args.Modified)
|
|
||||||
{
|
|
||||||
UpdateTile(args.Grid, modified.position);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update whether a given entity is currently covered by a floor tile.
|
/// Update whether a given entity is currently covered by a floor tile.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user