Crate perovskite_game_api
source ·Expand description
This crate contains APIs for defining game behaviors/content in Perovskite
Some APIs are re-exported directly from perovskite_server and are subject to change;
they are available with the unstable_api
crate feature.
Modules§
- Contains utilities for defining types of blocks in the world, as well as items that simply correspond to a block stored in inventory.
- Carts on rails
- Provides digital circuits that can be used in the default game.
- Provides colors that can be used in the default game, as well as a unified set of items representing dyes in different colors. Also provides functionality to colorize textures automatically, allowing one base texture to be used for multiple blocks in different colors.
- Common constant values useful to game content.
- Provides a default set of game content centered around exploring a natural procedurally-generated world, collecting resources through mining, converting resources to useful materials, building structures out of them, etc.
- Provides functionality to build and start a game and server.
- Contains utilities for defining items.
Macros§
- Convenience helper for including a texture in the source tree into the game.
Structs§
- A 3D coordinate in the world.
- Represents a location of a map chunk.
- Represents an offset of a block within a chunk.
- Marker that a struct may be extended in the future