Simplify Foreground

This commit is contained in:
2025-10-25 13:12:00 +01:00
parent 5fce0772f8
commit ff03efc41f
8 changed files with 6 additions and 21 deletions
+1 -3
View File
@@ -10,10 +10,8 @@ import Geometry
import ShapePicture
data ForegroundShape = ForegroundShape
{ _fsID :: Int
, _fsPos :: Point2
{ _fsPos :: Point2
, _fsDir :: Float
, _fsRad :: Float -- This should probably be a bounding box
, _fsSPic :: SPic
}
deriving (Eq, Ord, Show, Read) --Generic, Flat)
+1 -1
View File
@@ -127,7 +127,7 @@ data LWorld = LWorld
, _worldEvents :: [WdWd]
, _delayedEvents :: [(Int, WdWd)]
, _buttons :: IM.IntMap Button
, _foreShapes :: IM.IntMap ForegroundShape
, _foreShapes :: [ForegroundShape]
, _lightSources :: IM.IntMap LightSource
, _lights :: [LSParam]
, _seenLocations :: IM.IntMap (WdP2, String)
-2
View File
@@ -36,8 +36,6 @@ data Debris = DebrisChunk
, _dbSpin :: Q.Quaternion Float
}
--data PropType = FallingBlock Material
data PropDraw
= PropDrawFlatTranslate SPic
| PropDoubleLampCover Float