Renderer/net/inventory.json
austin e1ec69c230
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
spawn item automatic generation
2024-11-14 15:14:36 -05:00

149 lines
5.3 KiB
JSON

{
"outputPath" : "./src/main/java/electrosphere/net/parser/",
"packageName" : "electrosphere.net.parser",
"categories":[
{
"categoryName" : "Inventory",
"data" : [
{
"name" : "itemTemplate",
"type" : "VAR_STRING"
},
{
"name" : "equipPointId",
"type" : "VAR_STRING"
},
{
"name" : "entityId",
"type" : "FIXED_INT"
},
{
"name" : "equipperId",
"type" : "FIXED_INT"
},
{
"name" : "containerType",
"type" : "FIXED_INT"
},
{
"name" : "toolbarId",
"type" : "FIXED_INT"
},
{
"name" : "itemActionCode",
"type" : "FIXED_INT"
},
{
"name" : "itemActionCodeState",
"type" : "FIXED_INT"
},
{
"name" : "viewTargetX",
"type" : "FIXED_DOUBLE"
},
{
"name" : "viewTargetY",
"type" : "FIXED_DOUBLE"
},
{
"name" : "viewTargetZ",
"type" : "FIXED_DOUBLE"
}
],
"messageTypes" : [
{
"messageName" : "addItemToInventory",
"description" : "Requests that the server add the item to the client entity's appropriate inventory",
"data" : [
"entityId",
"itemTemplate"
]
},
{
"messageName" : "removeItemFromInventory",
"data" : [
"entityId"
]
},
{
"messageName" : "clientRequestEquipItem",
"description" : "Requests that the server equip an item to the player's entity",
"data" : [
"equipPointId",
"entityId"
]
},
{
"messageName" : "serverCommandMoveItemContainer",
"description" : "Instructs the client to move an item to a container",
"data" : [
"entityId",
"containerType",
"equipPointId"
]
},
{
"messageName" : "serverCommandEquipItem",
"description" : "Instructs the client to equip an item to an entity",
"data" : [
"equipperId",
"containerType",
"equipPointId",
"entityId",
"itemTemplate"
]
},
{
"messageName" : "serverCommandUnequipItem",
"description" : "Instructs the client to unequip an item",
"data" : [
"equipperId",
"containerType",
"equipPointId"
]
},
{
"messageName" : "clientRequestUnequipItem",
"description" : "Requests that the server unequip an item from the client's entity",
"data" : [
"equipPointId"
]
},
{
"messageName" : "clientRequestAddToolbar",
"description" : "Requests that the server add the item to the client entity's toolbar",
"data" : [
"entityId",
"toolbarId"
]
},
{
"messageName" : "clientRequestAddNatural",
"description" : "Requests that the server add the item to the client entity's natural inventory",
"data" : [
"entityId"
]
},
{
"messageName" : "clientUpdateToolbar",
"description" : "Updates the server on the selected toolbar option",
"data" : [
"toolbarId"
]
},
{
"messageName" : "clientRequestPerformItemAction",
"description" : "Requests that the server have the entity perform its equipped item's action for the given equip point",
"data" : [
"equipPointId",
"itemActionCode",
"itemActionCodeState",
"viewTargetX",
"viewTargetY",
"viewTargetZ"
]
}
]
}
]
}