ohhecs-0.0.2: An Entity-Component-Systems engine core.
Copyright(C) 2020 Sophie Taylor
LicenseAGPL-3.0-or-later
MaintainerSophie Taylor <sophie@spacekitteh.moe>
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageGHC2021

Games.ECS.Slot

Description

Slots are logical places in a ComponentStore.

Synopsis

Documentation

class HasType a s where Source #

A helper class for a generic "has" Lens'.

Minimal complete definition

typed | getTyped, setTyped

Methods

typed :: Lens' s a Source #

A Lens' for accessing a well-known contained type.

getTyped :: s -> a Source #

A getter for accesing a well-known contained type.

setTyped :: a -> s -> s Source #

A setter for a well-known contained type.