ToolClass
A script class that is instanced for every active Tool in the game.
Kind: API page
Environments: Game
Game
A tool something that a Player can equip by selecting it in the hotbar. For instance the Sledgehammer.
Fields
| Name | Type | Description |
|---|---|---|
data |
any | Data from the "data" json element. |
tool |
Tool | The Tool game object belonging to this class instance. |
network |
Network | A Network object that can be used to send messages between client and server. |
storage |
Storage | (Server side only.) A Storage object that can be used to store data for the next time loading this object after being unloaded. |