forked from phaserjs/phaser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.js
More file actions
55 lines (44 loc) · 1.04 KB
/
Copy pathPlugin.js
File metadata and controls
55 lines (44 loc) · 1.04 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
var Class = require('../utils/Class');
var NOOP = require('../utils/NOOP');
var Plugin = new Class({
initialize:
function Plugin (scene, systemName, sceneName)
{
if (sceneName === undefined) { sceneName = systemName; }
this.scene = scene;
this.system = {
systemName: systemName,
sceneName: sceneName,
active: true,
visible: true,
priority: {
begin: 0,
update: 0,
postUpdate: 0,
render: 0,
postRender: 0
}
};
},
setPriority: function (type, value)
{
this.system.priority[type] = value;
},
setActive: function (value)
{
this.system.active = value;
},
setVisible: function (value)
{
this.system.visible = value;
},
boot: NOOP,
begin: NOOP,
update: NOOP,
postUpdate: NOOP,
render: NOOP,
postRender: NOOP,
shutdown: NOOP,
destroy: NOOP
});
module.exports = Plugin;