Crate yarnspinner_core

Source
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_yarnspinner for the Bevy engine.
  • If you wish to write an adapter crate for an engine yourself, use the yarnspinner crate.

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 YarnFn as a return type or parameter type without needing to know the implementation details of the YarnFn trait.
yarn_library
Create a Library from a list of named functions.