Struct SquareGridCell
Assembly: AnyPath.dll
Syntax
public struct SquareGridCell : IEquatable<SquareGridCell>, INodeFlags
Constructors
SquareGridCell(int2, float, int)
Declaration
public SquareGridCell(int2 position, float enterCost = 0, int flags = 0)
Parameters
Type |
Name |
Description |
int2 |
position |
|
float |
enterCost |
|
int |
flags |
|
SquareGridCell(Vector3Int, float, int)
Declaration
public SquareGridCell(Vector3Int position, float enterCost = 0, int flags = 0)
Parameters
Type |
Name |
Description |
Vector3Int |
position |
|
float |
enterCost |
|
int |
flags |
|
Properties
EnterCost
Declaration
public readonly float EnterCost { get; }
Property Value
Flags
Declaration
public readonly int Flags { get; }
Property Value
IsOpen
Declaration
public bool IsOpen { get; }
Property Value
Position
Declaration
public readonly int2 Position { get; }
Property Value
Methods
ToVector3Int(int)
Declaration
public Vector3Int ToVector3Int(int z = 0)
Parameters
Type |
Name |
Description |
int |
z |
|
Returns
Type |
Description |
Vector3Int |
|
Operators
implicit operator int2(SquareGridCell)
Declaration
public static implicit operator int2(SquareGridCell cell)
Parameters
Returns
implicit operator Vector2Int(SquareGridCell)
Declaration
public static implicit operator Vector2Int(SquareGridCell cell)
Parameters
Returns
Type |
Description |
Vector2Int |
|
Implements
Extension Methods