summaryrefslogtreecommitdiffhomepage
path: root/not/Scene.lua
diff options
context:
space:
mode:
Diffstat (limited to 'not/Scene.lua')
-rw-r--r--not/Scene.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/not/Scene.lua b/not/Scene.lua
new file mode 100644
index 0000000..c770fe4
--- /dev/null
+++ b/not/Scene.lua
@@ -0,0 +1,32 @@
+--- `Scene`
+Scene = require "not.Object":extends()
+
+function Scene:new ()
+ self.sleeping = false
+ self.hidden = false
+ self.inputDisabled = false
+end
+
+-- Following setters and getters are a little bit too much, I think. But they do follow general coding directions.
+function Scene:setSleeping (sleeping)
+ self.sleeping = sleeping
+end
+function Scene:isSleeping ()
+ return self.sleeping
+end
+
+function Scene:setHidden (hidden)
+ self.hidden = hidden
+end
+function Scene:isHidden ()
+ return self.hidden
+end
+
+function Scene:setInputDisabled (inputDisabled)
+ self.inputDisabled = inputDisabled
+end
+function Scene:isInputDisabled ()
+ return self.inputDisabled
+end
+
+return Scene