Skip to content

Commit

Permalink
Improve TaskTick comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Dec 27, 2024
1 parent c6b29fb commit b3449f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lua/sim/ScriptTask.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ScriptTask = Class(moho.ScriptTask_Methods) {
self.CommandData = commandData
end,

--- Called by the engine in an interval. Function must return a value in TaskStatus
--- Called by the engine at an interval determined by the returned TaskStatus value
---@param self ScriptTask
---@return ScriptTaskStatus
TaskTick = function(self)
Expand Down
4 changes: 2 additions & 2 deletions lua/sim/tasks/EnhanceTask.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ EnhanceTask = Class(ScriptTask) {
end,

Stopping = State {
-- Called by the engine every tick. Function must return a value in TaskStatus
--- Called by the engine at an interval determined by the returned TaskStatus value
---@param self EnhanceTask
---@return ScriptTaskStatus
TaskTick = function(self)
Expand All @@ -62,7 +62,7 @@ EnhanceTask = Class(ScriptTask) {
},

Enhancing = State {
-- Called by the engine every tick. Function must return a value in TaskStatus
--- Called by the engine at an interval determined by the returned TaskStatus value
---@param self EnhanceTask
---@return ScriptTaskStatus
TaskTick = function(self)
Expand Down
2 changes: 1 addition & 1 deletion lua/sim/tasks/GiveTask.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ GiveTask = Class(ScriptTask) {
self.first = true
end,

-- Called by the engine every tick. Function must return a value in TaskStatus
--- Called by the engine at an interval determined by the returned TaskStatus value
---@param self GiveTask
---@return ScriptTaskStatus
TaskTick = function(self)
Expand Down
2 changes: 1 addition & 1 deletion lua/sim/tasks/TargetLocation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TargetLocation = Class(ScriptTask) {
local unit = self:GetUnit():OnTargetLocation(commandData.Location)
end,

-- Called by the engine every tick. Function must return a value in TaskStatus
--- Called by the engine at an interval determined by the returned TaskStatus value
---@param self TargetLocationTask
---@return ScriptTaskStatus
TaskTick = function(self)
Expand Down

0 comments on commit b3449f7

Please sign in to comment.