SkillGraph
Last updated
Last updated
The main class for skill trees. This contains all skill tree data.
Name | Description | Type |
---|---|---|
Return Type: int
Calculates the number of points that would be required to completely upgrade all skills.
Return Type: int
Calculates the total number of points spent in this graph.
Resets all node states.
Return Type: SkillNode
Returns the node with the position index or null if it doesn't exist.
Parameters
Return Type: SkillNode
Returns the node with the index or null if it doesn't exist.
Parameters
Return Type: SkillNode
Returns the node with the key or null if it doesn't exist.
Parameters
Return Type: int
Returns the first available position index or -1 if no position is available.
Return Type: SkillNode
Creates and adds an empty skill node.
Parameters
Tries to unlock locked nodes.
Depletes all nodes which don't meet the requirements of remaining in the obtained state.
Return Type: List<SkillConnection>
Creates and returns a list of all connections of a specific node.
Parameters
Entirely copies the data of another skill graph.
Parameters
Copies the data from a savable skill graph.
Parameters
Return Type: SavableSkillGraph
Creates and returns a SavableSkillGraph from this graph.
Return Type: SkillGraph
Gets the skill graph by name.
Parameters
Return Type: SkillGraph
Gets the skill graph by ID.
Parameters
Return Type: SkillGraph
Creates a copy of a skill graph.
Parameters
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description |
---|---|
enabled
If this skill graph is enabled. Skill graphs must be enabled to be visible in-game.
bool
forPlayer
If this skill graph is for the player.
bool
id
The ID of the skill graph. This is best left unchanged.
string
displayName
The display name of the skill graph.
string
gridDimensions
The grid dimensions. This will control the number of initial graph skills.
Vector2Int
nodeSize
The size of each node.
float
nodeShape
The main shape of all nodes.
SkillNode.Shape
visibility
The visibility of the graph.
SkillGraph.GraphVisibility
nodes
A list of nodes in this graph.
List<SkillNode>
connections
A list of skill connections in this graph.
List<SkillConnection>
nodeCount
The amount of nodes that should exist.
int
positionIndex
The node's position index.
int
index
The node index.
int
key
The node key.
string
positionIndex
The position index of the skill node.
int
index
The index of the node.
int
other
The other skill graph.
SkillGraph
savable
The savable skill graph.
SavableSkillGraph
name
The name of the skill graph.
SkillGraph
id
The ID of the skill graph.
SkillGraph
original
The skill graph to copy.
SkillGraph
Visible
Allow the graph to be displayed in the skill tree window.
Hidden
Do not display in the skill tree window.