C# Class ManicDigger.Shadows

Inheritance: IShadows
Mostra file Open project: GlennMR/800Craft-Client Class Usage Examples

Public Properties

Property Type Description
chunksize int
loaded bool

Private Properties

Property Type Description
BlocksNear IEnumerable
BlocksNearWith IEnumerable
DefloodLight void
FloodLight void
FloodLightChunk void
GetLightHeight int
GetRealLightHeightAt int
InSameChunk bool
IsSolidChunk bool
IsSunlighted bool
IsValidChunkPos bool
LightGetBlock int
LightGetBlockFast int
UpdateHeightCache void
UpdateLight void
UpdateShadows void
UpdateStartSunlight void
UpdateStartSunlight void
UpdateStartSunlightChunk void
distancesquare int

Public Methods

Method Description
GetLight ( int x, int y, int z ) : int
LightSetBlock ( int x, int y, int z, int block ) : void
MaybeGetLight ( int x, int y, int z ) : int?
OnGetTerrainBlock ( int x, int y, int z ) : void
OnLocalBuild ( int x, int y, int z ) : void
OnMakeChunk ( int chunkx, int chunky, int chunkz ) : void
OnSetBlock ( int x, int y, int z ) : void
ResetShadows ( ) : void
SetLight ( int x, int y, int z, int value ) : void
UpdateLightHeightmapAt ( int x, int y ) : void
UpdateSunlight ( int x, int y, int z ) : void

Private Methods

Method Description
BlocksNear ( int x, int y, int z ) : IEnumerable
BlocksNearWith ( int x, int y, int z ) : IEnumerable
DefloodLight ( IEnumerable start ) : void
FloodLight ( int x, int y, int z ) : void
FloodLightChunk ( int x, int y, int z ) : void
GetLightHeight ( int x, int y ) : int
GetRealLightHeightAt ( int x, int y ) : int
InSameChunk ( int x1, int y1, int z1, int x2, int y2, int z2 ) : bool
IsSolidChunk ( byte chunk, byte value ) : bool
IsSunlighted ( int x, int y, int z ) : bool
IsValidChunkPos ( int cx, int cy, int cz ) : bool
LightGetBlock ( int x, int y, int z ) : int
LightGetBlockFast ( int x, int y, int z ) : int
UpdateHeightCache ( ) : void
UpdateLight ( ) : void
UpdateShadows ( int x, int y, int z ) : void
UpdateStartSunlight ( int x, int y ) : void
UpdateStartSunlight ( int x, int y, int z ) : void
UpdateStartSunlightChunk ( int x, int y, int z ) : void
distancesquare ( Vector3i a, Vector3i b ) : int

Method Details

GetLight() public method

public GetLight ( int x, int y, int z ) : int
x int
y int
z int
return int

LightSetBlock() public method

public LightSetBlock ( int x, int y, int z, int block ) : void
x int
y int
z int
block int
return void

MaybeGetLight() public method

public MaybeGetLight ( int x, int y, int z ) : int?
x int
y int
z int
return int?

OnGetTerrainBlock() public method

public OnGetTerrainBlock ( int x, int y, int z ) : void
x int
y int
z int
return void

OnLocalBuild() public method

public OnLocalBuild ( int x, int y, int z ) : void
x int
y int
z int
return void

OnMakeChunk() public method

public OnMakeChunk ( int chunkx, int chunky, int chunkz ) : void
chunkx int
chunky int
chunkz int
return void

OnSetBlock() public method

public OnSetBlock ( int x, int y, int z ) : void
x int
y int
z int
return void

ResetShadows() public method

public ResetShadows ( ) : void
return void

SetLight() public method

public SetLight ( int x, int y, int z, int value ) : void
x int
y int
z int
value int
return void

UpdateLightHeightmapAt() public method

public UpdateLightHeightmapAt ( int x, int y ) : void
x int
y int
return void

UpdateSunlight() public method

public UpdateSunlight ( int x, int y, int z ) : void
x int
y int
z int
return void

Property Details

chunksize public_oe property

public int chunksize
return int

loaded public_oe property

public bool loaded
return bool