mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added a small bot script and the possibility to trigger Nc from Chuck.inspector
This commit is contained in:
parent
6149b6c47b
commit
6f5c24dd9c
2 changed files with 34 additions and 1 deletions
|
|
@ -21,10 +21,11 @@ requirejs([
|
|||
"Lib/Vendor/SocketIO",
|
||||
"Game/Config/Settings",
|
||||
"Lib/Utilities/Exception",
|
||||
"Lib/Utilities/NotificationCenter",
|
||||
"Menu/Menu"
|
||||
],
|
||||
|
||||
function (Networker, SocketIO, Settings, Exception, Menu) {
|
||||
function (Networker, SocketIO, Settings, Exception, Nc, Menu) {
|
||||
|
||||
var menu = new Menu();
|
||||
menu.onRun = function(channelName, nickname) {
|
||||
|
|
@ -41,6 +42,7 @@ function (Networker, SocketIO, Settings, Exception, Menu) {
|
|||
var networker = new Networker(socket, channelName, nickname);
|
||||
Chuck.inspector.networker = networker;
|
||||
Chuck.inspector.settings = Settings;
|
||||
Chuck.inspector.nc = Nc;
|
||||
Chuck.inspector.resetLevel = function() { networker.sendGameCommand("resetLevel"); }
|
||||
}
|
||||
menu.init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue