Add file, fix lamp doDamage space leak
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{-# LANGUAGE BangPatterns #-}
|
||||
module Dodge.Creature.Update
|
||||
where
|
||||
import Dodge.Data
|
||||
@@ -7,6 +8,9 @@ import System.Random
|
||||
|
||||
type CRUpdate = World -> (World -> World,StdGen) -> Creature -> ((World -> World,StdGen), Maybe Creature)
|
||||
|
||||
unrandUpdate :: (Creature -> World -> World) -> (Creature -> Maybe Creature)
|
||||
unrandUpdate
|
||||
:: (Creature -> World -> World)
|
||||
-> (Creature -> Maybe Creature)
|
||||
-> CRUpdate
|
||||
{-# INLINE unrandUpdate #-}
|
||||
unrandUpdate h cF w (f,g) cr = ( ( h cr . f , g) , cF cr )
|
||||
|
||||
Reference in New Issue
Block a user