Module tsukurou::world [−][src]
Data structures for handling world data.
Defines the World
, the parent structure for all world data; the Chunk
,
a grouping of blocks for dynamic world loading; and the Block
, the base
unit of construction in the world. Additionally provides a persistence
scheme using WorldLoader
.
Modules
block |
The |
chunk |
The |
Structs
Block |
Encapsulates any possible state that a block in the world can have. |
BlockUnit |
A marker type for |
Blocks |
A borrowing iterator over the blocks loaded by a world. Created using
the |
BlocksMut |
A mutably borrowing iterator over the blocks loaded by a world. Created
using the |
Chunk |
A cube of blocks. Worlds use them to organize blocks so that they can be dynamically loaded as needed. |
ChunkUnit |
A marker type for |
Displacement |
A delta between two locations, or a location relative to another. |
Location |
An absolute location in the world, most commonly used to identify |
World |
An ordered collection of blocks that are arranged in 3D space, dynamically loaded as "chunks". |
Type Definitions
BlockDisplacement |
Alias for displacements measured in blocks. |
BlockLocation |
Alias for locations for |
ChunkDisplacement |
Alias for displacements measured in chunks. |
ChunkLocation |
Alias for locations for |
Chunks |
A borrowing iterator over the chunks currently loaded by a world.
Created using the |
ChunksMut |
A mutably borrowing iterator over the chunks currently loaded by a world.
Created using the |
UnloadedChunks |
An iterator over chunks that were unloaded by a call to
|