gameCommand implementation

This commit is contained in:
Logsol 2013-01-04 03:02:05 +01:00
parent 6219a82fbd
commit c4c48ab821
10 changed files with 62 additions and 39 deletions

View file

@ -84,6 +84,10 @@ function (User, Channel, PipeToChannel, NotificationCenter) {
NotificationCenter.on('user/left', function (user) {
channelPipe.send('channel', { releaseUser: user.id });
}, this);
NotificationCenter.on('user/gameCommand', function (userId, data) {
channelPipe.sendToUser(userId, data);
}, this);
return channelPipe;
};