TargetingConfiguration
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
Configuration settings for targeting system. Provides centralized configuration for grid positioning, targeting behavior, and visual feedback. Canonical name: TargetingConfiguration (formerly GridTargetingSettings/GridTargetingConfiguration).
Metadata
Namespace: GridPlacement.Core.Configuration
Source File: cs/Core/Configuration/TargetingConfiguration.cs
Assembly: GridPlacement.Core
Type: class
Implements
IConfigurationIGridConfiguration
Properties
GridSize
Size of the grid in cells.
CellSize
Size of each grid cell in world units.
CellSize2D
Size of each grid cell in world units (CoreVector2 version).
Origin
Origin point of the grid in world coordinates.
IsIsometric
Whether the grid uses isometric coordinates.
WrapsEdges
Whether the grid wraps around edges.
GridRotation
Grid rotation angle in degrees.
IsEnabled
Whether the grid is enabled.
IsValid
Configuration validity.
MaxTargetingRange
Maximum targeting range in grid units. Also known as MaxTilesDistance in older configs.
MaxTilesDistance
MinTargetingRange
Minimum targeting range in grid units.
RequiresLineOfSight
Whether targeting requires line of sight.
BlockingLayers
Layers that block targeting.
TargetableLayers
Layers that can be targeted.
AllowDiagonalMovement
Whether diagonal movement is allowed.
EnableDiagonalMovement
LimitToAdjacentTiles
Whether movement should be limited to adjacent tiles only.
SnapToGrid
Whether to snap to grid when targeting.
SnapTolerance
Grid snapping tolerance in world units.
HeuristicWeight
Gets or sets the heuristic weight used by pathfinding.
MaxPathLength
Gets or sets the maximum path length allowed during pathfinding.
GridLineColor
CoreColor of the grid lines.
ValidTargetColor
CoreColor of valid targeting indicators.
InvalidTargetColor
CoreColor of invalid targeting indicators.
CursorColor
CoreColor of the targeting cursor.
GridLineWidth
Width of grid lines.
ShowGridLines
Whether to show grid lines.
ShowCellCoordinates
Whether to show cell coordinates.
CoordinateFontSize
Font size for cell coordinates.
EnableAnimations
Whether to enable targeting animations.
AnimationSpeed
Animation speed multiplier.
CursorAnimationDuration
Cursor animation duration in seconds.
TargetAnimationDuration
Target indicator animation duration in seconds.
UseEasing
Whether to use easing for animations.
MaxCellsPerFrame
Maximum number of cells to update per frame.
UseSpatialPartitioning
Whether to use spatial partitioning for performance.
PartitionCellSize
Size of spatial partition cells.
EnableFrustumCulling
Whether to enable frustum culling.
UpdateInterval
Update interval in seconds for performance optimization.
EnableMouseInput
Whether mouse input should be enabled for targeting.
MouseSensitivity
Mouse sensitivity for targeting.
InvertMouseY
Whether to invert mouse Y axis.
KeyboardSpeed
Keyboard movement speed in cells per second.
EnableGamepad
Whether to enable gamepad targeting.
GamepadSensitivity
Gamepad stick sensitivity.
GamepadDeadZone
Dead zone for gamepad input.
ShowDebugInfo
Whether to show debug information.
ShowPerformanceMetrics
Whether to show performance metrics.
ShowCellBoundaries
Whether to show cell boundaries.
LogTargetingEvents
Whether to log targeting events.
DebugFontSize
Debug overlay font size.
Methods
Validate
Validates the targeting configuration.
Returns
Validation result.
Clone
Creates a copy of this configuration.
Returns
Copy of the configuration.
WorldToGrid
Converts world coordinates to grid coordinates.
Parameters
| Name | Description |
|---|---|
worldPosition | World position. |
Returns
Grid coordinates.
GridToWorld
Converts grid coordinates to world coordinates.
Parameters
| Name | Description |
|---|---|
gridPosition | Grid position. |
Returns
World coordinates.
IsValidGridPosition
Checks if a grid position is valid.
Parameters
| Name | Description |
|---|---|
gridPosition | Grid position to check. |
Returns
True if position is valid.
GetNeighbors
Gets neighboring grid positions.
Parameters
| Name | Description |
|---|---|
gridPosition | Center position. |
includeDiagonal | Whether to include diagonal neighbors. |
Returns
List of neighboring positions.
GetDistance
Gets the distance between two grid positions.
Parameters
| Name | Description |
|---|---|
from | Start position. |
to | End position. |
useManhattan | Whether to use Manhattan distance. |
Returns
Distance between positions.
CreateDefault
Creates default settings for a standard grid.
Returns
Default settings.
CreateSmallGrid
Creates settings optimized for small grids.
Returns
Small grid settings.
CreateLargeGrid
Creates settings optimized for large grids.
Returns
Large grid settings.
CreateIsometric
Creates settings for isometric grids.
Returns
Isometric grid settings.