World¶
-
class World¶ -
GameObject
_chunkPrefab{ }¶
-
Dictionary<ChunkPos, DataChunk>
_chunks{ }¶
-
Dictionary<ColumnPos, DataColumn>
_columns{ }¶
-
Dictionary<ChunkPos, DataChunk>
_offloacChunks{ }¶
-
public static Atlas.ID
GetBlock(BlockPos pos)¶ Fetches a block that has already been generated in the past.
-
public static Int32
GenerateTopology(Int32 x, Int32 z)¶ Generates the topological height of the stone layer for a given coordinate.
-
public static Single
SimplexNoise(Single x, Single y, Single z, Single scale, Single height, Single power)¶ Returns simplex noise from a given point, modulated by some variables.
-
public static DataColumn
GetColumn(ColumnPos pos)¶ Gets the
DataColumnfrom the given pos.
-
void
RenderThread()¶ Special function that does threaded generation.
-
void
GenerateChunks()¶ Generates all possible chunk positions that are in view range if a chunk does not already exist at that position.
-
void
PingChunks()¶ Checks whether chunks are still in view range or not, and destrys them if need be.
-
GameObject