Start move towards using assignable hotkeys for active equipment
This commit is contained in:
@@ -27,10 +27,19 @@ data EquipPosition
|
||||
| OnSpecial
|
||||
deriving (Eq, Ord)
|
||||
--deriving (Eq, Ord, Show, Read) --Generic, Flat)
|
||||
data Hotkey = HotkeyQ
|
||||
| HotkeyE
|
||||
| Hotkey1
|
||||
| Hotkey2
|
||||
| Hotkey3
|
||||
| Hotkey4
|
||||
deriving (Eq, Show, Read, Ord, Bounded, Enum) --Generic, Flat)
|
||||
|
||||
|
||||
deriveJSON defaultOptions ''EquipSite
|
||||
deriveJSON defaultOptions ''EquipPosition
|
||||
deriveJSON defaultOptions ''Hotkey
|
||||
instance ToJSONKey EquipPosition
|
||||
|
||||
instance FromJSONKey EquipPosition
|
||||
instance ToJSONKey Hotkey
|
||||
instance FromJSONKey Hotkey
|
||||
|
||||
Reference in New Issue
Block a user