Mischief.ECS.Messages
class Typeable m => Message (m :: k) Source #
Message typeclass.
add :: Message m => System () Source #
Register a new message type with the App. This will automatically create a corresponding resource.
write :: Message m => m -> System () Source #
Write a message.
read :: Message m => System [m] Source #
Read all the messages that haven't been read by the current system.