| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.ECS.EventDef
Synopsis
- class Typeable e => Event e where
- eraseEvent :: e -> ErasedEvent
- data ErasedEvent where
- ErasedEvent :: forall e. Typeable e => e -> ErasedEvent
Documentation
class Typeable e => Event e where Source #
Event typeclass.
Minimal complete definition
Nothing
Methods
eraseEvent :: e -> ErasedEvent Source #
Instances
| (Typeable c, Typeable k) => Event (OnInsert c) Source # | |
Defined in Mischief.ECS.Events Methods eraseEvent :: OnInsert c -> ErasedEvent Source # | |
| (Typeable c, Typeable k) => Event (OnInsertRel c) Source # | |
Defined in Mischief.ECS.Events Methods eraseEvent :: OnInsertRel c -> ErasedEvent Source # | |
| (Typeable c, Typeable k) => Event (OnRemove c) Source # | |
Defined in Mischief.ECS.Events Methods eraseEvent :: OnRemove c -> ErasedEvent Source # | |
| (Typeable c, Typeable k) => Event (OnRemoveRel c) Source # | |
Defined in Mischief.ECS.Events Methods eraseEvent :: OnRemoveRel c -> ErasedEvent Source # | |
data ErasedEvent where Source #
Constructors
| ErasedEvent :: forall e. Typeable e => e -> ErasedEvent |