FootprintData
FootprintData
Core footprint data without Godot dependencies. Describes the space occupied by a building or object.
Project: GridPlacement v6.0
Layer: Core
Source: Core/Data/Placement/FootprintData.cs
Namespace: GridBuilding.Core.Data.Placement
Kind: class
Parsing Method: AST-based (Roslyn) - NOT regex
⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.
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.
Returns: List<CoreVector2I>
Parameters:
CoreVector2I gridPositionint rotationbool flipHorizontalbool flipVertical