Add generic derivations and To/FromJSON instances
This commit is contained in:
@@ -19,7 +19,7 @@ drawRadarSweep pt = setLayer DebugLayer $ pictures sweepPics
|
||||
| otherwise = fromIntegral x / 10
|
||||
x = _rsTimer pt
|
||||
|
||||
rsObjectColor :: Object -> Color
|
||||
rsObjectColor :: ObjectType -> Color
|
||||
rsObjectColor ob = case ob of
|
||||
ObWall -> red
|
||||
ObCreature -> green
|
||||
|
||||
Reference in New Issue
Block a user