Show / Hide Table of Contents

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
Implements
System.IEquatable<Cell>
Namespace: Sylves
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
public int x
Field Value
Type Description
System.Int32

y

Declaration
public int y
Field Value
Type Description
System.Int32

z

Declaration
public int z
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
Type Name Description
Cell cell
Vector3Int offset
Returns
Type Description
Cell

Addition(Vector3Int, Cell)

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

Equality(Cell, Cell)

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

Explicit(Cell to Vector3Int)

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

Explicit(Vector3Int to Cell)

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

Inequality(Cell, Cell)

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

Subtraction(Cell, Vector3Int)

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

Subtraction(Vector3Int, Cell)

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

Implements

System.IEquatable<>
In This Article
Back to top Generated by DocFX