Skip to content

Commit 8bbbbe2

Browse files
committed
ENT inherits from ENTITY, and TOOL from Tool
1 parent 44e1cd4 commit 8bbbbe2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

custom/class.ENT.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
---@class ENT : Entity
1+
---@class ENT : ENTITY
22
ENT = {}

custom/class.TOOL.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
--- The **TOOL** table is used in Sandbox tool creation. You can find a list of callbacks on the page and a list of methods on the page. Do note that some of the fields below have no effect on server-side operations.
3+
---
4+
--- The tool information box drawn on the HUD while your tool is selected has 2 values that are set by [language.Add](https://wiki.facepunch.com/gmod/language.Add).
5+
--- * `tool.[tool mode].name` - The tool name (Note this is NOT the same as TOOL.Name)
6+
--- * `tool.[tool mode].desc` - The tool description
7+
---
8+
--- Ensure that all tool file names are entirely lowercase. Including capital letters can lead to unintended behavior.
9+
---
10+
---@class TOOL : Tool
11+
TOOL = {}

0 commit comments

Comments
 (0)