move Doc class

This commit is contained in:
Jon Eugster
2023-05-19 13:03:23 +02:00
parent d753d1d873
commit 60876b4a77
2 changed files with 7 additions and 6 deletions
+7
View File
@@ -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
/--
-6
View File
@@ -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