Add raws, loaded statically from a folder
Add raw types with support for both creatures and items, loaded statically from a "raws" folder just like in the Rust version.
This commit is contained in:
parent
243104c410
commit
4d270712ae
10 changed files with 204 additions and 10 deletions
|
|
@ -4,15 +4,17 @@ import qualified Xanthous.Data.EntityMapSpec
|
|||
import qualified Xanthous.GameSpec
|
||||
import qualified Xanthous.MessageSpec
|
||||
import qualified Xanthous.OrphansSpec
|
||||
import qualified Xanthous.Entities.RawsSpec
|
||||
|
||||
main :: IO ()
|
||||
main = defaultMain test
|
||||
|
||||
test :: TestTree
|
||||
test = testGroup "Xanthous"
|
||||
[ Xanthous.DataSpec.test
|
||||
, Xanthous.Data.EntityMapSpec.test
|
||||
[ Xanthous.Data.EntityMapSpec.test
|
||||
, Xanthous.Entities.RawsSpec.test
|
||||
, Xanthous.GameSpec.test
|
||||
, Xanthous.MessageSpec.test
|
||||
, Xanthous.OrphansSpec.test
|
||||
, Xanthous.DataSpec.test
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
-- |
|
||||
|
||||
module Xanthous.DataSpec where
|
||||
module Xanthous.DataSpec (main, test) where
|
||||
|
||||
import Test.Prelude hiding (Right, Left, Down)
|
||||
import Xanthous.Data
|
||||
|
|
|
|||
16
test/Xanthous/Entities/RawsSpec.hs
Normal file
16
test/Xanthous/Entities/RawsSpec.hs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
-- |
|
||||
|
||||
module Xanthous.Entities.RawsSpec (main, test) where
|
||||
|
||||
import Test.Prelude
|
||||
import Xanthous.Entities.Raws
|
||||
|
||||
main :: IO ()
|
||||
main = defaultMain test
|
||||
|
||||
test :: TestTree
|
||||
test = testGroup "Xanthous.Entities.Raws"
|
||||
[ testGroup "raws"
|
||||
[ testCase "are all valid" $ raws `deepseq` pure ()
|
||||
]
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue