Expand description
The core components of Yarn Spinner, used for both the compiler and the runtime. These mostly follow the same structure as in the original Yarn Spinner.
You probably don’t want to use this crate directly.
- If you’re a game developer, you’ll want to use a crate that is already designed for your game engine of choice,
such as
bevy_yarnspinnerfor the Bevy engine. - If you wish to write an adapter crate for an engine yourself, use the
yarnspinnercrate.
Modules§
- prelude
- Types and functions used all throughout the runtime and compiler.
- types
- Adapted from https://github.com/YarnSpinnerTool/YarnSpinner/blob/da39c7195107d8211f21c263e4084f773b84eaff/YarnSpinner/Types/IType.cs
Macros§
- yarn_
fn_ type - A macro for using
YarnFnas a return type or parameter type without needing to know the implementation details of theYarnFntrait. - yarn_
library - Create a
Libraryfrom a list of named functions.