Refactor creature zoning

This commit is contained in:
2022-07-22 17:53:08 +01:00
parent 43e7d20b21
commit 39f4555697
17 changed files with 209 additions and 85 deletions
+3
View File
@@ -4,6 +4,7 @@ module Dodge.Data.Zoning where
import Geometry.Data
import Control.Lens
import qualified IntMapHelp as IM
import qualified Data.IntSet as IS
import StreamingHelp
data Zoning t a = Zoning
@@ -12,5 +13,7 @@ data Zoning t a = Zoning
, _znFunc :: Float -> a -> StreamOf Int2
-- , _znInsert :: a -> t a -> t a
}
newtype CrZoning = CrZoning {_getCrZoning :: IM.IntMap (IM.IntMap IS.IntSet)}
makeLenses ''Zoning
makeLenses ''CrZoning