Skip to content

Commit eb12057

Browse files
committed
Improve some diagnostics
CSEnt inherits Entity WEAPON inherits Weapon Weapon inherits Entity NETVERSIONSTR global SENSORBONE, TEXFILTER enum globals string empty default values are imported correctly
1 parent 4356d7c commit eb12057

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

custom/_globals.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ VERSION = nil
5353
---Contains a nicely formatted version of GMod. Example: "2020.12.11"
5454
VERSIONSTR = nil
5555

56+
---@type string
57+
---Contains the current networking version. Menu state only. Example: "2023.06.28"
58+
NETVERSIONSTR = nil
59+
5660
---@type string
5761
---The branch the game is running on. This will be "unknown" on main branch.
5862
BRANCH = nil
@@ -108,3 +112,17 @@ color_black = Color(0, 0, 0, 255)
108112
---@type Color
109113
---A color with only the alpha value set to 0.
110114
color_transparent = Color(255, 255, 255, 0)
115+
116+
--[[
117+
Table-type enums
118+
--]]
119+
120+
---@type table<string, number>
121+
---Enumerations used by Kinect SDK bindings.
122+
SENSORBONE = nil
123+
124+
---@type table<string, number>
125+
---Enumerations used by render.PushFilterMin and render.PushFilterMag.
126+
---
127+
---See [this](https://msdn.microsoft.com/en-us/library/windows/desktop/bb172615(v=vs.85).aspx) and [this page](https://en.wikipedia.org/wiki/Texture_filtering) for more information on texture filtering.
128+
TEXFILTER = nil

custom/class.CSEnt.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---@class CSEnt : Entity
2+
local CSEnt = {}

custom/class.WEAPON.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
---@class WEAPON : Entity
1+
---@class Weapon : Entity
2+
local Weapon = {}
3+
4+
---@class WEAPON : Weapon
25
local WEAPON = {}

src/scrapers/wiki-page-markup-scraper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export class WikiPageMarkupScraper extends Scraper<WikiPage> {
215215
description: $el.text()
216216
};
217217

218-
if ($el.attr('default'))
218+
if ($el.attr('default')!= undefined)
219219
argument.default = $el.attr('default')!;
220220

221221
return argument;

0 commit comments

Comments
 (0)