PlacementOccupancySourceFactory
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.
Declaration
Summary
Creates the occupancy source used by placement validation in Godot hosts.
Metadata
Namespace: GridPlacement.Godot.Addons.GridPlacement.Services.Placement
Source File: cs/Godot/addons/GridPlacement/Services/Placement/PlacementOccupancySourceFactory.cs
Assembly: GridPlacement.Godot
Type: class
Constructors
PlacementOccupancySourceFactory
Initializes a new instance of the PlacementOccupancySourceFactory class.
Parameters
| Name | Description |
|---|---|
mode | The preferred occupancy mode. |
Methods
Create
Creates the effective occupancy source for the current host configuration.
Parameters
| Name | Description |
|---|---|
tileMapLayer | The TileMapLayer to query directly when direct-grid mode is enabled. |
ecsOccupancy | The optional ECS occupancy implementation. |
gridSize | Optional fixed grid size for bounds checks. |
Returns
The selected occupancy source, or null if none are available.