Table of Contents

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

source object
gridPosition CoreVector2I
isOccupied bool
entityId long?

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; }

Property Value

bool