C# Class CubeChunkGenerator, Cubes-in-Space

Inheritance: MonoBehaviour
Show file Open project: eric-kansas/Cubes-in-Space

Public Properties

Property Type Description
ChunkPeice GameObject
MaxAddChunkSize int
MaxAdditivePasses int
MinAddChunkSize int
MinAdditivePasses int
centerCubeGeneration bool

Public Methods

Method Description
GenerateFullChunk ( Vector3 startPos, int myId ) : GameObject
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
AddChunk ( Vector3 startPos ) : List
DeleteCenterCubes ( ) : void
MarkCenterCubes ( ) : void
RemoveDuplicates ( List currentChunk ) : void

Method Details

GenerateFullChunk() public method

public GenerateFullChunk ( Vector3 startPos, int myId ) : GameObject
startPos Vector3
myId int
return GameObject

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

ChunkPeice public property

public GameObject ChunkPeice
return GameObject

MaxAddChunkSize public property

public int MaxAddChunkSize
return int

MaxAdditivePasses public property

public int MaxAdditivePasses
return int

MinAddChunkSize public property

public int MinAddChunkSize
return int

MinAdditivePasses public property

public int MinAdditivePasses
return int

centerCubeGeneration public property

public bool centerCubeGeneration
return bool