mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 00:27:59 +00:00
* Removed obsolete MapManager calls
* More code cleanup
* EnsureComp
* Rerun tests
(cherry picked from commit cf0da11eb7)
23 lines
625 B
C#
23 lines
625 B
C#
using Robust.Shared.Collections;
|
|
using Robust.Shared.Map;
|
|
using Robust.Shared.Map.Components;
|
|
|
|
namespace Content.Server.Spreader;
|
|
|
|
/// <summary>
|
|
/// Raised when trying to spread to neighboring tiles.
|
|
/// If the spread is no longer able to happen you MUST cancel this event!
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public record struct SpreadNeighborsEvent
|
|
{
|
|
public ValueList<(MapGridComponent Grid, TileRef Tile)> NeighborFreeTiles;
|
|
public ValueList<EntityUid> Neighbors;
|
|
|
|
/// <summary>
|
|
/// How many updates allowed are remaining.
|
|
/// Subscribers can handle as they wish.
|
|
/// </summary>
|
|
public int Updates;
|
|
}
|