Add housing storage, guest permissions, and timed key destruction
This commit is contained in:
+113
-5
@@ -27,6 +27,12 @@
|
||||
},
|
||||
"craftResult": {
|
||||
"$ref": "#/definitions/CraftResult"
|
||||
},
|
||||
"houseState": {
|
||||
"$ref": "#/definitions/HouseState"
|
||||
},
|
||||
"houseRequest": {
|
||||
"$ref": "#/definitions/HouseRequest"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -71,7 +77,8 @@
|
||||
"attackId": {"type": "string"},
|
||||
"craftPool": {"type": "array", "items": {"$ref": "#/definitions/CraftStat"}},
|
||||
"craftRolls": {"type": "integer"},
|
||||
"weaponType": {"type": "string"}
|
||||
"weaponType": {"type": "string"},
|
||||
"furniture": {"$ref": "#/definitions/FurnitureProfile"}
|
||||
},
|
||||
"required": ["id", "name", "description", "slot", "weight", "dropChance", "requirements", "modifiers"]
|
||||
},
|
||||
@@ -96,7 +103,8 @@
|
||||
"combat": {"$ref": "#/definitions/CombatContent"},
|
||||
"crafting": {"$ref": "#/definitions/CraftingContent"},
|
||||
"powers": {"$ref": "#/definitions/PowerContent"},
|
||||
"building": {"$ref": "#/definitions/BuildingContent"}
|
||||
"building": {"$ref": "#/definitions/BuildingContent"},
|
||||
"housingVersion": {"type": "integer"}
|
||||
},
|
||||
"required": ["version", "titles", "items", "stats"]
|
||||
},
|
||||
@@ -160,7 +168,8 @@
|
||||
"attackId": {"type": "string"},
|
||||
"craftPool": {"type": "array", "items": {"$ref": "#/definitions/CraftStat"}},
|
||||
"craftRolls": {"type": "integer"},
|
||||
"weaponType": {"type": "string"}
|
||||
"weaponType": {"type": "string"},
|
||||
"furniture": {"$ref": "#/definitions/FurnitureProfile"}
|
||||
},
|
||||
"required": ["name", "description", "slot", "weight", "dropChance", "requirements", "modifiers"]
|
||||
},
|
||||
@@ -250,7 +259,9 @@
|
||||
"craftedStacks": {"type": "array", "items": {"$ref": "#/definitions/CraftedStack"}},
|
||||
"powers": {"type": "object", "additionalProperties": {"$ref": "#/definitions/LearnedPower"}},
|
||||
"weapons": {"type": "object", "additionalProperties": {"$ref": "#/definitions/WeaponProgress"}},
|
||||
"casting": {"type": "string"}
|
||||
"casting": {"type": "string"},
|
||||
"houseId": {"type": "string"},
|
||||
"destroyKey": {"$ref": "#/definitions/KeyDestruction"}
|
||||
},
|
||||
"required": ["entity", "inventory", "skills", "level", "experience", "experienceToNextLevel", "statPoints", "titles", "allocatedStats", "stats", "mana", "stamina", "carryWeight", "pendingVitalChoices", "healthChoices", "manaChoices", "items", "equipment", "playedSeconds", "remainingSeconds", "kills", "ack", "hasKeystone", "gatherAttempt"]
|
||||
},
|
||||
@@ -294,7 +305,9 @@
|
||||
"requirementMessage": {"type": "string"},
|
||||
"attack": {"$ref": "#/definitions/CombatAttack"},
|
||||
"provenance": {"$ref": "#/definitions/CraftProvenance"},
|
||||
"weaponType": {"type": "string"}
|
||||
"weaponType": {"type": "string"},
|
||||
"furniture": {"$ref": "#/definitions/FurnitureProfile"},
|
||||
"houseId": {"type": "string"}
|
||||
},
|
||||
"required": ["id", "definitionId", "name", "description", "slot", "weight", "requirements", "modifiers", "equippable", "requirementMessage"]
|
||||
},
|
||||
@@ -980,6 +993,101 @@
|
||||
"maxSlope": {"type": "number"}
|
||||
},
|
||||
"required": ["definitions", "maxStructures", "range", "protectedRadius", "maxSlope"]
|
||||
},
|
||||
"FurnitureProfile": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"width": {"type": "number"},
|
||||
"depth": {"type": "number"},
|
||||
"container": {"type": "boolean"}
|
||||
},
|
||||
"required": ["width", "depth", "container"]
|
||||
},
|
||||
"KeyDestruction": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"keyId": {"type": "string"},
|
||||
"finishesAt": {"type": "number"}
|
||||
},
|
||||
"required": ["keyId", "finishesAt"]
|
||||
},
|
||||
"HouseInventory": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"inventory": {"type": "object", "additionalProperties": {"type": "integer"}},
|
||||
"items": {"type": "array", "items": {"$ref": "#/definitions/ItemInstance"}},
|
||||
"craftedStacks": {"type": "array", "items": {"$ref": "#/definitions/CraftedStack"}},
|
||||
"stackNames": {"type": "object", "additionalProperties": {"type": "string"}}
|
||||
},
|
||||
"required": ["inventory", "items", "craftedStacks", "stackNames"]
|
||||
},
|
||||
"HouseFurniture": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"item": {"$ref": "#/definitions/ItemInstance"},
|
||||
"x": {"type": "number"},
|
||||
"z": {"type": "number"},
|
||||
"contents": {"$ref": "#/definitions/HouseInventory"}
|
||||
},
|
||||
"required": ["item", "x", "z", "contents"]
|
||||
},
|
||||
"House": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"id": {"type": "string"},
|
||||
"name": {"type": "string"},
|
||||
"state": {"type": "string"},
|
||||
"revision": {"type": "integer"},
|
||||
"size": {"type": "number"},
|
||||
"permissions": {"type": "object", "additionalProperties": {"type": "boolean"}},
|
||||
"overrides": {"type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "boolean"}}},
|
||||
"roles": {"type": "object", "additionalProperties": {"type": "string"}},
|
||||
"furniture": {"type": "object", "additionalProperties": {"$ref": "#/definitions/HouseFurniture"}},
|
||||
"floor": {"$ref": "#/definitions/HouseInventory"}
|
||||
},
|
||||
"required": ["id", "name", "state", "revision", "size", "permissions", "overrides", "roles", "furniture", "floor"]
|
||||
},
|
||||
"HouseSummary": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"id": {"type": "string"},
|
||||
"name": {"type": "string"},
|
||||
"state": {"type": "string"},
|
||||
"role": {"type": "string"},
|
||||
"creator": {"type": "boolean"},
|
||||
"recoveryWorld": {"type": "string"},
|
||||
"keys": {"type": "integer"}
|
||||
},
|
||||
"required": ["id", "name", "state", "role", "creator", "recoveryWorld", "keys"]
|
||||
},
|
||||
"HouseRequest": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"requestId": {"type": "string"},
|
||||
"op": {"type": "string"},
|
||||
"houseId": {"type": "string"},
|
||||
"target": {"type": "string"},
|
||||
"item": {"type": "string"},
|
||||
"quantity": {"type": "integer"},
|
||||
"x": {"type": "number"},
|
||||
"z": {"type": "number"},
|
||||
"role": {"type": "string"},
|
||||
"name": {"type": "string"},
|
||||
"permissions": {"type": "object", "additionalProperties": {"type": "boolean"}},
|
||||
"revision": {"type": "integer"}
|
||||
},
|
||||
"required": ["requestId", "op"]
|
||||
},
|
||||
"HouseState": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"houses": {"type": "array", "items": {"$ref": "#/definitions/HouseSummary"}},
|
||||
"room": {"$ref": "#/definitions/House"},
|
||||
"role": {"type": "string"},
|
||||
"effective": {"type": "object", "additionalProperties": {"type": "boolean"}},
|
||||
"people": {"type": "array", "items": {"$ref": "#/definitions/Entity"}}
|
||||
},
|
||||
"required": ["houses", "role", "effective", "people"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user