C# Class Dwarrowdelf.Client.ChunkManager

Inheritance: Component
Mostrar archivo Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
ChunkManager ( TerrainRenderer scene, Camera camera, ViewGridProvider viewGridProvider ) : System
Draw ( Camera camera ) : void
DrawTrees ( ) : void
GetChunkDebug ( IntVector3 mp ) : string
InvalidateChunks ( ) : void
InvalidateChunksZ ( int fromZ, int toZ ) : void
PrepareDraw ( ) : void

Protected Methods

Method Description
Dispose ( bool disposeManagedResources ) : void

Private Methods

Method Description
CreateChunk ( IntVector3 cp ) : Chunk
Data_MapChanged ( EnvironmentObject oldMap, EnvironmentObject newMap ) : void
FreeChunk ( Chunk chunk ) : void
GetChunk ( IntVector3 cp ) : Chunk
GetFrustumFarthestCorner ( BoundingFrustum &frustum ) : System.Vector3
InvalidateChunk ( Chunk chunk ) : void
InvalidateChunk ( IntVector3 cp ) : void
InvalidateDueVisibilityChange ( IntVector3 cameraChunkPos ) : void
InvalidateXYPlane ( int z ) : void
InvalidateXZPlane ( int y ) : void
InvalidateYZPlane ( int x ) : void
OnTileChanged ( IntVector3 p ) : void
OnViewGridCornerChanged ( IntVector3 oldValue, IntVector3 newValue ) : void
ProcessRebuildList ( IntVector3 cameraChunkPos ) : void
SetChunk ( IntVector3 cp, Chunk chunk ) : void
UpdateDrawList ( ) : void
UpdateNearList ( ) : void
UpdateTile ( IntVector3 p ) : void

Method Details

ChunkManager() public method

public ChunkManager ( TerrainRenderer scene, Camera camera, ViewGridProvider viewGridProvider ) : System
scene TerrainRenderer
camera Camera
viewGridProvider ViewGridProvider
return System

Dispose() protected method

protected Dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
return void

Draw() public method

public Draw ( Camera camera ) : void
camera Camera
return void

DrawTrees() public method

public DrawTrees ( ) : void
return void

GetChunkDebug() public method

public GetChunkDebug ( IntVector3 mp ) : string
mp IntVector3
return string

InvalidateChunks() public method

public InvalidateChunks ( ) : void
return void

InvalidateChunksZ() public method

public InvalidateChunksZ ( int fromZ, int toZ ) : void
fromZ int
toZ int
return void

PrepareDraw() public method

public PrepareDraw ( ) : void
return void