Struct Cell
Represents a single cell in the grid.
Cell is just a set of co-ordinates, the grid itself must be called to get any details about the cell.
For more details see the basic concepts in the docs.
Assembly: Sylves.dll
Syntax
public struct Cell : IEquatable<Cell>
Constructors
Cell(int, int)
Declaration
public Cell(int x, int y)
Parameters
| Type |
Name |
Description |
| int |
x |
|
| int |
y |
|
Cell(int, int, int)
Declaration
public Cell(int x, int y, int z)
Parameters
Fields
x
Declaration
Field Value
y
Declaration
Field Value
z
Declaration
Field Value
Methods
Equals(Cell)
Declaration
public bool Equals(Cell other)
Parameters
| Type |
Name |
Description |
| Cell |
other |
|
Returns
Equals(object)
Declaration
public override bool Equals(object other)
Parameters
| Type |
Name |
Description |
| object |
other |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator +(Cell, Vector3Int)
Declaration
public static Cell operator +(Cell cell, Vector3Int offset)
Parameters
Returns
operator +(Vector3Int, Cell)
Declaration
public static Cell operator +(Vector3Int offset, Cell cell)
Parameters
Returns
operator ==(Cell, Cell)
Declaration
public static bool operator ==(Cell lhs, Cell rhs)
Parameters
Returns
explicit operator Vector3Int(Cell)
Declaration
public static explicit operator Vector3Int(Cell c)
Parameters
| Type |
Name |
Description |
| Cell |
c |
|
Returns
explicit operator Cell(Vector3Int)
Declaration
public static explicit operator Cell(Vector3Int c)
Parameters
Returns
operator !=(Cell, Cell)
Declaration
public static bool operator !=(Cell lhs, Cell rhs)
Parameters
Returns
operator -(Cell, Vector3Int)
Declaration
public static Cell operator -(Cell cell, Vector3Int offset)
Parameters
Returns
operator -(Vector3Int, Cell)
Declaration
public static Cell operator -(Vector3Int offset, Cell cell)
Parameters
Returns
Implements