SpreadNeighborsEvent.cs 625 B

12345678910111213141516171819202122
  1. using Robust.Shared.Collections;
  2. using Robust.Shared.Map;
  3. using Robust.Shared.Map.Components;
  4. namespace Content.Server.Spreader;
  5. /// <summary>
  6. /// Raised when trying to spread to neighboring tiles.
  7. /// If the spread is no longer able to happen you MUST cancel this event!
  8. /// </summary>
  9. [ByRefEvent]
  10. public record struct SpreadNeighborsEvent
  11. {
  12. public ValueList<(MapGridComponent Grid, TileRef Tile)> NeighborFreeTiles;
  13. public ValueList<EntityUid> Neighbors;
  14. /// <summary>
  15. /// How many updates allowed are remaining.
  16. /// Subscribers can handle as they wish.
  17. /// </summary>
  18. public int Updates;
  19. }