904 lines
23 KiB
JSON
904 lines
23 KiB
JSON
|
|
{
|
||
|
|
"schemaVersion": "1.0.0",
|
||
|
|
"readme": "",
|
||
|
|
"modules": [
|
||
|
|
{
|
||
|
|
"kind": "javascript-module",
|
||
|
|
"path": "src/ui/combat-hud.js",
|
||
|
|
"declarations": [
|
||
|
|
{
|
||
|
|
"kind": "class",
|
||
|
|
"description": "",
|
||
|
|
"name": "CombatHUD",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleGameStateChange",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "e"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleMissionVictory"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleSkillClick",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "skillId"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleEndTurn",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "event"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleMovementClick"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleSkillHover",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "skillId"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handlePortraitClick",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_getThreatLevel"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_renderBar",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "label"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "current"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "max"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "type"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "combatState",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"attribute": "combatState"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "hidden",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "boolean"
|
||
|
|
},
|
||
|
|
"default": "false",
|
||
|
|
"attribute": "hidden",
|
||
|
|
"reflects": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "_missionVictoryHandler"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "_gameStateChangeHandler"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"events": [
|
||
|
|
{
|
||
|
|
"name": "skill-click",
|
||
|
|
"type": {
|
||
|
|
"text": "CustomEvent"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "end-turn",
|
||
|
|
"type": {
|
||
|
|
"text": "CustomEvent"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "movement-click",
|
||
|
|
"type": {
|
||
|
|
"text": "CustomEvent"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "hover-skill",
|
||
|
|
"type": {
|
||
|
|
"text": "CustomEvent"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"attributes": [
|
||
|
|
{
|
||
|
|
"name": "combatState",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"fieldName": "combatState"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "hidden",
|
||
|
|
"type": {
|
||
|
|
"text": "boolean"
|
||
|
|
},
|
||
|
|
"default": "false",
|
||
|
|
"fieldName": "hidden"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"superclass": {
|
||
|
|
"name": "LitElement",
|
||
|
|
"package": "lit"
|
||
|
|
},
|
||
|
|
"tagName": "combat-hud",
|
||
|
|
"customElement": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"exports": [
|
||
|
|
{
|
||
|
|
"kind": "js",
|
||
|
|
"name": "CombatHUD",
|
||
|
|
"declaration": {
|
||
|
|
"name": "CombatHUD",
|
||
|
|
"module": "src/ui/combat-hud.js"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "custom-element-definition",
|
||
|
|
"name": "combat-hud",
|
||
|
|
"declaration": {
|
||
|
|
"name": "CombatHUD",
|
||
|
|
"module": "src/ui/combat-hud.js"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "javascript-module",
|
||
|
|
"path": "src/ui/deployment-hud.js",
|
||
|
|
"declarations": [
|
||
|
|
{
|
||
|
|
"kind": "class",
|
||
|
|
"description": "",
|
||
|
|
"name": "DeploymentHUD",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_updateDeployedIds",
|
||
|
|
"description": "Converts deployed indices to unit IDs and updates deployedIds",
|
||
|
|
"privacy": "private"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_formatClassName",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "classId",
|
||
|
|
"description": "The class identifier",
|
||
|
|
"type": {
|
||
|
|
"text": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"description": "Formats a classId (e.g., \"CLASS_VANGUARD\") to a readable class name (e.g., \"Vanguard\")",
|
||
|
|
"return": {
|
||
|
|
"type": {
|
||
|
|
"text": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"privacy": "private"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_selectUnit",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleStartBattle"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "squad",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"attribute": "squad"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "deployedIds",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"attribute": "deployedIds"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "deployedIndices",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "selectedId",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"attribute": "selectedId"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "maxUnits",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "number"
|
||
|
|
},
|
||
|
|
"default": "4",
|
||
|
|
"attribute": "maxUnits"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "currentState",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"attribute": "currentState"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "missionDef",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"attribute": "missionDef"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"events": [
|
||
|
|
{
|
||
|
|
"name": "recall-unit",
|
||
|
|
"type": {
|
||
|
|
"text": "CustomEvent"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "unit-selected",
|
||
|
|
"type": {
|
||
|
|
"text": "CustomEvent"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "start-battle",
|
||
|
|
"type": {
|
||
|
|
"text": "CustomEvent"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"attributes": [
|
||
|
|
{
|
||
|
|
"name": "squad",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"fieldName": "squad"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "deployedIds",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"fieldName": "deployedIds"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "selectedId",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"fieldName": "selectedId"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "maxUnits",
|
||
|
|
"type": {
|
||
|
|
"text": "number"
|
||
|
|
},
|
||
|
|
"default": "4",
|
||
|
|
"fieldName": "maxUnits"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "currentState",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"fieldName": "currentState"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "missionDef",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"fieldName": "missionDef"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"superclass": {
|
||
|
|
"name": "LitElement",
|
||
|
|
"package": "lit"
|
||
|
|
},
|
||
|
|
"tagName": "deployment-hud",
|
||
|
|
"customElement": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"exports": [
|
||
|
|
{
|
||
|
|
"kind": "js",
|
||
|
|
"name": "DeploymentHUD",
|
||
|
|
"declaration": {
|
||
|
|
"name": "DeploymentHUD",
|
||
|
|
"module": "src/ui/deployment-hud.js"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "custom-element-definition",
|
||
|
|
"name": "deployment-hud",
|
||
|
|
"declaration": {
|
||
|
|
"name": "DeploymentHUD",
|
||
|
|
"module": "src/ui/deployment-hud.js"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "javascript-module",
|
||
|
|
"path": "src/ui/dialogue-overlay.js",
|
||
|
|
"declarations": [
|
||
|
|
{
|
||
|
|
"kind": "class",
|
||
|
|
"description": "",
|
||
|
|
"name": "DialogueOverlay",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_onUpdate",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "e"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_onEnd"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleInput",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "e"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "activeNode",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"attribute": "activeNode"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "isVisible",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "boolean"
|
||
|
|
},
|
||
|
|
"default": "false",
|
||
|
|
"attribute": "isVisible"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "_isProcessingClick",
|
||
|
|
"type": {
|
||
|
|
"text": "boolean"
|
||
|
|
},
|
||
|
|
"default": "false"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"attributes": [
|
||
|
|
{
|
||
|
|
"name": "activeNode",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"fieldName": "activeNode"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "isVisible",
|
||
|
|
"type": {
|
||
|
|
"text": "boolean"
|
||
|
|
},
|
||
|
|
"default": "false",
|
||
|
|
"fieldName": "isVisible"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"superclass": {
|
||
|
|
"name": "LitElement",
|
||
|
|
"package": "lit"
|
||
|
|
},
|
||
|
|
"tagName": "dialogue-overlay",
|
||
|
|
"customElement": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"exports": [
|
||
|
|
{
|
||
|
|
"kind": "js",
|
||
|
|
"name": "DialogueOverlay",
|
||
|
|
"declaration": {
|
||
|
|
"name": "DialogueOverlay",
|
||
|
|
"module": "src/ui/dialogue-overlay.js"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "custom-element-definition",
|
||
|
|
"name": "dialogue-overlay",
|
||
|
|
"declaration": {
|
||
|
|
"name": "DialogueOverlay",
|
||
|
|
"module": "src/ui/dialogue-overlay.js"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "javascript-module",
|
||
|
|
"path": "src/ui/game-viewport.js",
|
||
|
|
"declarations": [
|
||
|
|
{
|
||
|
|
"kind": "class",
|
||
|
|
"description": "",
|
||
|
|
"name": "GameViewport",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "#handleUnitSelected",
|
||
|
|
"privacy": "private",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "event"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "#handleStartBattle",
|
||
|
|
"privacy": "private"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "#handleEndTurn",
|
||
|
|
"privacy": "private"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "#handleSkillClick",
|
||
|
|
"privacy": "private",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "event"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "#handleMovementClick",
|
||
|
|
"privacy": "private"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "#setupCombatStateUpdates",
|
||
|
|
"privacy": "private"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "#clearState",
|
||
|
|
"privacy": "private"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "#updateSquad",
|
||
|
|
"privacy": "private"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "#updateCombatState",
|
||
|
|
"privacy": "private"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "squad",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"attribute": "squad"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "deployedIds",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"attribute": "deployedIds"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "combatState",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"attribute": "combatState"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "missionDef",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"attribute": "missionDef"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "debriefResult",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"attribute": "debriefResult"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"attributes": [
|
||
|
|
{
|
||
|
|
"name": "squad",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"fieldName": "squad"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "deployedIds",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"fieldName": "deployedIds"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "combatState",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"fieldName": "combatState"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "missionDef",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"fieldName": "missionDef"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "debriefResult",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"fieldName": "debriefResult"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"superclass": {
|
||
|
|
"name": "LitElement",
|
||
|
|
"package": "lit"
|
||
|
|
},
|
||
|
|
"tagName": "game-viewport",
|
||
|
|
"customElement": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"exports": [
|
||
|
|
{
|
||
|
|
"kind": "js",
|
||
|
|
"name": "GameViewport",
|
||
|
|
"declaration": {
|
||
|
|
"name": "GameViewport",
|
||
|
|
"module": "src/ui/game-viewport.js"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "custom-element-definition",
|
||
|
|
"name": "game-viewport",
|
||
|
|
"declaration": {
|
||
|
|
"name": "GameViewport",
|
||
|
|
"module": "src/ui/game-viewport.js"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "javascript-module",
|
||
|
|
"path": "src/ui/team-builder.js",
|
||
|
|
"declarations": [
|
||
|
|
{
|
||
|
|
"kind": "class",
|
||
|
|
"description": "",
|
||
|
|
"name": "TeamBuilder",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleUnlocksChanged",
|
||
|
|
"description": "Handles unlock changes by refreshing the class list."
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_initializeData",
|
||
|
|
"description": "Configures the component based on provided data."
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_renderDetails"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_selectSlot",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "index"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_assignItem",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "item"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_removeUnit",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "index"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_handleEmbark"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_formatItemName",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "id"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "method",
|
||
|
|
"name": "_formatSkillName",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "id"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "squad",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[null, null, null, null]",
|
||
|
|
"attribute": "squad"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "selectedSlotIndex",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "number"
|
||
|
|
},
|
||
|
|
"default": "0",
|
||
|
|
"attribute": "selectedSlotIndex"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "hoveredItem",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"attribute": "hoveredItem"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "mode",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "string"
|
||
|
|
},
|
||
|
|
"default": "\"DRAFT\"",
|
||
|
|
"attribute": "mode"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "availablePool",
|
||
|
|
"privacy": "public",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"attribute": "availablePool"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "field",
|
||
|
|
"name": "_poolExplicitlySet",
|
||
|
|
"type": {
|
||
|
|
"text": "boolean"
|
||
|
|
},
|
||
|
|
"description": "Whether availablePool was explicitly set (vs default empty)",
|
||
|
|
"default": "false"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"events": [
|
||
|
|
{
|
||
|
|
"name": "embark",
|
||
|
|
"type": {
|
||
|
|
"text": "CustomEvent"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"attributes": [
|
||
|
|
{
|
||
|
|
"name": "mode",
|
||
|
|
"type": {
|
||
|
|
"text": "string"
|
||
|
|
},
|
||
|
|
"default": "\"DRAFT\"",
|
||
|
|
"fieldName": "mode"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "availablePool",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[]",
|
||
|
|
"fieldName": "availablePool"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "squad",
|
||
|
|
"type": {
|
||
|
|
"text": "array"
|
||
|
|
},
|
||
|
|
"default": "[null, null, null, null]",
|
||
|
|
"fieldName": "squad"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "selectedSlotIndex",
|
||
|
|
"type": {
|
||
|
|
"text": "number"
|
||
|
|
},
|
||
|
|
"default": "0",
|
||
|
|
"fieldName": "selectedSlotIndex"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "hoveredItem",
|
||
|
|
"type": {
|
||
|
|
"text": "null"
|
||
|
|
},
|
||
|
|
"default": "null",
|
||
|
|
"fieldName": "hoveredItem"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"superclass": {
|
||
|
|
"name": "LitElement",
|
||
|
|
"package": "lit"
|
||
|
|
},
|
||
|
|
"tagName": "team-builder",
|
||
|
|
"customElement": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"exports": [
|
||
|
|
{
|
||
|
|
"kind": "js",
|
||
|
|
"name": "TeamBuilder",
|
||
|
|
"declaration": {
|
||
|
|
"name": "TeamBuilder",
|
||
|
|
"module": "src/ui/team-builder.js"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "custom-element-definition",
|
||
|
|
"name": "team-builder",
|
||
|
|
"declaration": {
|
||
|
|
"name": "TeamBuilder",
|
||
|
|
"module": "src/ui/team-builder.js"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|