Property | Type | Description | |
---|---|---|---|
Light | float[,,] | ||
blockList | BlockType[,,] | ||
blockTextures | IMTexture[] | ||
downloadList | BlockType[,,] | ||
vertexListDirty | ].bool[ |
Method | Description | |
---|---|---|
AddBlock ( ushort x, ushort y, ushort z, BlockType blockType ) : void | ||
BlockAtPoint ( Vector3 point ) : BlockType | ||
BlockEngine ( |
||
DownloadComplete ( ) : void | ||
DrawLine ( GraphicsDevice graphicsDevice, Vector3 posStart, Vector3 posEnd, Color color, short points ) : void | ||
GetLighting ( ushort &x, ushort &y, ushort &z ) : float | ||
GetRegion ( ushort x, ushort y, ushort z ) : uint | ||
MakeRegionDirty ( int texture, int region ) : void | ||
RayCollision ( Vector3 startPosition, Vector3 rayDirection, float distance, int searchGranularity, Vector3 &hitPoint, Vector3 &buildPoint ) : bool | ||
RayCollision ( Vector3 startPosition, Vector3 rayDirection, float distance, int searchGranularity, Vector3 &hitPoint, Vector3 &buildPoint, BlockType block ) : bool | ||
RayCollision ( Vector3 startPosition, Vector3 src, int searchGranularity ) : bool | ||
RegenerateDirtyVertexLists ( ) : void | ||
RemoveBlock ( ushort x, ushort y, ushort z ) : void | ||
Render ( GraphicsDevice graphicsDevice, GameTime gameTime ) : void | ||
SolidAtPoint ( Vector3 point ) : bool | ||
SolidAtPointForPlayer ( Vector3 point ) : bool | ||
vertexBuffer_ContentLost ( object sender, EventArgs e ) : void |
Method | Description | |
---|---|---|
BlockPassibleForPlayer ( BlockType blockType ) : bool | ||
BuildFaceVertices ( |
||
CreateVertexBufferFromFaceList ( bool>.Dictionary |
||
DecodeBlockFace ( uint faceCode, ushort &x, ushort &y, ushort &z, BlockFaceDirection &faceDir ) : void | ||
EncodeBlockFace ( ushort x, ushort y, ushort z, BlockFaceDirection faceDir ) : uint | ||
GetRegionCenter ( uint regionNumber ) : Vector3 | ||
HideQuad ( ushort x, ushort y, ushort z, BlockFaceDirection faceDir, BlockType blockType ) : void | ||
RenderVertexList ( GraphicsDevice graphicsDevice, DynamicVertexBuffer vertexBuffer, Texture2D blockTexture, Color lodColor, bool renderTranslucent, BlockTexture blocktex, float elapsedTime ) : void | ||
ShowQuad ( ushort x, ushort y, ushort z, BlockFaceDirection faceDir, BlockType blockType ) : void | ||
_AddBlock ( ushort x, ushort y, ushort z, BlockFaceDirection dir, BlockType type, int x2, int y2, int z2, BlockFaceDirection dir2 ) : void | ||
_RemoveBlock ( ushort x, ushort y, ushort z, BlockFaceDirection dir, int x2, int y2, int z2, BlockFaceDirection dir2 ) : void |
public AddBlock ( ushort x, ushort y, ushort z, BlockType blockType ) : void | ||
x | ushort | |
y | ushort | |
z | ushort | |
blockType | BlockType | |
return | void |
public BlockAtPoint ( Vector3 point ) : BlockType | ||
point | Vector3 | |
return | BlockType |
public BlockEngine ( |
||
gameInstance | ||
return | System |
public DrawLine ( GraphicsDevice graphicsDevice, Vector3 posStart, Vector3 posEnd, Color color, short points ) : void | ||
graphicsDevice | GraphicsDevice | |
posStart | Vector3 | |
posEnd | Vector3 | |
color | Color | |
points | short | |
return | void |
public GetLighting ( ushort &x, ushort &y, ushort &z ) : float | ||
x | ushort | |
y | ushort | |
z | ushort | |
return | float |
public GetRegion ( ushort x, ushort y, ushort z ) : uint | ||
x | ushort | |
y | ushort | |
z | ushort | |
return | uint |
public MakeRegionDirty ( int texture, int region ) : void | ||
texture | int | |
region | int | |
return | void |
public RayCollision ( Vector3 startPosition, Vector3 rayDirection, float distance, int searchGranularity, Vector3 &hitPoint, Vector3 &buildPoint ) : bool | ||
startPosition | Vector3 | |
rayDirection | Vector3 | |
distance | float | |
searchGranularity | int | |
hitPoint | Vector3 | |
buildPoint | Vector3 | |
return | bool |
public RayCollision ( Vector3 startPosition, Vector3 rayDirection, float distance, int searchGranularity, Vector3 &hitPoint, Vector3 &buildPoint, BlockType block ) : bool | ||
startPosition | Vector3 | |
rayDirection | Vector3 | |
distance | float | |
searchGranularity | int | |
hitPoint | Vector3 | |
buildPoint | Vector3 | |
block | BlockType | |
return | bool |
public RayCollision ( Vector3 startPosition, Vector3 src, int searchGranularity ) : bool | ||
startPosition | Vector3 | |
src | Vector3 | |
searchGranularity | int | |
return | bool |
public RemoveBlock ( ushort x, ushort y, ushort z ) : void | ||
x | ushort | |
y | ushort | |
z | ushort | |
return | void |
public Render ( GraphicsDevice graphicsDevice, GameTime gameTime ) : void | ||
graphicsDevice | GraphicsDevice | |
gameTime | GameTime | |
return | void |
public SolidAtPointForPlayer ( Vector3 point ) : bool | ||
point | Vector3 | |
return | bool |
public vertexBuffer_ContentLost ( object sender, EventArgs e ) : void | ||
sender | object | |
e | EventArgs | |
return | void |