| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.ECS.World.Insert
Synopsis
- insert :: HasCallStack => forall b. Bundle b => b -> Entity -> System ()
- insertNew :: Bundle b => b -> Entity -> System ()
- insertIfNeq :: BundleEq b => b -> Entity -> System ()
- qinsert :: Bundle b => b -> Entity -> Query System ()
- qinsertNew :: Bundle b => b -> Entity -> Query System ()
- qinsertIfNeq :: BundleEq b => b -> Entity -> Query System ()
- triggerAddEvent :: ProcessedBundleData -> Entity -> System ()
- triggerSetEvent :: ProcessedBundleData -> Entity -> System ()
Documentation
insert :: HasCallStack => forall b. Bundle b => b -> Entity -> System () Source #
Insert a bundle of components on an Entity.
If the entity already contains these components, their values will be updated in-place instead of causing an archetype change.
insertNew :: Bundle b => b -> Entity -> System () Source #
Insert a bundle of components on an Entity.
Only the components that the entity doesn't already have will be inserted, and the rest ignored.
qinsertIfNeq :: BundleEq b => b -> Entity -> Query System () Source #
The insertIfNeq function applied with qlift.
triggerAddEvent :: ProcessedBundleData -> Entity -> System () Source #
triggerSetEvent :: ProcessedBundleData -> Entity -> System () Source #