Skip to content

Commit

Permalink
feat: expose more modules
Browse files Browse the repository at this point in the history
  • Loading branch information
linsyking committed Jan 18, 2025
1 parent 11a2fe8 commit 61251a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "linsyking/messenger-core",
"summary": "Core library for Messenger.",
"license": "BSD-3-Clause",
"version": "16.0.0",
"version": "16.1.0",
"exposed-modules": {
"Base": [
"Messenger.Base",
Expand All @@ -25,7 +25,9 @@
"Messenger.Component.Component",
"Messenger.Component.GlobalComponent",
"Messenger.Audio.Base",
"Messenger.Audio.Audio"
"Messenger.Audio.Audio",
"Messenger.Resources.Base",
"Messenger.Render.Texture"
]
},
"elm-version": "0.19.0 <= v < 0.20.0",
Expand Down
4 changes: 4 additions & 0 deletions src/Messenger/Resources/Base.elm
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ igetSprite name dst =
Dict.get name dst


{-| Definition for a resource.
-}
type ResourceDef
= TextureRes String (Maybe REGL.TextureOptions)
| AudioRes String
| FontRes String String
| ProgramRes REGLProgram


{-| A list of resource definitions.
-}
type alias ResourceDefs =
List ( String, ResourceDef )

Expand Down

0 comments on commit 61251a9

Please sign in to comment.