C# 클래스 Azmyth.Assets.World

상속: Asset
파일 보기 프로젝트 열기: GalacticSoft/Azmyth 1 사용 예제들

공개 메소드들

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

비공개 메소드들

메소드 설명
UpdateNoise ( ) : void

메소드 상세

GetChunkCount() 공개 메소드

public GetChunkCount ( ) : int
리턴 int

GetChunks() 공개 메소드

public GetChunks ( ) : List
리턴 List

GetChunks() 공개 메소드

public GetChunks ( RectangleF chunkBounds ) : List
chunkBounds System.Drawing.RectangleF
리턴 List

GetNodeCount() 공개 메소드

public GetNodeCount ( ) : int
리턴 int

GetTerrainType() 공개 메소드

public GetTerrainType ( int x, int y ) : TerrainTypes
x int
y int
리턴 TerrainTypes

GetTile() 공개 메소드

public GetTile ( int x, int y ) : TerrainTile
x int
y int
리턴 TerrainTile

IsChunkLoaded() 공개 메소드

public IsChunkLoaded ( RectangleF chunkBounds ) : bool
chunkBounds System.Drawing.RectangleF
리턴 bool

LoadChunk() 공개 메소드

public LoadChunk ( RectangleF chunkBounds ) : TerrainChunk
chunkBounds System.Drawing.RectangleF
리턴 TerrainChunk

LoadTile() 공개 메소드

public LoadTile ( int x, int y, TerrainChunk chunk = null ) : TerrainTile
x int
y int
chunk TerrainChunk
리턴 TerrainTile

LoadVoxel() 공개 메소드

public LoadVoxel ( int x, int y, int z, TerrainChunk chunk = null ) : TerrainTile
x int
y int
z int
chunk TerrainChunk
리턴 TerrainTile

UnloadChunk() 공개 메소드

public UnloadChunk ( RectangleF chunkBounds ) : void
chunkBounds System.Drawing.RectangleF
리턴 void

UpdateChunks() 공개 메소드

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

World() 공개 메소드

public World ( VectorID worldID ) : System
worldID VectorID
리턴 System

World() 공개 메소드

public World ( VectorID vectorID, long seed ) : System
vectorID VectorID
seed long
리턴 System

World() 공개 메소드

public World ( long seed ) : System
seed long
리턴 System