Re-exports§
pub use component::Component;
pub use component::ComponentDesc;
pub use component::ComponentValue;
pub use component::ComponentValueBase;
pub use generated::components::core::ecs::*;
Modules§
Macros§
- components
- Defines components to use within the ECS.
Structs§
- Archetype
- Archetype
Filter - Archetype
Info - Debug information of an archetype
- Attribute
Store - Changed
Query - Commands
- Component
Deserializer - Component
Entry - Represents a type erased component and value
- Component
Registry - Component
Set - ComponentV
Table - Holds untyped information for everything a component can do
- DBEvent
Id - Debug
World Archetypes - Debuggable
- Default
Value - Provides a default for this component that will work with
MakeDefault
. - Description
- A user-friendly description. (e.g. “The player’s health from 0 to 1.”)
- Deser
Entity Data With Warnings - Use this struct while de-serializing an EntityData to also get warnings about missing/bad components. Only works with serde_json
- Deser
World With Warnings - Use this struct while de-serializing a World to also get warnings about missing/bad components. Only works with json.
- ECSDeserialization
Warnings - Entity
- Entity
Id - Entity
IdHash Builder - Entity
IdHasher - This just pipes a u64 value through
- Entity
Location - Entity
Move Data - External
- Indicates that this component was externally added.
- External
Component Attributes - External
Component Desc - External
Component Flag Attributes - FnSystem
- Frame
Event - Framed
Events - Events packed into a FIFO frame queue
- Framed
Events Iterator - Framed
Events Reader - Index
- An ECS entity index
- Index
Columns - Index
Field Value - Index
Key - Make
Default - Allows constructing a default value of the type
- Maybe
Resource - Indicates that this component can be used as a resource or component.
- Name
- A user-friendly name annotation, as opposed to the ID. (e.g. “Player Health” vs “player_health”).
- Networked
- Synchronize the component over the network to the clients
- Primitive
Component - Query
- Query
State - Resource
- Indicates that this component should be used as a resource only.
- Serializable
- Declares a component as
serde::Serialize
andserde::Deserialize
- Store
- Store the component on disk
- System
Group - Typed
Read Query - Typed
Read Write Query - World
- World
Diff - World
Events System - World
Stream - World
Stream Filter
Enums§
- Command
- ECSError
- Entity
Accessor - Index
Field - Index
IdField - Message
Serde Error - Error that can occur during message ser/de.
- Primitive
Component Container Type - Primitive
Component Type - Query
Event - World
Change - World
Stream Comp Event
Statics§
Traits§
- Attribute
Constructor - Initializes the attribute
- Component
Attribute - Represents a single attribute attached to a component
- Component
Query - Components
Tuple Append - Index
Ext - Message
- Implemented on all types that can be de/serialized from/to a
Vec<u8>
. - Message
Serde - Implemented for all types that can be serialized in a message.
- Runtime
Message - Implemented on all messages that come from the runtime.
- System
- World
Events Ext
Functions§
- ensure_
has_ component - ensure_
has_ component_ with_ default - ensure_
has_ component_ with_ make_ default - Uses the MakeDefault attribute. Will panic if this attribute is not present.
- index_
system - Creates and maintains an ECS Index as a resource on the world
- init_
components - query
- query_
mut - with_
component_ registry - world_
events