-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgameSystem.js
More file actions
41 lines (35 loc) · 908 Bytes
/
gameSystem.js
File metadata and controls
41 lines (35 loc) · 908 Bytes
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
/**
* Created by Jack.L on 2017/6/6.
*/
var gameObject = require('./gameObject');
var CLASS_PLAYER = gameObject.PLAYER;
var CLASS_ROOM = gameObject.ROOM;
module.exports =
(
function()
{
var instance =
{
Players:{},
Rooms:{},
conn:function(ws, id)
{
////////
var player = this.Players[id];
if( player )
{
this.Players[id] = null;
delete player;
}
////////
},
create_room:function()
{
},
close:function()
{
}
};
return instance;
}
)();