Add items and inventory

Add a new "Item" entity, which pulls from the previously-existent
ItemType raw, and add a "PickUp" command which takes the (currently
*only*) item off the ground and puts it into the inventory.
This commit is contained in:
Griffin Smith 2019-09-19 13:56:14 -04:00
parent 15895c69fe
commit 62a2e05ef2
20 changed files with 365 additions and 106 deletions

View file

@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 86b7d3047b95fc65f4c6489a21e8c89883981c8c5bd552b5ea83aaf70de8a7cf
-- hash: 78a45f3d5eb8c2993c219fd4214f61e9842177fa4d97667aeaedbfe3d0842165
name: xanthous
version: 0.1.0.0
@ -41,6 +41,7 @@ library
Xanthous.Entities.Creature
Xanthous.Entities.Draw.Util
Xanthous.Entities.Environment
Xanthous.Entities.Item
Xanthous.Entities.Raws
Xanthous.Entities.RawTypes
Xanthous.Game
@ -79,6 +80,7 @@ library
, file-embed
, filepath
, generic-arbitrary
, generic-lens
, generic-monoid
, groups
, lens
@ -111,6 +113,7 @@ executable xanthous
Xanthous.Entities.Creature
Xanthous.Entities.Draw.Util
Xanthous.Entities.Environment
Xanthous.Entities.Item
Xanthous.Entities.Raws
Xanthous.Entities.RawTypes
Xanthous.Game
@ -148,6 +151,7 @@ executable xanthous
, file-embed
, filepath
, generic-arbitrary
, generic-lens
, generic-monoid
, groups
, lens
@ -200,6 +204,7 @@ test-suite test
, file-embed
, filepath
, generic-arbitrary
, generic-lens
, generic-monoid
, groups
, lens