Move machine update into outside function
This commit is contained in:
@@ -180,7 +180,7 @@ defaultMachine :: Machine
|
||||
defaultMachine = Machine
|
||||
{ _mcID = 0
|
||||
, _mcWallIDs = mempty
|
||||
, _mcUpdate = defaultMachineUpdate
|
||||
-- , _mcUpdate = defaultMachineUpdate
|
||||
, _mcDraw = const mempty
|
||||
, _mcColor = white
|
||||
, _mcPos = V2 0 0
|
||||
@@ -193,6 +193,7 @@ defaultMachine = Machine
|
||||
, _mcName = ""
|
||||
, _mcMounts = mempty
|
||||
, _mcCloseSound = Nothing
|
||||
-- , _mcTriggerCond = const True
|
||||
}
|
||||
defaultMachineUpdate :: Machine -> World -> World
|
||||
defaultMachineUpdate mc
|
||||
|
||||
Reference in New Issue
Block a user