Generalise weapon character modes

This commit is contained in:
2021-04-29 23:13:41 +02:00
parent 6a38950501
commit 619756dd73
8 changed files with 129 additions and 127 deletions
+2 -5
View File
@@ -5,6 +5,7 @@ module Dodge.Item.Attachment.Data
import Geometry.Data
import Control.Lens
import qualified Data.Sequence as Seq
data ItAttachment
= ItScope
@@ -16,11 +17,7 @@ data ItAttachment
| ItFuse {_itFuseTime :: Int}
| ItPhaseV {_itPhaseV :: Float}
| ItMode {_itMode :: Int}
| ItCharMode
{_itCharMode :: Char
,_itUpChar :: Char -> Char
,_itDownChar :: Char -> Char
}
| ItCharMode {_itCharMode :: Seq.Seq Char }
| ItTargetPos { _itTargetPos :: Point2 }
makeLenses ''ItAttachment