mordrax / cotwelm

Castle of the Winds (A Remake in Elm)
http://game.castleofthewinds.com
103 stars 11 forks source link

Refactor/items attempt three #16

Closed mordrax closed 7 years ago

mordrax commented 7 years ago

this is it...

mordrax commented 7 years ago

This is likely not to work because the single item type holds all the sub class fields and thus can be passed into any functions that demand at least a certain subset of fields thus making all functions that act on specific subsets not-typesafe