Class CellInformation
- Namespace
- AshesOfVelsingrad.Systems
- Assembly
- Ashes of Velsingrad.dll
Represents the information for a single grid cell in the map, including its coordinates, ground type, walkability, and the unit occupying it.
public sealed class CellInformation : EffectTarget<CellInformation>, IEffectTarget<CellInformation>
- Inheritance
-
CellInformation
- Implements
- Inherited Members
Constructors
CellInformation(int, int, int, CellType, bool)
Represents the information for a single grid cell in the map, including its coordinates, ground type, walkability, and the unit occupying it.
public CellInformation(int x, int y, int z, AovDataStructures.CellType cellType, bool isWalkable)
Parameters
xintThe x-coordinate of the grid cell.
yintThe y-coordinate of the grid cell.
zintThe z-coordinate of the grid cell.
cellTypeAovDataStructures.CellTypeThe CellType defining the terrain of the cell.
isWalkableboolIndicates whether the cell can be walked on.
Properties
CellType
public AovDataStructures.CellType CellType { get; }
Property Value
IsWalkable
public bool IsWalkable { get; }
Property Value
Unit
public UnitSystem? Unit { get; }
Property Value
X
public int X { get; }
Property Value
Y
public int Y { get; }
Property Value
Z
public int Z { get; }
Property Value
Methods
OnUnitEntered(UnitSystem)
Set the logic when a unit has entered the cell
public void OnUnitEntered(UnitSystem unit)
Parameters
unitUnitSystemThe unit that entered the cell