linsyking / Messenger

A 2D game engine for Elm
17 stars 4 forks source link

Redesign GlobalData and Env #8

Closed linsyking closed 4 months ago

linsyking commented 1 year ago

Currently user can modify globaldata which has a lot of internal data that we want to hide from users.

Some entries should be read-only (and some should be hidden?) from users.

A simple idea would be create a new type called globalDataOut (might be derived from globalData) and users can only modify things in it.