mischief-ecs
Safe HaskellNone
LanguageGHC2024

Mischief.ECS.Time

Synopsis

Documentation

class ToTime t where Source #

Methods

toTime :: t -> Time Source #

Instances

Instances details
ToTime FixedTime Source # 
Instance details

Defined in Mischief.ECS.Fixed

ToTime VirtualTime Source # 
Instance details

Defined in Mischief.ECS.Time

data Time Source #

Constructors

Time 

data TimeTypePref Source #

Instances

Instances details
PrefType TimeTypePref TimeTag Source # 
Instance details

Defined in Mischief.ECS.Time

data TimeTag where Source #

Constructors

TimeTag :: forall t. (Component t, ToTime t) => Proxy t -> TimeTag 

Instances

Instances details
PrefType TimeTypePref TimeTag Source # 
Instance details

Defined in Mischief.ECS.Time

qtime :: forall w (m :: Type -> Type). MonadSystem w m => Query m Time Source #

qdelta :: forall w (m :: Type -> Type). MonadSystem w m => Query m Float Source #

qelapsed :: forall w (m :: Type -> Type). MonadSystem w m => Query m Float Source #

data TimePlugin Source #

Plugin that keeps track of time. Enables calling delta, elapsed, and so on.

Note that these methods are context-dependent. For instance, if used in a Fixed schedule, delta will always return the time as inferred from the fixed frequency.

Instances

Instances details
Plugin TimePlugin Source # 
Instance details

Defined in Mischief.ECS.Time