Show / Hide Table of Contents

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.

Implements
IEquatable<Cell>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: Sylves
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
Type Name Description
int x
int y
int z

Fields

x

Declaration
public int x
Field Value
Type Description
int

y

Declaration
public int y
Field Value
Type Description
int

z

Declaration
public int z
Field Value
Type Description
int

Methods

Equals(Cell)

Declaration
public bool Equals(Cell other)
Parameters
Type Name Description
Cell other
Returns
Type Description
bool

Equals(object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
object other
Returns
Type Description
bool
Overrides
ValueType.Equals(object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()

Operators

operator +(Cell, Vector3Int)

Declaration
public static Cell operator +(Cell cell, Vector3Int offset)
Parameters
Type Name Description
Cell cell
Vector3Int offset
Returns
Type Description
Cell

operator +(Vector3Int, Cell)

Declaration
public static Cell operator +(Vector3Int offset, Cell cell)
Parameters
Type Name Description
Vector3Int offset
Cell cell
Returns
Type Description
Cell

operator ==(Cell, Cell)

Declaration
public static bool operator ==(Cell lhs, Cell rhs)
Parameters
Type Name Description
Cell lhs
Cell rhs
Returns
Type Description
bool

explicit operator Vector3Int(Cell)

Declaration
public static explicit operator Vector3Int(Cell c)
Parameters
Type Name Description
Cell c
Returns
Type Description
Vector3Int

explicit operator Cell(Vector3Int)

Declaration
public static explicit operator Cell(Vector3Int c)
Parameters
Type Name Description
Vector3Int c
Returns
Type Description
Cell

operator !=(Cell, Cell)

Declaration
public static bool operator !=(Cell lhs, Cell rhs)
Parameters
Type Name Description
Cell lhs
Cell rhs
Returns
Type Description
bool

operator -(Cell, Vector3Int)

Declaration
public static Cell operator -(Cell cell, Vector3Int offset)
Parameters
Type Name Description
Cell cell
Vector3Int offset
Returns
Type Description
Cell

operator -(Vector3Int, Cell)

Declaration
public static Cell operator -(Vector3Int offset, Cell cell)
Parameters
Type Name Description
Vector3Int offset
Cell cell
Returns
Type Description
Cell

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX