chore(intellisense): improve parameter annotations and add missing comments
Touched up incorrect or missing Intellisense parameter annotations across several functions. Added some missing descriptions to improve editor support. Still more to do, but this is a small step forward for overall developer workflow. Also small fix in picklexp
This commit is contained in:
1 parent
866283162b
commit
c71a261115
88 files changed
+339
-286
No files matched your search
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
---This will send an alert to currently supported dispatch systems.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('bub-mdt') == 'missing' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('cd_dispatch') == 'missing' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('lb-tablet') == 'missing' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
@@ -13,7 +14,7 @@ local function getPriorityLevel(priority)
|
||||
end
|
||||
end
|
||||
|
||||
---commentThis will send an alert to the passed jobs
|
||||
---This will send an alert to the passed jobs
|
||||
---@param data table
|
||||
Dispatch.SendAlert = function(data)
|
||||
local streetName, _ = Utility.GetStreetNameAtCoords(data.coords)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('linden_outlawalert') == 'missing' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('ps-dispatch') == 'missing' then return end
|
||||
if GetResourceState('lb-tablet') == 'started' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('qs-dispatch') == 'missing' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('redutzu-mdt') == 'missing' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('tk_dispatch') == 'missing' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user