FootprintData
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
Core footprint data without Godot dependencies. Describes the space occupied by a building or object.
Metadata
Namespace: GridPlacement.Core.Data.Placement
Source File: cs/Core/Data/Placement/FootprintData.cs
Assembly: GridPlacement.Core
Type: class
Properties
Id
Unique identifier for the footprint.
ShapeType
Type of footprint shape.
Size
Size of the footprint in grid units.
Offset
Offset from the origin position.
PolygonPoints
Custom polygon points for complex shapes. Used when ShapeType is Custom.
Radius
Radius for circular shapes. Used when ShapeType is Circle.
CanRotate
Whether the footprint can be rotated.
CanFlip
Whether the footprint can be flipped.
Methods
GetOccupiedPositions
Gets the footprint positions at a given grid position.
Parameters
| Name | Description |
|---|---|
gridPosition | The base grid position |
rotation | Rotation in degrees (0, 90, 180, 270) |
flipHorizontal | Whether to flip horizontally |
flipVertical | Whether to flip vertically |
Returns
List of occupied grid positions