class Woozy::Chunk
 
  - Woozy::Chunk
- Reference
- Object
Defined in:
chunk.crConstant Summary
- 
        Area = Size * Size
- 
        BitMask = Size - 1
- 
        BitSize = 5
- 
        Size = 1 << BitSize
- 
        Volume = (Size * Size) * Size
Constructors
- .new(position : Woozy::ChunkPos, block_palette : Hash(UInt16, Woozy::Block), block_ids : Array(UInt16))
- .new(position : Woozy::ChunkPos, default_block : Block)
Instance Method Summary
- #block_ids : Array(UInt16)
- #block_palette : Hash(UInt16, Block)
- #get_block(position : LocalPos) : Block
- #position : ChunkPos
- #set_block(position : LocalPos, block : Block) : Nil
Constructor Detail
        
        def self.new(position : Woozy::ChunkPos, block_palette : Hash(UInt16, Woozy::Block), block_ids : Array(UInt16))
        #