mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
nc.ns
This commit is contained in:
parent
672a46efa8
commit
42475c9b38
1 changed files with 68 additions and 0 deletions
|
|
@ -6,6 +6,74 @@ function () {
|
||||||
function NotificationCenter () {
|
function NotificationCenter () {
|
||||||
this.topics = {};
|
this.topics = {};
|
||||||
this.subUid = -1;
|
this.subUid = -1;
|
||||||
|
/*
|
||||||
|
var i = 0;
|
||||||
|
this.nc = {
|
||||||
|
client: {
|
||||||
|
view: {
|
||||||
|
mesh: {
|
||||||
|
create: i++,
|
||||||
|
add: i++,
|
||||||
|
remove: i++,
|
||||||
|
update: i++
|
||||||
|
},
|
||||||
|
playerInfo: {
|
||||||
|
createAndAdd: i++,
|
||||||
|
remove: i++,
|
||||||
|
update: i++
|
||||||
|
},
|
||||||
|
preloadBar: {
|
||||||
|
update: i++
|
||||||
|
},
|
||||||
|
fullScreen: {
|
||||||
|
change: i++
|
||||||
|
},
|
||||||
|
debugMode: {
|
||||||
|
toggle: i++
|
||||||
|
},
|
||||||
|
gameInfo: {
|
||||||
|
toggle: i++
|
||||||
|
}
|
||||||
|
events: {
|
||||||
|
ready: i++
|
||||||
|
}
|
||||||
|
},
|
||||||
|
input: {
|
||||||
|
handAction: {
|
||||||
|
request: i++
|
||||||
|
},
|
||||||
|
xy: {
|
||||||
|
change: i++
|
||||||
|
}
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
gameCommand: {
|
||||||
|
send: i++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
core: {
|
||||||
|
game: {
|
||||||
|
gameObject: {
|
||||||
|
add: i++,
|
||||||
|
remove: i++
|
||||||
|
}
|
||||||
|
events: {
|
||||||
|
level: {
|
||||||
|
loaded: i++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
pipeToLobby: function(v) { return v + "-ns.server.pipeToLobby")}
|
||||||
|
},
|
||||||
|
lobby: {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
NotificationCenter.prototype.trigger = function (topic /*, arguments*/) {
|
NotificationCenter.prototype.trigger = function (topic /*, arguments*/) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue