move Doc class

pull/79/head
Jon Eugster 3 years ago
parent d753d1d873
commit 60876b4a77

@ -65,6 +65,13 @@ structure InventoryDocEntry where
content : String
deriving ToJson, Repr, Inhabited
/-- The reduced version of `InventoryDocEntry` which is sent to the client -/
structure Doc where
name: String
displayName: String
text: String -- TODO: rename to `content`
deriving ToJson
/-- Another reduced version of `InventoryDocEntry` which is used for the tiles in the doc -/
structure ComputedInventoryItem where
/--

@ -65,12 +65,6 @@ structure DidOpenLevelParams where
definitions : Array ComputedInventoryItem
deriving ToJson, FromJson
structure Doc where
name: String
displayName: String
text: String
deriving ToJson
structure LoadDocParams where
name : Name
type : InventoryType

Loading…
Cancel
Save