#18 Started conversion to Game
This commit is contained in:
parent
d4fbcda73b
commit
de02c7113f
11 changed files with 300 additions and 112 deletions
|
@ -1,7 +1,7 @@
|
|||
module RPGEngine.Parse where
|
||||
|
||||
import RPGEngine.Data
|
||||
import RPGEngine.Parse.StructureElement
|
||||
import RPGEngine.Parse.StructElement
|
||||
import RPGEngine.Parse.Game
|
||||
|
||||
import Text.Parsec.String
|
||||
|
@ -14,6 +14,6 @@ type FileName = String
|
|||
----------------------------------------------------------------------
|
||||
|
||||
parseToGame :: FileName -> Game
|
||||
parseToGame filename = structureToGame structure
|
||||
where (Right structure) = unsafePerformIO io
|
||||
io = parseFromFile structureElement filename
|
||||
parseToGame filename = structToGame struct
|
||||
where (Right struct) = unsafePerformIO io
|
||||
io = parseFromFile structElement filename
|
Reference in a new issue