Module bundle

Source
Expand description

Types for handling Bundles.

This module contains the Bundle trait and some other helper types.

Structs§

BundleId
For a specific World, this stores a unique value identifying a type of a registered Bundle.
BundleInfo
Stores metadata associated with a specific type of Bundle for a given World.
Bundles
Metadata for bundles. Stores a BundleInfo for each type of Bundle in a given world.

Enums§

InsertMode
What to do on insertion if a component already exists.

Traits§

Bundle
The Bundle trait enables insertion and removal of Components from an entity.
BundleEffect
An operation on an Entity that occurs after inserting the Bundle that defined this bundle effect. The order of operations is:
BundleFromComponents
Creates a Bundle by taking it from internal storage.
DynamicBundle
The parts from Bundle that don’t require statically knowing the components of the bundle.
NoBundleEffect
A trait implemented for BundleEffect implementations that do nothing. This is used as a type constraint for Bundle APIs that do not / cannot run DynamicBundle::Effect, such as “batch spawn” APIs.

Derive Macros§

Bundle