Crate lib_efo

Crate lib_efo 

Source
Expand description

§lib_efo

The engine that drives Epoch Forge. It contains a pure, representation of a fantasy world and all the logic needed to manipulate it.

All public types implement serde::Serialize / Deserialize so that they can be persisted easily. The World struct also offers a convenient World::load() / World::save() API that uses the default JSON file

Modules§

entity
Entity System
epoch
Epoch configuration and state
error
Error types that arise when interacting with the storage layer.
naming
Autonaming generator Supposed to be loaded with the world if needed
stats
Module that holds all statistics for an entity and the helper methods that operate on them.
utils
Utilities asserting that the data being worked on is sound and well formatted.

Macros§

io_err_with_help
Helper macro to convert a std::io::Error into an EpochError::Io with an attached help message.
items_table
Build a table with the exact border / separator style you posted and return the rendered string.
thin_newtype
Thin wrapper that derefs to the inner type.

Traits§

Displayable
A trait for types that can be displayed in a command-line tool.