move Doc class
This commit is contained in:
@@ -65,6 +65,13 @@ structure InventoryDocEntry where
|
|||||||
content : String
|
content : String
|
||||||
deriving ToJson, Repr, Inhabited
|
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 -/
|
/-- Another reduced version of `InventoryDocEntry` which is used for the tiles in the doc -/
|
||||||
structure ComputedInventoryItem where
|
structure ComputedInventoryItem where
|
||||||
/--
|
/--
|
||||||
|
|||||||
@@ -65,12 +65,6 @@ structure DidOpenLevelParams where
|
|||||||
definitions : Array ComputedInventoryItem
|
definitions : Array ComputedInventoryItem
|
||||||
deriving ToJson, FromJson
|
deriving ToJson, FromJson
|
||||||
|
|
||||||
structure Doc where
|
|
||||||
name: String
|
|
||||||
displayName: String
|
|
||||||
text: String
|
|
||||||
deriving ToJson
|
|
||||||
|
|
||||||
structure LoadDocParams where
|
structure LoadDocParams where
|
||||||
name : Name
|
name : Name
|
||||||
type : InventoryType
|
type : InventoryType
|
||||||
|
|||||||
Reference in New Issue
Block a user