Refactor world events

This commit is contained in:
2022-07-22 14:30:53 +01:00
parent 7fdb70dd1c
commit 43e7d20b21
14 changed files with 95 additions and 40 deletions
+9
View File
@@ -0,0 +1,9 @@
module Dodge.WorldPos where
import Dodge.Data
import Dodge.Base.You
import Geometry
doWorldPos :: WdP2 -> World -> Point2
doWorldPos wp2 = case wp2 of
WdP2Const p -> const p
WdYouPos -> _crPos . you