mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update session library
This commit is contained in:
parent
c9f9838747
commit
3cb295fd58
4 changed files with 10 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
local entries = {}
|
||||
local this = {}
|
||||
|
||||
function this.get_entry(name)
|
||||
function this.get(name)
|
||||
local entry = entries[name]
|
||||
if entry == nil then
|
||||
entry = {}
|
||||
|
|
@ -10,7 +10,11 @@ function this.get_entry(name)
|
|||
return entry
|
||||
end
|
||||
|
||||
function this.reset_entry(name)
|
||||
function this.has(name)
|
||||
return entries[name] ~= nil
|
||||
end
|
||||
|
||||
function this.reset(name)
|
||||
entries[name] = nil
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue