Class TileOccupancyChangedEvent
- Namespace
- MoonBark.GridPlacement.Core.Events
- Assembly
- MoonBark.GridPlacement.Core.dll
Event raised when tile occupancy changes.
public class TileOccupancyChangedEvent : ServiceEvent
- Inheritance
-
TileOccupancyChangedEvent
- Inherited Members
Constructors
TileOccupancyChangedEvent(object, CoreVector2I, bool, long?)
public TileOccupancyChangedEvent(object source, CoreVector2I gridPosition, bool isOccupied, long? entityId = null)
Parameters
Properties
EntityId
The entity that caused the change (if applicable).
public long? EntityId { get; }
Property Value
- long?
GridPosition
The grid position that changed.
public CoreVector2I GridPosition { get; }
Property Value
- CoreVector2I
IsOccupied
The new occupancy status.
public bool IsOccupied { get; }