Class 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.
Inheritance
System.Object
Cell
Assembly: Sylves.dll
Syntax
public sealed class Cell : ValueType
Constructors
Cell(Int32, Int32)
Declaration
public Cell(int x, int y)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
Cell(Int32, Int32, Int32)
Declaration
public Cell(int x, int y, int z)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
z |
|
Fields
x
Declaration
Field Value
Type |
Description |
System.Int32 |
|
y
Declaration
Field Value
Type |
Description |
System.Int32 |
|
z
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Methods
Equals(Cell)
Declaration
public bool Equals(Cell other)
Parameters
Type |
Name |
Description |
Cell |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Addition(Cell, Vector3Int)
Declaration
public static Cell operator +(Cell cell, Vector3Int offset)
Parameters
Returns
Addition(Vector3Int, Cell)
Declaration
public static Cell operator +(Vector3Int offset, Cell cell)
Parameters
Returns
Equality(Cell, Cell)
Declaration
public static bool operator ==(Cell lhs, Cell rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit(Cell to Vector3Int)
Declaration
public static explicit operator Vector3Int(Cell c)
Parameters
Type |
Name |
Description |
Cell |
c |
|
Returns
Explicit(Vector3Int to Cell)
Declaration
public static explicit operator Cell(Vector3Int c)
Parameters
Returns
Inequality(Cell, Cell)
Declaration
public static bool operator !=(Cell lhs, Cell rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Subtraction(Cell, Vector3Int)
Declaration
public static Cell operator -(Cell cell, Vector3Int offset)
Parameters
Returns
Subtraction(Vector3Int, Cell)
Declaration
public static Cell operator -(Vector3Int offset, Cell cell)
Parameters
Returns
Implements
System.IEquatable<>