Renamed to elm-messenger/messenger-core. That is where the repository lives now. It has not been published as a package under the new name.
Versions published as linsyking/messenger-core still install under that name. 34 versions of 52 come from the new location (see their notes). 7 versions could not be recovered and cannot be installed.
Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage has not archived the repo; no fork with tag 16.1.0 found (17 same-name repos checked); no cached copy. Use another version.
General Model and Basic types for Scenes
Specialized Concrete scene for Messenger
Specialized Abstract scene for Messenger Note: MAbstractScene concretes the abstract general model with Event type and renderable type that is static regardless of what userdata, data, basedata or commondata is..
Unroll a rolled abstract scene.
Abstract a concrete scene to an abstract scene.
Initialize it with env and msg.
Scene Output Msg is the message directly handled by the top-level core.
scenemsg is a custom type which represents the message type users wants
to send to a scene when switching scenes.
SOMChangeScene (Maybe scenemsg) name is used to change to a target scene by giving the initial message and name of the scene.SOMAlert makes an alertSOMPrompt name title makes a prompt with name and title. This means the system will eject a some textbox with the given title and name.SOMPlayAudio channel name option is used to play an audio resource by giving channel name optionSOMStopAudio is used to stop a playing audio by giving the desired AudioTarget(see the docs on AudioTarget)SOMTransformAudio is used to transform a playing audio (e.g., adding some effects).SOMSetVolume is used to set the volume with a value from 0 to 1SOMSaveGlobalData saves the global by encode function given in UserConfigSOMLoadGC is used to load a global component by giving the GC.SOMUnloadGC is used to unload a global component by giving the target.SOMCallGC is used to call a global component by giving the target and message.SOMChangeFPS is used to change the FPS by giving the time interval.SOMLoadResource is used to load a resource by giving the name and resource definition.The type used to store the scene data. You should not handle this by yourself.
All scenes type
Messenger Msg
Messenger MsgBase This message base make concrete MMsg type from abstract Msg type. By using MMsgBase, messenger can know what is SOMMsg and make reaction to it accordingly. Users should use Msg at most of the time.
Specialized Concrete Model for Messenger
Specialized Abstract Model for Messenger
Change the update function to remap the result and return the changed abstract scene.
Global component common data.
Global component base data.
Global component message type.
Global component target type.
Abstract GlobalComponent Model.
Cannot be directly modified. Used for storage.
Concrete GlobalComponent Model
init type sugar
update type sugar. In a layered scene, the job is done by Messenger, so you don't have to write this. However, in a raw scene, the logic is up to you to decide, so you are supposed to imply this.
updaterec type sugar
view type sugar
GlobalComponent Storage
Rolled Abstract Scene Model.
Cannot be directedly modified. Used for storage.