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

1
public class TargetingConfiguration : IConfiguration, IGridConfiguration

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

  • IConfiguration
  • IGridConfiguration

Properties

GridSize

1
public CoreVector2I GridSize { get; set; }

Size of the grid in cells.


CellSize

1
public float CellSize { get; set; }

Size of each grid cell in world units.


CellSize2D

1
public CoreVector2 CellSize2D { get; set; }

Size of each grid cell in world units (CoreVector2 version).


Origin

1
public CoreVector2 Origin { get; set; }

Origin point of the grid in world coordinates.


IsIsometric

1
public bool IsIsometric { get; set; }

Whether the grid uses isometric coordinates.


WrapsEdges

1
public bool WrapsEdges { get; set; }

Whether the grid wraps around edges.


GridRotation

1
public float GridRotation { get; set; }

Grid rotation angle in degrees.


IsEnabled

1
public bool IsEnabled { get; set; }

Whether the grid is enabled.


IsValid

1
public bool IsValid { get; }

Configuration validity.


MaxTargetingRange

1
public int MaxTargetingRange { get; set; }

Maximum targeting range in grid units. Also known as MaxTilesDistance in older configs.


MaxTilesDistance

1
public int MaxTilesDistance { get; set; }

MinTargetingRange

1
public int MinTargetingRange { get; set; }

Minimum targeting range in grid units.


RequiresLineOfSight

1
public bool RequiresLineOfSight { get; set; }

Whether targeting requires line of sight.


BlockingLayers

1
public List<string> BlockingLayers { get; set; }

Layers that block targeting.


TargetableLayers

1
public List<string> TargetableLayers { get; set; }

Layers that can be targeted.


AllowDiagonalMovement

1
public bool AllowDiagonalMovement { get; set; }

Whether diagonal movement is allowed.


EnableDiagonalMovement

1
public bool EnableDiagonalMovement { get; set; }

LimitToAdjacentTiles

1
public bool LimitToAdjacentTiles { get; set; }

Whether movement should be limited to adjacent tiles only.


SnapToGrid

1
public bool SnapToGrid { get; set; }

Whether to snap to grid when targeting.


SnapTolerance

1
public float SnapTolerance { get; set; }

Grid snapping tolerance in world units.


HeuristicWeight

1
public float HeuristicWeight { get; set; }

Gets or sets the heuristic weight used by pathfinding.


MaxPathLength

1
public int MaxPathLength { get; set; }

Gets or sets the maximum path length allowed during pathfinding.


GridLineColor

1
public CoreColor GridLineColor { get; set; }

CoreColor of the grid lines.


ValidTargetColor

1
public CoreColor ValidTargetColor { get; set; }

CoreColor of valid targeting indicators.


InvalidTargetColor

1
public CoreColor InvalidTargetColor { get; set; }

CoreColor of invalid targeting indicators.


CursorColor

1
public CoreColor CursorColor { get; set; }

CoreColor of the targeting cursor.


GridLineWidth

1
public float GridLineWidth { get; set; }

Width of grid lines.


ShowGridLines

1
public bool ShowGridLines { get; set; }

Whether to show grid lines.


ShowCellCoordinates

1
public bool ShowCellCoordinates { get; set; }

Whether to show cell coordinates.


CoordinateFontSize

1
public int CoordinateFontSize { get; set; }

Font size for cell coordinates.


EnableAnimations

1
public bool EnableAnimations { get; set; }

Whether to enable targeting animations.


AnimationSpeed

1
public float AnimationSpeed { get; set; }

Animation speed multiplier.


CursorAnimationDuration

1
public float CursorAnimationDuration { get; set; }

Cursor animation duration in seconds.


TargetAnimationDuration

1
public float TargetAnimationDuration { get; set; }

Target indicator animation duration in seconds.


UseEasing

1
public bool UseEasing { get; set; }

Whether to use easing for animations.


MaxCellsPerFrame

1
public int MaxCellsPerFrame { get; set; }

Maximum number of cells to update per frame.


UseSpatialPartitioning

1
public bool UseSpatialPartitioning { get; set; }

Whether to use spatial partitioning for performance.


PartitionCellSize

1
public int PartitionCellSize { get; set; }

Size of spatial partition cells.


EnableFrustumCulling

1
public bool EnableFrustumCulling { get; set; }

Whether to enable frustum culling.


UpdateInterval

1
public float UpdateInterval { get; set; }

Update interval in seconds for performance optimization.


EnableMouseInput

1
public bool EnableMouseInput { get; set; }

Whether mouse input should be enabled for targeting.


MouseSensitivity

1
public float MouseSensitivity { get; set; }

Mouse sensitivity for targeting.


InvertMouseY

1
public bool InvertMouseY { get; set; }

Whether to invert mouse Y axis.


KeyboardSpeed

1
public float KeyboardSpeed { get; set; }

Keyboard movement speed in cells per second.


EnableGamepad

1
public bool EnableGamepad { get; set; }

Whether to enable gamepad targeting.


GamepadSensitivity

1
public float GamepadSensitivity { get; set; }

Gamepad stick sensitivity.


GamepadDeadZone

1
public float GamepadDeadZone { get; set; }

Dead zone for gamepad input.


ShowDebugInfo

1
public bool ShowDebugInfo { get; set; }

Whether to show debug information.


ShowPerformanceMetrics

1
public bool ShowPerformanceMetrics { get; set; }

Whether to show performance metrics.


ShowCellBoundaries

1
public bool ShowCellBoundaries { get; set; }

Whether to show cell boundaries.


LogTargetingEvents

1
public bool LogTargetingEvents { get; set; }

Whether to log targeting events.


DebugFontSize

1
public int DebugFontSize { get; set; }

Debug overlay font size.


Methods

Validate

1
public ValidationResult Validate()

Validates the targeting configuration.

Returns

Validation result.


Clone

1
public TargetingConfiguration Clone()

Creates a copy of this configuration.

Returns

Copy of the configuration.


WorldToGrid

1
public CoreVector2I WorldToGrid(CoreVector2 worldPosition)

Converts world coordinates to grid coordinates.

Parameters

NameDescription
worldPositionWorld position.

Returns

Grid coordinates.


GridToWorld

1
public CoreVector2 GridToWorld(CoreVector2I gridPosition)

Converts grid coordinates to world coordinates.

Parameters

NameDescription
gridPositionGrid position.

Returns

World coordinates.


IsValidGridPosition

1
public bool IsValidGridPosition(CoreVector2I gridPosition)

Checks if a grid position is valid.

Parameters

NameDescription
gridPositionGrid position to check.

Returns

True if position is valid.


GetNeighbors

1
2
3
4
public List<CoreVector2I> GetNeighbors(
    CoreVector2I gridPosition,
    bool includeDiagonal = true
)

Gets neighboring grid positions.

Parameters

NameDescription
gridPositionCenter position.
includeDiagonalWhether to include diagonal neighbors.

Returns

List of neighboring positions.


GetDistance

1
2
3
4
5
public float GetDistance(
    CoreVector2I from,
    CoreVector2I to,
    bool useManhattan = false
)

Gets the distance between two grid positions.

Parameters

NameDescription
fromStart position.
toEnd position.
useManhattanWhether to use Manhattan distance.

Returns

Distance between positions.


CreateDefault

1
public static TargetingConfiguration CreateDefault()

Creates default settings for a standard grid.

Returns

Default settings.


CreateSmallGrid

1
public static TargetingConfiguration CreateSmallGrid()

Creates settings optimized for small grids.

Returns

Small grid settings.


CreateLargeGrid

1
public static TargetingConfiguration CreateLargeGrid()

Creates settings optimized for large grids.

Returns

Large grid settings.


CreateIsometric

1
public static TargetingConfiguration CreateIsometric()

Creates settings for isometric grids.

Returns

Isometric grid settings.