Files
crystall-punk-14/Content.Server/Spreader/SpreadNeighborsEvent.cs

23 lines
625 B
C#
Raw Permalink Normal View History

2023-04-10 15:37:03 +10:00
using Robust.Shared.Collections;
using Robust.Shared.Map;
2023-04-10 15:37:03 +10:00
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;
2023-04-10 15:37:03 +10:00
public ValueList<EntityUid> Neighbors;
/// <summary>
/// How many updates allowed are remaining.
/// Subscribers can handle as they wish.
/// </summary>
public int Updates;
}