# Events

## Skill Node

A list of static events available in the `SkillNode` class.

| Name                | Description                                                                                                |
| ------------------- | ---------------------------------------------------------------------------------------------------------- |
| onUpgrade           | A callback for when any skill is upgraded. This accepts 1 argument: the affected skill (SkillNode).        |
| onDowngrade         | A callback for when any skill is downgraded. This accepts 1 argument: the affected skill (SkillNode).      |
| onSkillObtained     | A callback for when any skill is obtained. This accepts 1 argument: the affected skill (SkillNode).        |
| onSkillUnobtained   | A callback for when any skill becomes unobtained. This accepts 1 argument: the affected skill (SkillNode). |
| onSkillStateChanged | A callback for when any skill state is changed. This accepts 1 argument: the affected skill (SkillNode).   |

## Skill Node UGUI

A list of static events available in the `SkillNodeUGUI` class.

| Name           | Description                                                                                                               |
| -------------- | ------------------------------------------------------------------------------------------------------------------------- |
| onStateChanged | A callback for when any skill node is upgraded. This accepts 1 argument: the affected skill node (SkillNodeUGUI).         |
| onUpgrade      | A callback for when any skill node is upgraded. This accepts 1 argument: the affected skill node (SkillNodeUGUI).         |
| onDowngrade    | A callback for when any skill node is downgraded. This accepts 1 argument: the affected skill node (SkillNodeUGUI).       |
| onPointerEnter | A callback for when any skill node is hovered. This accepts 1 argument: the affected skill node (SkillNodeUGUI).          |
| onPointerExit  | A callback for when any skill node stops being hovered. This accepts 1 argument: the affected skill node (SkillNodeUGUI). |

## Web

A list of static events available in the `Web` class.

| Name          | Description                                                                                              |
| ------------- | -------------------------------------------------------------------------------------------------------- |
| onSkillsReset | A callback for when all skills of a web is reset. This accepts 1 argument: the web that was reset (Web). |
| onReverted    | A callback for when a web is reverted. This accepts 1 argument: the reverted web (Web).                  |

## Runtime Web Viewer

A list of static events available in the `RuntimeWebViewer` class.

| Name            | Description                                                                                                              |
| --------------- | ------------------------------------------------------------------------------------------------------------------------ |
| onLoadStarted   | A callback for when the web UI begins to load. This accepts 1 argument: the affected web viewer (RuntimeWebViewer).      |
| onLoadCompleted | A callback for when the web UI is finished loading. This accepts 1 argument: the affected web viewer (RuntimeWebViewer). |
