summaryrefslogtreecommitdiff
path: root/script/vm/global.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r--script/vm/global.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua
index 22235681..3a045b22 100644
--- a/script/vm/global.lua
+++ b/script/vm/global.lua
@@ -104,6 +104,11 @@ function mt:getName()
end
---@return string
+function mt:getCodeName()
+ return (self.name:gsub(vm.ID_SPLITE, '.'))
+end
+
+---@return string
function mt:asKeyName()
return self.cate .. '|' .. self.name
end