Skip to content

Commit

Permalink
Update MockDevice.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlblom committed Oct 8, 2023
1 parent 60bfc76 commit dd2c675
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/DCS-BIOS/test/controls/MockDevice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function MockDevice:new(value)
return o
end

--- @func Mock of get a value of an argument. Returns mock value
--- Mock of get a value of an argument. Returns mock value
--- @param argument_id integer
--- @returns number
function MockDevice:get_argument_value(argument_id)
Expand All @@ -42,14 +42,14 @@ function MockDevice:performClickableAction(command_id, argument)
table.insert(self.clickable_actions, { [command_id] = argument })
end

--- @func Executes SetCommand on a device
--- Executes SetCommand on a device
--- @param command_id integer
--- @param value number
function MockDevice:SetCommand(command_id, value)
table.insert(self.set_commands, { [command_id] = value })
end

--- @func Sets argument value
--- Sets argument value
--- @param argument_id integer
--- @param value number
function MockDevice:set_argument_value(argument_id, value)
Expand Down

0 comments on commit dd2c675

Please sign in to comment.