C# Class ByChance.Core.Context

Describes a position a chunk can be aligned at to another one.
Afficher le fichier Open project: npruehs/bychance Class Usage Examples

Méthodes publiques

Méthode Description
AlignTo ( Context other ) : void

Aligns this context to other, making Target of both contexts point to each other.

ClearTarget ( ) : void

Breaks the connection between this context and its target, setting Target of both contexts to null.

IsAdjacentTo ( Context other, float offset ) : bool

Checks whether this context is within offset to other.

Méthodes protégées

Méthode Description
Context ( string tag ) : System

Constructs a new context of the specified category.

Method Details

AlignTo() public méthode

Aligns this context to other, making Target of both contexts point to each other.
is null. This context or is already aligned to another context. has a different type than this context.
public AlignTo ( Context other ) : void
other Context Context to align this one to.
Résultat void

ClearTarget() public méthode

Breaks the connection between this context and its target, setting Target of both contexts to null.
public ClearTarget ( ) : void
Résultat void

Context() protected méthode

Constructs a new context of the specified category.
is null.
protected Context ( string tag ) : System
tag string Category of the new context.
Résultat System

IsAdjacentTo() public abstract méthode

Checks whether this context is within offset to other.
public abstract IsAdjacentTo ( Context other, float offset ) : bool
other Context Context to check the adjacency to.
offset float Offset within this context is considered to be adjacent to .
Résultat bool