blob: 33242846b8c17547b2fdf3df4bf9d7b138e3b170 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- `Scene`
Scene = require "not.Object":extends()
function Scene:new ()
self.sleeping = false
self.hidden = false
self.inputDisabled = false
end
function Scene:delete () end
function Scene:update (dt) end
function Scene:draw () 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
|