C# Class Azmyth.Assets.World

Inheritance: Asset
Afficher le fichier Open project: GalacticSoft/Azmyth Class Usage Examples

Méthodes publiques

Méthode Description
GetChunkCount ( ) : int
GetChunks ( ) : List
GetChunks ( RectangleF chunkBounds ) : List
GetNodeCount ( ) : int
GetTerrainType ( int x, int y ) : TerrainTypes
GetTile ( int x, int y ) : TerrainTile
IsChunkLoaded ( RectangleF chunkBounds ) : bool
LoadChunk ( RectangleF chunkBounds ) : TerrainChunk
LoadTile ( int x, int y, TerrainChunk chunk = null ) : TerrainTile
LoadVoxel ( int x, int y, int z, TerrainChunk chunk = null ) : TerrainTile
UnloadChunk ( RectangleF chunkBounds ) : void
UpdateChunks ( int x, int y, int chunkSize ) : void

Loads Moore Neighborhood of chunks around central chunk specified by X/Y paramters.

World ( VectorID worldID ) : System
World ( VectorID vectorID, long seed ) : System
World ( long seed ) : System

Private Methods

Méthode Description
UpdateNoise ( ) : void

Method Details

GetChunkCount() public méthode

public GetChunkCount ( ) : int
Résultat int

GetChunks() public méthode

public GetChunks ( ) : List
Résultat List

GetChunks() public méthode

public GetChunks ( RectangleF chunkBounds ) : List
chunkBounds System.Drawing.RectangleF
Résultat List

GetNodeCount() public méthode

public GetNodeCount ( ) : int
Résultat int

GetTerrainType() public méthode

public GetTerrainType ( int x, int y ) : TerrainTypes
x int
y int
Résultat TerrainTypes

GetTile() public méthode

public GetTile ( int x, int y ) : TerrainTile
x int
y int
Résultat TerrainTile

IsChunkLoaded() public méthode

public IsChunkLoaded ( RectangleF chunkBounds ) : bool
chunkBounds System.Drawing.RectangleF
Résultat bool

LoadChunk() public méthode

public LoadChunk ( RectangleF chunkBounds ) : TerrainChunk
chunkBounds System.Drawing.RectangleF
Résultat TerrainChunk

LoadTile() public méthode

public LoadTile ( int x, int y, TerrainChunk chunk = null ) : TerrainTile
x int
y int
chunk TerrainChunk
Résultat TerrainTile

LoadVoxel() public méthode

public LoadVoxel ( int x, int y, int z, TerrainChunk chunk = null ) : TerrainTile
x int
y int
z int
chunk TerrainChunk
Résultat TerrainTile

UnloadChunk() public méthode

public UnloadChunk ( RectangleF chunkBounds ) : void
chunkBounds System.Drawing.RectangleF
Résultat void

UpdateChunks() public méthode

Loads Moore Neighborhood of chunks around central chunk specified by X/Y paramters.
public UpdateChunks ( int x, int y, int chunkSize ) : void
x int X Origin of central chunk
y int Y Origin of central chunk<
chunkSize int size of chunks to load
Résultat void

World() public méthode

public World ( VectorID worldID ) : System
worldID VectorID
Résultat System

World() public méthode

public World ( VectorID vectorID, long seed ) : System
vectorID VectorID
seed long
Résultat System

World() public méthode

public World ( long seed ) : System
seed long
Résultat System