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