feat: add a way to know if a scene is stored
This commit is contained in:
parent
2ad4cf8182
commit
f12074d659
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ function SceneManager:setScene(scene)
|
||||||
self.nextScene = scene
|
self.nextScene = scene
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function SceneManager:haveStoredScene(name)
|
||||||
|
return (self.storage[name] ~= nil)
|
||||||
|
end
|
||||||
|
|
||||||
function SceneManager:storeCurrentScene(name)
|
function SceneManager:storeCurrentScene(name)
|
||||||
self.storage[name] = self.currentScene
|
self.storage[name] = self.currentScene
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue