Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
syntax_j
mycard
Commits
9e41e6af
Commit
9e41e6af
authored
Mar 18, 2012
by
zh99998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本0.4.3,iDuel建房修复
parent
e4b9b50e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lib/iduel/game.rb
lib/iduel/game.rb
+7
-1
No files found.
lib/iduel/game.rb
View file @
9e41e6af
...
@@ -31,7 +31,13 @@ class Iduel < Game
...
@@ -31,7 +31,13 @@ class Iduel < Game
send
(
1
,
@key
,
checknum
(
"UPINFOMSG"
,
@session
))
send
(
1
,
@key
,
checknum
(
"UPINFOMSG"
,
@session
))
end
end
def
host
(
name
,
password
=
""
,
lv
=
0
,
color
=
0
)
def
host
(
name
,
password
=
""
,
lv
=
0
,
color
=
0
)
send
(
6
,
@key
,
name
,
password
,
checknum
(
"JOINROOMMSG"
,
@session
+
name
+
password
+
"0"
),
0
,
color
,
lv
,
0
,
0
,
0
)
#TODO:v.ak, v.al
end
def
host
(
room_name
,
room_config
)
password
=
""
color
=
0
lv
=
0
send
(
6
,
@key
,
room_name
,
password
,
checknum
(
"JOINROOMMSG"
,
@session
+
room_name
+
password
+
"0"
),
0
,
color
,
lv
,
0
,
0
,
0
)
#TODO:v.ak, v.al
end
end
def
join
(
room
,
password
=
""
)
def
join
(
room
,
password
=
""
)
send
(
6
,
@key
,
room
.
id
,
password
,
checknum
(
"JOINROOMMSG"
,
@session
+
room
.
id
.
to_s
+
password
+
"1"
),
1
)
send
(
6
,
@key
,
room
.
id
,
password
,
checknum
(
"JOINROOMMSG"
,
@session
+
room
.
id
.
to_s
+
password
+
"1"
),
1
)
...
...
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