mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
21 lines
324 B
Lua
21 lines
324 B
Lua
local entries = {}
|
|
local this = {}
|
|
|
|
function this.get(name)
|
|
local entry = entries[name]
|
|
if entry == nil then
|
|
entry = {}
|
|
entries[name] = entry
|
|
end
|
|
return entry
|
|
end
|
|
|
|
function this.has(name)
|
|
return entries[name] ~= nil
|
|
end
|
|
|
|
function this.reset(name)
|
|
entries[name] = nil
|
|
end
|
|
|
|
return this
|