Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
1ff63a44
Commit
1ff63a44
authored
Oct 15, 2015
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile with coffee 1.10.0
parent
432d0233
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
room.coffee
room.coffee
+1
-1
room.js
room.js
+3
-3
ygopro-server.js
ygopro-server.js
+1
-1
ygopro.js
ygopro.js
+1
-1
No files found.
room.coffee
View file @
1ff63a44
...
@@ -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
()
...
...
room.js
View file @
1ff63a44
// 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
=
"
建立房间失败,请重试
"
;
}
}
}
}
...
...
ygopro-server.js
View file @
1ff63a44
// 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
;
...
...
ygopro.js
View file @
1ff63a44
// 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment