| Copyright | (c) Matt Hunzinger 2025 |
|---|---|
| License | BSD-style (see the LICENSE file in the distribution) |
| Maintainer | matt@hunzinger.me |
| Stability | provisional |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Aztecs.ECS.World.Storage.Dynamic
Description
Synopsis
- data DynamicStorage = DynamicStorage {
- storageDyn :: !Dynamic
- singletonDyn' :: !(Dynamic -> Dynamic)
- toAscVectorDyn' :: !(Dynamic -> Vector Dynamic)
- fromAscVectorDyn' :: !(Vector Dynamic -> Dynamic)
- dynStorage :: Storage a s => s -> DynamicStorage
- singletonDyn :: Dynamic -> DynamicStorage -> DynamicStorage
- fromAscVectorDyn :: Vector Dynamic -> DynamicStorage -> DynamicStorage
- toAscVectorDyn :: DynamicStorage -> Vector Dynamic
Documentation
data DynamicStorage Source #
Dynamic storage of components.
Constructors
| DynamicStorage | |
Fields
| |
Instances
| Show DynamicStorage Source # | |
Defined in Aztecs.ECS.World.Storage.Dynamic Methods showsPrec :: Int -> DynamicStorage -> ShowS # show :: DynamicStorage -> String # showList :: [DynamicStorage] -> ShowS # | |
dynStorage :: Storage a s => s -> DynamicStorage Source #
Create a dynamic storage from a storage.
singletonDyn :: Dynamic -> DynamicStorage -> DynamicStorage Source #
Singleton dynamic storage.
fromAscVectorDyn :: Vector Dynamic -> DynamicStorage -> DynamicStorage Source #
Convert from an ascending vector.
toAscVectorDyn :: DynamicStorage -> Vector Dynamic Source #
Convert this storage to an ascending vector.