Remove terminal line code
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -64,10 +64,6 @@ data TerminalLine
|
|||||||
{ _tlPause :: Int
|
{ _tlPause :: Int
|
||||||
, _tlString :: TerminalLineString -- World -> (String, Color)
|
, _tlString :: TerminalLineString -- World -> (String, Color)
|
||||||
}
|
}
|
||||||
| TerminalLineTerminalEffect
|
|
||||||
{ _tlPause :: Int
|
|
||||||
, _tlTermEffect :: TmTm -- Terminal -> Terminal
|
|
||||||
}
|
|
||||||
| TerminalLineEffect
|
| TerminalLineEffect
|
||||||
{ _tlPause :: Int
|
{ _tlPause :: Int
|
||||||
, _tlEffect :: TmWdWd --Terminal -> World -> World
|
, _tlEffect :: TmWdWd --Terminal -> World -> World
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
module Dodge.TmTm where
|
|
||||||
|
|
||||||
--import Control.Lens
|
|
||||||
import Dodge.Data.Terminal
|
|
||||||
|
|
||||||
doTmTm :: TmTm -> Terminal -> Terminal
|
|
||||||
doTmTm tmtm = case tmtm of
|
|
||||||
-- TmTmClearDisplayedLines -> tmDisplayedLines .~ []
|
|
||||||
-- TmTmSetStatus s -> tmStatus .~ s
|
|
||||||
TmId -> id
|
|
||||||
-- TmTmSetPartialCommand ms -> tmPartialCommand .~ ms
|
|
||||||
|
|
||||||
@@ -55,7 +55,6 @@ import Dodge.SmoothScroll
|
|||||||
import Dodge.SoundLogic
|
import Dodge.SoundLogic
|
||||||
import Dodge.Spark
|
import Dodge.Spark
|
||||||
import Dodge.Terminal.Type
|
import Dodge.Terminal.Type
|
||||||
import Dodge.TmTm
|
|
||||||
import Dodge.TractorBeam.Update
|
import Dodge.TractorBeam.Update
|
||||||
import Dodge.Update.Camera
|
import Dodge.Update.Camera
|
||||||
import Dodge.Update.Cloud
|
import Dodge.Update.Cloud
|
||||||
@@ -514,10 +513,6 @@ tmUpdate tm w = case w ^? cWorld . lWorld . terminals . ix (_tmID tm) . tmFuture
|
|||||||
w
|
w
|
||||||
& pointTermParams . tmFutureLines %~ tail
|
& pointTermParams . tmFutureLines %~ tail
|
||||||
& doTmWdWd eff tm
|
& doTmWdWd eff tm
|
||||||
Just (TerminalLineTerminalEffect _ eff) ->
|
|
||||||
w
|
|
||||||
& pointTermParams . tmFutureLines %~ tail
|
|
||||||
& pointTermParams %~ doTmTm eff
|
|
||||||
where
|
where
|
||||||
pointTermParams = cWorld . lWorld . terminals . ix (_tmID tm)
|
pointTermParams = cWorld . lWorld . terminals . ix (_tmID tm)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user