diff options
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r-- | script/vm/global.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua index 9bce3060..1c46c9a3 100644 --- a/script/vm/global.lua +++ b/script/vm/global.lua @@ -100,6 +100,11 @@ function mt:getName() end ---@return string +function mt:asKeyName() + return self.cate .. '|' .. self.name +end + +---@return string function mt:getKeyName() return self.name:match('[^' .. ID_SPLITE .. ']+$') end |