C# (CSharp) ByChance.Core Namespace

Classes

Name Description
Anchor Placeholder for game elements that can be filled after the level generation process.
Chunk

Main building block that makes up a level.

Chunks are created based on pre-defined chunk templates and define the positions of all contexts and anchors associated with the chunk, as well as attributes that are required for the level generation process such as the probability of a chunk being picked to be added next.

The concrete 2D and 3D implementations of this base class hold additional information regarding their absolute position within the level and their size.

ChunkTemplate Template that is used for creating similar chunks, which in turn make up a level. Chunk templates define the positions of all contexts and anchors of chunks, as well as attributes that are required for the level generation process such as the probability of a chunk being picked to be added next.
Context Describes a position a chunk can be aligned at to another one.
ProgressChangedEventArgs Level generation progress changed data.
Random2 Implementation of the Ranq1 struct found in Numerical Recipes in C: 3rd Edition. Combined generator (Ranq1 = D1(A1(right-shift first)) with a period of 1.8 x 10^19.