mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 19:45:22 +09:00
Added __index to group linking to raw_group
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
--- Desction <get from json>
|
||||
--- Adds a system to manage and auto-create permission groups.
|
||||
-- @module ExpGamingCore@Group
|
||||
-- @author Cooldude2606
|
||||
-- @license Discord: Cooldude2606@5241
|
||||
@@ -17,7 +17,9 @@ local module_verbose = false
|
||||
-- @field _prototype the prototype of this class
|
||||
-- @field groups a table of all groups, includes auto complete on the indexing
|
||||
local Group = {
|
||||
_prototype = {},
|
||||
_prototype = setmetatable({},{
|
||||
__index=function(tbl,key) return rawget(rawget(tbl,'_raw_group'),key) end
|
||||
}),
|
||||
groups = setmetatable({},{
|
||||
__index=table.autokey,
|
||||
__newindex=function(tbl,key,value)
|
||||
|
||||
Reference in New Issue
Block a user