@package
usage
#1682
`@package` usage
#1682
-
Hello 👋 I am working on documenting the changes from |
Beta Was this translation helpful? Give feedback.
Answered by
sumneko
Nov 9, 2022
Replies: 1 comment
-
Packaged field is only visible in the same file ---@class unit
---@field package _skillMgr SkillManager --> inject a private field, used for component mode
local mt = GetClass('unit')
---@param skillName string
function mt:AddSkillByName(skillName)
if not self._skillMgr then
self._skillMgr = New('SkillManager', self)
end
return self._skillMgr:AddSkillByName(skillName)
end |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
carsakiller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Packaged field is only visible in the same file