pub fn add_square_grid(
        &mut self,
        _owner: &Reference,
        bounds: Variant,
        #[opt] terrain_type: Option<i32>,
        #[opt] orthogonal_cost: Option<f32>,
        #[opt] diagonal_cost: Option<f32>,
    ) -> Dictionary {
        Dictionary::new().into_shared()
    }
/// Adds a square grid of connected points.
///
/// # Parameters
///
/// - `bounds` : Dimensions of the grid. At the moment, only [Rect2] is
///   supported.
/// - `terrain_type` (default : `-1`) : Terrain to use for all points of
///   the grid.
/// - `orthogonal_cost` (default : `1.0`) : specifies cost of orthogonal
///   connections (up, down, right and left). \
///   If `orthogonal_cost` is [INF] or [NAN], orthogonal
///   connections are disabled.
/// - `diagonal_cost` (default : [INF]) : specifies cost of diagonal
///   connections. \
///   If `diagonal_cost` is [INF] or [NAN], diagonal connections
///   are disabled.
///
/// # Returns
///
/// This function returns a Dictionary where keys are coordinates of points
/// ([Vector2]) and values are their corresponding point IDs.
Adds a square grid of connected points.
Adds a square grid of connected points .
pub fn add_square_grid(
        &mut self,
        _owner: &Reference,
        bounds: Variant,
        #[opt] terrain_type: Option<i32>,
        #[opt] orthogonal_cost: Option<f32>,
        #[opt] diagonal_cost: Option<f32>,
    ) -> Dictionary {
        Dictionary::new().into_shared()
    }
pub fn add_square_grid ( & mut self , _owner : & Reference , bounds : Variant , # [ opt ] terrain_type : Option < i32 > , # [ opt ] orthogonal_cost : Option < f32 > , # [ opt ] diagonal_cost : Option < f32 > , ) -> Dictionary { Dictionary :: new ( ) . into_shared ( ) }
Adds a square grid of connected points.
Adds a square grid of connected points .
&mut self
_owner
&Reference
bounds
Variant
terrain_type
Option<i32>
orthogonal_cost
Option<f32>
diagonal_cost
Option<f32>
This function returns a Dictionary where keys are coordinates of points
([Vector2]) and values are their corresponding point IDs.
This function returns a Dictionary where keys are coordinates of points ( [ Vector2 ] ) and values are their corresponding point IDs .
&mut self
_owner
&Reference
bounds
Variant
: Dimensions of the grid. At the moment, only [Rect2] is
supported.
: Dimensions of the grid . At the moment only [ Rect2 ] is supported .
terrain_type
Option<i32>
(default : `-1`) : Terrain to use for all points of
the grid.
( default : ` - 1 ` ) : Terrain to use for all points of the grid .
orthogonal_cost
Option<f32>
(default : `1.0`) : specifies cost of orthogonal
connections (up, down, right and left). \
If `orthogonal_cost` is [INF] or [NAN], orthogonal
connections are disabled.
( default : ` 1 . 0 ` ) : specifies cost of orthogonal connections ( up down right and left ) . \ If ` orthogonal_cost ` is [ INF ] or [ NAN ] orthogonal connections are disabled .
diagonal_cost
Option<f32>
(default : [INF]) : specifies cost of diagonal
connections. \
If `diagonal_cost` is [INF] or [NAN], diagonal connections
are disabled.
( default : [ INF ] ) : specifies cost of diagonal connections . \ If ` diagonal_cost ` is [ INF ] or [ NAN ] diagonal connections are disabled .