From 90f3fe49691f904cd6a7c29b6ac68a0c5a05dfa3 Mon Sep 17 00:00:00 2001 From: HowManySmall Date: Thu, 18 Mar 2021 20:25:40 -0600 Subject: [PATCH] added name --- src/enumerator/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/enumerator/init.lua b/src/enumerator/init.lua index 43d3c7e..cfa7c5b 100644 --- a/src/enumerator/init.lua +++ b/src/enumerator/init.lua @@ -80,7 +80,12 @@ local function enumerator(enumName, enumValues) end metatable.__index = lockTable({ + name = valueName, value = valueName, + rawName = function() + return valueName + end, + rawValue = function() return valueName end, @@ -105,7 +110,12 @@ local function enumerator(enumName, enumValues) end metatable.__index = lockTable({ + name = valueName, value = rawValue, + rawName = function() + return valueName + end, + rawValue = function() return rawValue end,