C# Class TerrainChunk, playable_alpha2

Mostra file Open project: kvakvs/playable_alpha2 Class Usage Examples

Public Methods

Method Description
AddBoxColliderTo ( GameObject coll_go, BoxCollider2D &bc, Vector2 bcBegin, int bcWidth ) : void
Edit ( int x, int y ) : void
Initialize ( ) : void
IsUsingVoxels ( Voxel v ) : bool
RebuildColliders ( ) : void
UseVoxels ( Voxel src_voxels, int chunkx, int chunky ) : void

Private Methods

Method Description
AddQuad ( Voxel, vx ) : void
RebuildMesh ( ) : void
TriangulateCell ( Voxel a ) : void
TriangulateCellRows ( ) : void

Method Details

AddBoxColliderTo() public method

public AddBoxColliderTo ( GameObject coll_go, BoxCollider2D &bc, Vector2 bcBegin, int bcWidth ) : void
coll_go GameObject
bc UnityEngine.BoxCollider2D
bcBegin Vector2
bcWidth int
return void

Edit() public method

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

Initialize() public method

public Initialize ( ) : void
return void

IsUsingVoxels() public method

public IsUsingVoxels ( Voxel v ) : bool
v Voxel
return bool

RebuildColliders() public method

public RebuildColliders ( ) : void
return void

UseVoxels() public method

public UseVoxels ( Voxel src_voxels, int chunkx, int chunky ) : void
src_voxels Voxel
chunkx int
chunky int
return void