Table of Contents

Class PlacementApproved

Namespace
MoonBark.GridPlacement.Core.Events
Assembly
MoonBark.GridPlacement.Core.dll

Event raised when a placement has been approved and is ready for ECS entity creation.

public class PlacementApproved : ServiceEvent
Inheritance
PlacementApproved
Inherited Members

Constructors

PlacementApproved(object, CoreVector2I, string?, string?, CoreVector2I[]?)

public PlacementApproved(object source, CoreVector2I position, string? placeableId, string? ownerKey = null, CoreVector2I[]? footprint = null)

Parameters

source object
position CoreVector2I
placeableId string
ownerKey string
footprint CoreVector2I[]

Properties

Footprint

Grid cells occupied by the placement footprint.

public CoreVector2I[]? Footprint { get; }

Property Value

CoreVector2I[]

OwnerKey

Optional owner key for tracking which agent placed it.

public string? OwnerKey { get; }

Property Value

string

PlaceableId

Identifier of the placeable being placed.

public string? PlaceableId { get; }

Property Value

string

Position

Grid position where the placeable will be placed.

public CoreVector2I Position { get; }

Property Value

CoreVector2I