C# 클래스 ByChance.Core.Context

Describes a position a chunk can be aligned at to another one.
파일 보기 프로젝트 열기: npruehs/bychance 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Context ( string tag ) : System

Constructs a new context of the specified category.

메소드 상세

AlignTo() 공개 메소드

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.
리턴 void

ClearTarget() 공개 메소드

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

Context() 보호된 메소드

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

IsAdjacentTo() 공개 추상적인 메소드

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 .
리턴 bool