Remove terminal line code

This commit is contained in:
2025-08-15 12:01:17 +01:00
parent 09bd5f1029
commit e04d4fea31
4 changed files with 1 additions and 22 deletions
-4
View File
@@ -64,10 +64,6 @@ data TerminalLine
{ _tlPause :: Int
, _tlString :: TerminalLineString -- World -> (String, Color)
}
| TerminalLineTerminalEffect
{ _tlPause :: Int
, _tlTermEffect :: TmTm -- Terminal -> Terminal
}
| TerminalLineEffect
{ _tlPause :: Int
, _tlEffect :: TmWdWd --Terminal -> World -> World
-12
View File
@@ -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
-5
View File
@@ -55,7 +55,6 @@ import Dodge.SmoothScroll
import Dodge.SoundLogic
import Dodge.Spark
import Dodge.Terminal.Type
import Dodge.TmTm
import Dodge.TractorBeam.Update
import Dodge.Update.Camera
import Dodge.Update.Cloud
@@ -514,10 +513,6 @@ tmUpdate tm w = case w ^? cWorld . lWorld . terminals . ix (_tmID tm) . tmFuture
w
& pointTermParams . tmFutureLines %~ tail
& doTmWdWd eff tm
Just (TerminalLineTerminalEffect _ eff) ->
w
& pointTermParams . tmFutureLines %~ tail
& pointTermParams %~ doTmTm eff
where
pointTermParams = cWorld . lWorld . terminals . ix (_tmID tm)