linsyking/messenger-core/4.0.1

NOTE: the latest version is 20.0.0

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.

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/elm-messenger/messenger-core.

What we checked: The repo moved to github.com/elm-messenger/messenger-core. Rebuilt with git archive from commit 41af53fa4907 of https://github.com/elm-messenger/messenger-core (zip prefix linsyking-messenger-core-41af53f/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 866eb02aba0b347d1f7f52492fc07bf4f822cfa6.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/linsyking/messenger-core/zipball/4.0.1/

Messenger.GeneralModel

General Model

General model is designed to be an abstract interface of scenes, layers, components, game components, etc..

  • a: data type
  • b: environment type
  • c: init type
  • d: message type
  • e: target type
  • f: render type
type alias GeneralModel a b d e f =
{ name : String
, data : a
, update : b -> d -> a -> ( a, List ( e, d ), b )
, view : b -> a -> f
}

General Model.

This has a name field.

viewModelList : b -> List (GeneralModel a b d e f) -> List f

View model list.

viewModelArray : b -> Array (GeneralModel a b d e f) -> List f

View model array.