Commit 1ff63a44 authored by mercury233's avatar mercury233

compile with coffee 1.10.0

parent 432d0233
...@@ -244,7 +244,7 @@ class Room ...@@ -244,7 +244,7 @@ class Room
param = [0, @hostinfo.lflist, @hostinfo.rule, @hostinfo.mode, (if @hostinfo.enable_priority then 'T' else 'F'), (if @hostinfo.no_check_deck then 'T' else 'F'), (if @hostinfo.no_shuffle_deck then 'T' else 'F'), @hostinfo.start_lp, @hostinfo.start_hand, @hostinfo.draw_count, @hostinfo.time_limit] param = [0, @hostinfo.lflist, @hostinfo.rule, @hostinfo.mode, (if @hostinfo.enable_priority then 'T' else 'F'), (if @hostinfo.no_check_deck then 'T' else 'F'), (if @hostinfo.no_shuffle_deck then 'T' else 'F'), @hostinfo.start_lp, @hostinfo.start_hand, @hostinfo.draw_count, @hostinfo.time_limit]
try try
@process = spawn './ygopro', param, cwd: settings.ygopro_path @process = spawn './ygopro', param, {cwd: settings.ygopro_path}
@process.on 'exit', (code)=> @process.on 'exit', (code)=>
@disconnector = 'server' unless @disconnector @disconnector = 'server' unless @disconnector
this.delete() this.delete()
......
// Generated by CoffeeScript 1.9.3 // Generated by CoffeeScript 1.10.0
(function() { (function() {
var Room, _, bunyan, get_memory_usage, log, settings, spawn, spawnSync, ygopro; var Room, _, bunyan, get_memory_usage, log, settings, spawn, spawnSync, ygopro;
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
}; };
function Room(name) { function Room(name) {
var draw_count, lflist, param, rule, start_hand, start_lp, time_limit; var draw_count, error1, lflist, param, rule, start_hand, start_lp, time_limit;
this.name = name; this.name = name;
this.alive = true; this.alive = true;
this.players = []; this.players = [];
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
}); });
}; };
})(this)); })(this));
} catch (_error) { } catch (error1) {
this.error = "建立房间失败,请重试"; this.error = "建立房间失败,请重试";
} }
} }
......
// Generated by CoffeeScript 1.9.3 // Generated by CoffeeScript 1.10.0
(function() { (function() {
var Graveyard, Room, _, bunyan, debug, dialogues, execFile, fs, http, http_server, log, net, os, path, request, settings, tips, tribute, url, ygopro; var Graveyard, Room, _, bunyan, debug, dialogues, execFile, fs, http, http_server, log, net, os, path, request, settings, tips, tribute, url, ygopro;
......
// Generated by CoffeeScript 1.9.3 // Generated by CoffeeScript 1.10.0
(function() { (function() {
var Struct, _, declaration, field, i, len, name, result, structs_declaration, type, typedefs; var Struct, _, declaration, field, i, len, name, result, structs_declaration, type, typedefs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment