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
7b2a9fed
Commit
7b2a9fed
authored
Jun 05, 2012
by
zh99998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换行 readme
parent
5a87a77c
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
322 additions
and
300 deletions
+322
-300
.gitattributes
.gitattributes
+22
-0
README.txt
README.txt
+4
-4
lib/deck.rb
lib/deck.rb
+46
-46
lib/quickstart.rb
lib/quickstart.rb
+33
-33
lib/scene_config.rb
lib/scene_config.rb
+39
-39
lib/scene_deck.rb
lib/scene_deck.rb
+42
-42
lib/scene_login.rb
lib/scene_login.rb
+34
-34
lib/window_userlist.rb
lib/window_userlist.rb
+41
-41
lib/ygocore/event.rb
lib/ygocore/event.rb
+57
-57
lib/ygocore/server.yml
lib/ygocore/server.yml
+4
-4
No files found.
.gitattributes
0 → 100644
View file @
7b2a9fed
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
README.txt
View file @
7b2a9fed
== mycard
== mycard
这是一个游戏王对战器,与iDuel、ygocore协议兼容
这是一个游戏王对战器,与iDuel、ygocore协议兼容
目前开发进度约
60%,iDuel实现了观战、播放Replay和几个简单的战斗指令,ygocore的大厅
目前开发进度约
70%,iDuel实现了观战、播放Replay和几个简单的战斗指令,ygocore的对战平台
快捷键:
快捷键:
F12 返回标题画面
F12 返回标题画面
...
@@ -15,7 +15,7 @@ A: 请注意mycard左上角是否在自动更新,如果显示正在下载更
...
@@ -15,7 +15,7 @@ A: 请注意mycard左上角是否在自动更新,如果显示正在下载更
Q: 程序崩溃或无任何提示自动退出 或提示 【程序可能出现了一个bug,请到论坛反馈】
Q: 程序崩溃或无任何提示自动退出 或提示 【程序可能出现了一个bug,请到论坛反馈】
A: 重试一次。如果仍然这样 请联系作者
A: 重试一次。如果仍然这样 请联系作者
作者联系方式:
作者联系方式:
1. mycard的论坛(http://card.touhou.cc/boards)留言。
1. mycard的论坛 http://card.touhou.cc/boards
2. E-mail/QQ/GT: zh99998@gmail.com
2. E-mail/QQ/GT: zh99998@gmail.com
3. 在iduel社区或nwbbs的mycard发布帖回复
\ No newline at end of file
\ No newline at end of file
lib/deck.rb
View file @
7b2a9fed
#encoding: UTF-8
#encoding: UTF-8
#==============================================================================
#==============================================================================
# ■ Scene_Title
# ■ Scene_Title
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# title
# title
#==============================================================================
#==============================================================================
class
Deck
class
Deck
attr_accessor
:main
attr_accessor
:main
attr_accessor
:side
attr_accessor
:side
attr_accessor
:extra
attr_accessor
:extra
attr_accessor
:temp
attr_accessor
:temp
#DeckPath = '/media/44CACC1DCACC0D5C/game/yu-gi-oh/deck'
#DeckPath = '/media/44CACC1DCACC0D5C/game/yu-gi-oh/deck'
DeckPath
=
'E:/game/yu-gi-oh/deck'
DeckPath
=
'E:/game/yu-gi-oh/deck'
def
initialize
(
main
,
side
=
[],
extra
=
[],
temp
=
[])
def
initialize
(
main
,
side
=
[],
extra
=
[],
temp
=
[])
@main
=
main
@main
=
main
@side
=
side
@side
=
side
@extra
=
extra
@extra
=
extra
@temp
=
temp
@temp
=
temp
end
end
def
self
.
load
(
name
)
def
self
.
load
(
name
)
main
=
[]
main
=
[]
side
=
[]
side
=
[]
extra
=
[]
extra
=
[]
temp
=
[]
temp
=
[]
now
=
main
now
=
main
open
(
File
.
expand_path
(
name
,
DeckPath
))
do
|
file
|
open
(
File
.
expand_path
(
name
,
DeckPath
))
do
|
file
|
file
.
set_encoding
"GBK"
,
"UTF-8"
,
:invalid
=>
:replace
,
:undef
=>
:replace
file
.
set_encoding
"GBK"
,
"UTF-8"
,
:invalid
=>
:replace
,
:undef
=>
:replace
while
line
=
file
.
readline
.
chomp!
while
line
=
file
.
readline
.
chomp!
case
line
case
line
when
/^\[(.+?)\](?:\#.*\#)?$/
when
/^\[(.+?)\](?:\#.*\#)?$/
now
<<
Card
.
find
(
$1
.
to_sym
)
now
<<
Card
.
find
(
$1
.
to_sym
)
when
"####"
when
"####"
now
=
side
now
=
side
when
"===="
when
"===="
now
=
extra
now
=
extra
when
"$$$$"
when
"$$$$"
now
=
temp
now
=
temp
end
end
break
if
file
.
eof?
break
if
file
.
eof?
end
end
end
end
self
.
new
(
main
,
side
,
extra
,
temp
)
self
.
new
(
main
,
side
,
extra
,
temp
)
end
end
end
end
lib/quickstart.rb
View file @
7b2a9fed
require_relative
'game'
require_relative
'game'
require_relative
'user'
require_relative
'user'
require_relative
'room'
require_relative
'room'
require_relative
'ygocore/game'
require_relative
'ygocore/game'
$game
=
Ygocore
.
new
$game
=
Ygocore
.
new
uri
=
URI
.
unescape
URI
.
unescape
ARGV
.
first
[
9
,
ARGV
.
first
.
size
-
9
]
uri
=
URI
.
unescape
URI
.
unescape
ARGV
.
first
[
9
,
ARGV
.
first
.
size
-
9
]
case
uri
case
uri
when
/^(.*\.yrp)$/
when
/^(.*\.yrp)$/
require
'open-uri'
require
'open-uri'
open
(
"http://"
+
URI
.
escape
(
$1
),
'rb'
)
{
|
src
|
open
(
"http://"
+
URI
.
escape
(
$1
),
'rb'
)
{
|
src
|
Dir
.
mkdir
(
"replay"
)
unless
File
.
directory?
(
"replay"
)
Dir
.
mkdir
(
"replay"
)
unless
File
.
directory?
(
"replay"
)
open
(
'replay/'
+
File
.
basename
(
$1
),
'wb'
){
|
dest
|
open
(
'replay/'
+
File
.
basename
(
$1
),
'wb'
){
|
dest
|
dest
.
write
src
.
read
dest
.
write
src
.
read
}
}
}
}
Ygocore
.
replay
(
'replay/'
+
File
.
basename
(
$1
),
true
)
Ygocore
.
replay
(
'replay/'
+
File
.
basename
(
$1
),
true
)
when
/^(.*\.ydk)$/
when
/^(.*\.ydk)$/
require
'open-uri'
require
'open-uri'
open
(
"http://"
+
URI
.
escape
(
$1
),
'rb'
)
{
|
src
|
open
(
"http://"
+
URI
.
escape
(
$1
),
'rb'
)
{
|
src
|
Dir
.
mkdir
(
'ygocore/deck'
)
unless
File
.
directory?
(
"ygocore/deck"
)
Dir
.
mkdir
(
'ygocore/deck'
)
unless
File
.
directory?
(
"ygocore/deck"
)
open
(
'ygocore/deck/'
+
File
.
basename
(
$1
),
'wb'
){
|
dest
|
open
(
'ygocore/deck/'
+
File
.
basename
(
$1
),
'wb'
){
|
dest
|
dest
.
write
src
.
read
dest
.
write
src
.
read
}
}
}
}
Ygocore
.
run_ygocore
(
File
.
basename
(
$1
,
'.ydk'
),
true
)
Ygocore
.
run_ygocore
(
File
.
basename
(
$1
,
'.ydk'
),
true
)
when
/^(?:(.*)\:(.*)\@)?(.*)\:(\d+)\/(.*)$/
when
/^(?:(.*)\:(.*)\@)?(.*)\:(\d+)\/(.*)$/
require
'uri'
require
'uri'
$game
.
user
=
User
.
new
(
$1
.
to_sym
,
$1
)
if
$1
$game
.
user
=
User
.
new
(
$1
.
to_sym
,
$1
)
if
$1
$game
.
password
=
$2
if
$2
$game
.
password
=
$2
if
$2
$game
.
server
=
$3
$game
.
server
=
$3
$game
.
port
=
$4
.
to_i
$game
.
port
=
$4
.
to_i
Ygocore
.
run_ygocore
Room
.
new
(
0
,
$5
),
true
Ygocore
.
run_ygocore
Room
.
new
(
0
,
$5
),
true
end
end
\ No newline at end of file
lib/scene_config.rb
View file @
7b2a9fed
#encoding: UTF-8
#encoding: UTF-8
#==============================================================================
#==============================================================================
# ■ Scene_Config
# ■ Scene_Config
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# config
# config
#==============================================================================
#==============================================================================
class
Scene_Config
<
Scene
class
Scene_Config
<
Scene
require_relative
'window_config'
require_relative
'window_config'
BGM
=
'title.ogg'
BGM
=
'title.ogg'
def
start
def
start
@background
=
Surface
.
load
(
"graphics/config/background.png"
).
display_format
@background
=
Surface
.
load
(
"graphics/config/background.png"
).
display_format
@config_window
=
Window_Config
.
new
(
0
,
0
)
@config_window
=
Window_Config
.
new
(
0
,
0
)
super
super
end
end
def
handle
(
event
)
def
handle
(
event
)
case
event
case
event
when
Event
::
MouseMotion
when
Event
::
MouseMotion
self
.
windows
.
reverse
.
each
do
|
window
|
self
.
windows
.
reverse
.
each
do
|
window
|
if
window
.
include?
event
.
x
,
event
.
y
if
window
.
include?
event
.
x
,
event
.
y
@active_window
=
window
@active_window
=
window
@active_window
.
mousemoved
(
event
.
x
,
event
.
y
)
@active_window
.
mousemoved
(
event
.
x
,
event
.
y
)
break
break
end
end
end
end
when
Event
::
MouseButtonDown
when
Event
::
MouseButtonDown
case
event
.
button
case
event
.
button
when
Mouse
::
BUTTON_LEFT
when
Mouse
::
BUTTON_LEFT
@active_window
.
mousemoved
(
event
.
x
,
event
.
y
)
@active_window
.
mousemoved
(
event
.
x
,
event
.
y
)
@active_window
.
clicked
@active_window
.
clicked
when
4
when
4
@active_window
.
cursor_up
@active_window
.
cursor_up
when
5
when
5
@active_window
.
cursor_down
@active_window
.
cursor_down
end
end
else
else
super
super
end
end
end
end
end
end
\ No newline at end of file
lib/scene_deck.rb
View file @
7b2a9fed
#encoding: UTF-8
#encoding: UTF-8
#==============================================================================
#==============================================================================
# ■ Scene_Title
# ■ Scene_Title
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# title
# title
#==============================================================================
#==============================================================================
class
Scene_Deck
<
Scene
class
Scene_Deck
<
Scene
def
start
def
start
@deck_window
=
Window
.
new
(
600
,
0
,
400
,
800
)
@deck_window
=
Window
.
new
(
600
,
0
,
400
,
800
)
loaddeck
loaddeck
@deck_window
.
contents
.
blt
(
@deck
.
main
.
first
.
pic
,
200
,
0
)
@deck_window
.
contents
.
blt
(
@deck
.
main
.
first
.
pic
,
200
,
0
)
@deck
.
main
.
each_with_index
do
|
card
,
index
|
@deck
.
main
.
each_with_index
do
|
card
,
index
|
@deck_window
.
contents
.
draw_text
(
0
,
index
*
24
,
card
.
name
)
@deck_window
.
contents
.
draw_text
(
0
,
index
*
24
,
card
.
name
)
end
end
super
super
end
end
def
loaddeck
(
file
=
'/media/本地磁盘/zh99998/yu-gi-oh/token.txt'
)
def
loaddeck
(
file
=
'/media/本地磁盘/zh99998/yu-gi-oh/token.txt'
)
src
=
IO
.
read
(
file
)
src
=
IO
.
read
(
file
)
src
.
force_encoding
"GBK"
src
.
force_encoding
"GBK"
src
.
encode!
'UTF-8'
src
.
encode!
'UTF-8'
cards
=
{
:main
=>
[],
:side
=>
[],
:extra
=>
[],
:temp
=>
[]}
cards
=
{
:main
=>
[],
:side
=>
[],
:extra
=>
[],
:temp
=>
[]}
now
=
:main
now
=
:main
src
.
each_line
do
|
line
|
src
.
each_line
do
|
line
|
if
line
=~
/\[(.+)\]##(.*)\r\n/
if
line
=~
/\[(.+)\]##(.*)\r\n/
cards
[
now
]
<<
Card
.
find
(
$1
.
to_sym
)
cards
[
now
]
<<
Card
.
find
(
$1
.
to_sym
)
elsif
line
[
'####'
]
elsif
line
[
'####'
]
now
=
:side
now
=
:side
elsif
line
[
'===='
]
elsif
line
[
'===='
]
now
=
:extra
now
=
:extra
elsif
line
[
'$$$$'
]
elsif
line
[
'$$$$'
]
now
=
:temp
now
=
:temp
end
end
end
end
@deck
=
Deck
.
new
(
cards
[
:main
],
cards
[
:side
],
cards
[
:extra
],
cards
[
:temp
])
@deck
=
Deck
.
new
(
cards
[
:main
],
cards
[
:side
],
cards
[
:extra
],
cards
[
:temp
])
end
end
def
update
def
update
end
end
end
end
lib/scene_login.rb
View file @
7b2a9fed
#encoding: UTF-8
#encoding: UTF-8
#==============================================================================
#==============================================================================
# ■ Scene_Login
# ■ Scene_Login
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# login
# login
#==============================================================================
#==============================================================================
require_relative
'window_gameselect'
require_relative
'window_gameselect'
require_relative
'window_announcements'
require_relative
'window_announcements'
require_relative
'window_login'
require_relative
'window_login'
require_relative
'scene_replay'
require_relative
'scene_replay'
require_relative
'scene_lobby'
require_relative
'scene_lobby'
class
Scene_Login
<
Scene
class
Scene_Login
<
Scene
def
start
def
start
WM
::
set_caption
(
"MyCard v
#{
Update
::
Version
}
"
,
"MyCard"
)
WM
::
set_caption
(
"MyCard v
#{
Update
::
Version
}
"
,
"MyCard"
)
@background
=
Surface
.
load
(
"graphics/login/background.png"
).
display_format
@background
=
Surface
.
load
(
"graphics/login/background.png"
).
display_format
@gameselect_window
=
Window_GameSelect
.
new
(
117
,
269
)
@gameselect_window
=
Window_GameSelect
.
new
(
117
,
269
)
super
super
end
end
def
update
def
update
@gameselect_window
.
update
@gameselect_window
.
update
super
super
end
end
def
handle_game
(
event
)
def
handle_game
(
event
)
case
event
case
event
when
Game_Event
::
Login
when
Game_Event
::
Login
require_relative
'scene_lobby'
require_relative
'scene_lobby'
$scene
=
Scene_Lobby
.
new
$scene
=
Scene_Lobby
.
new
else
else
super
super
end
end
end
end
#def terminate
#def terminate
# @gameselect_window.destroy
# @gameselect_window.destroy
#end
#end
end
end
\ No newline at end of file
lib/window_userlist.rb
View file @
7b2a9fed
#==============================================================================
#==============================================================================
# ■ Scene_Title
# ■ Scene_Title
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# title
# title
#==============================================================================
#==============================================================================
require_relative
'window_user'
require_relative
'window_user'
require_relative
'window_scrollable'
require_relative
'window_scrollable'
class
Window_UserList
<
Window_Scrollable
class
Window_UserList
<
Window_Scrollable
attr_reader
:x
,
:y
,
:width
,
:height
attr_reader
:x
,
:y
,
:width
,
:height
WLH
=
20
WLH
=
20
def
initialize
(
x
,
y
,
items
)
def
initialize
(
x
,
y
,
items
)
#@contents = Surface.load "graphics/lobby/useritems.png"
#@contents = Surface.load "graphics/lobby/useritems.png"
#@background = Surface.load "graphics/lobby/useritems.png"
#@background = Surface.load "graphics/lobby/useritems.png"
super
(
x
,
y
,
272
,
540
)
super
(
x
,
y
,
272
,
540
)
@font
=
TTF
.
open
(
"fonts/wqy-microhei.ttc"
,
16
)
@font
=
TTF
.
open
(
"fonts/wqy-microhei.ttc"
,
16
)
@color
=
[
0x03
,
0x11
,
0x22
]
@color
=
[
0x03
,
0x11
,
0x22
]
@color_friend
=
[
0
,
128
,
0
]
@color_friend
=
[
0
,
128
,
0
]
@color_over
=
[
200
,
200
,
255
]
@color_over
=
[
200
,
200
,
255
]
@color_click
=
[
0x03
,
0x11
,
0x22
]
@color_click
=
[
0x03
,
0x11
,
0x22
]
#@contents.set_alpha(RLEACCEL, 80)
#@contents.set_alpha(RLEACCEL, 80)
@contents
.
fill_rect
(
0
,
0
,
@width
,
@height
,
0xFFFFFFFF
)
@contents
.
fill_rect
(
0
,
0
,
@width
,
@height
,
0xFFFFFFFF
)
self
.
items
=
items
self
.
items
=
items
end
end
def
draw_item
(
index
,
status
=
0
)
def
draw_item
(
index
,
status
=
0
)
case
status
case
status
when
0
when
0
@font
.
draw_blended_utf8
(
@contents
,
@items
[
index
].
name
,
0
,
item_rect
(
index
)[
1
],
*
@items
[
index
].
color
)
@font
.
draw_blended_utf8
(
@contents
,
@items
[
index
].
name
,
0
,
item_rect
(
index
)[
1
],
*
@items
[
index
].
color
)
when
1
when
1
@font
.
draw_shaded_utf8
(
@contents
,
@items
[
index
].
name
,
0
,
item_rect
(
index
)[
1
],
*
(
@items
[
index
].
color
+
@color_over
))
@font
.
draw_shaded_utf8
(
@contents
,
@items
[
index
].
name
,
0
,
item_rect
(
index
)[
1
],
*
(
@items
[
index
].
color
+
@color_over
))
when
2
when
2
@font
.
draw_shaded_utf8
(
@contents
,
@items
[
index
].
name
,
0
,
item_rect
(
index
)[
1
],
*
(
@items
[
index
].
color
+
@color_click
))
@font
.
draw_shaded_utf8
(
@contents
,
@items
[
index
].
name
,
0
,
item_rect
(
index
)[
1
],
*
(
@items
[
index
].
color
+
@color_click
))
end
end
end
end
def
clicked
def
clicked
return
unless
@index
return
unless
@index
@userwindow
=
Window_User
.
new
(
100
,
100
,
@items
[
@index
])
@userwindow
=
Window_User
.
new
(
100
,
100
,
@items
[
@index
])
end
end
def
mousemoved
(
x
,
y
)
def
mousemoved
(
x
,
y
)
return
unless
include
?(
x
,
y
)
return
unless
include
?(
x
,
y
)
self
.
index
=
(
y
-
@y
)
/
WLH
+
@scroll
self
.
index
=
(
y
-
@y
)
/
WLH
+
@scroll
end
end
end
end
\ No newline at end of file
lib/ygocore/event.rb
View file @
7b2a9fed
class
Game_Event
class
Game_Event
def
self
.
parse
(
header
,
data
)
def
self
.
parse
(
header
,
data
)
case
header
case
header
when
:login
when
:login
if
data
if
data
Login
.
new
parse_user
data
Login
.
new
parse_user
data
else
else
Error
.
new
(
'登录'
,
'用户名或密码错误'
)
Error
.
new
(
'登录'
,
'用户名或密码错误'
)
end
end
when
:users
when
:users
AllUsers
.
new
data
.
collect
{
|
user
|
parse_user
(
user
)}
AllUsers
.
new
data
.
collect
{
|
user
|
parse_user
(
user
)}
when
:rooms
when
:rooms
rooms_wait
=
[]
rooms_wait
=
[]
rooms_start
=
[]
rooms_start
=
[]
data
.
each
do
|
room
|
data
.
each
do
|
room
|
room
=
parse_room
(
room
)
room
=
parse_room
(
room
)
if
room
.
full?
if
room
.
full?
rooms_start
<<
room
rooms_start
<<
room
else
else
rooms_wait
<<
room
rooms_wait
<<
room
end
end
end
end
AllRooms
.
new
rooms_wait
+
rooms_start
AllRooms
.
new
rooms_wait
+
rooms_start
when
:newuser
when
:newuser
NewUser
.
new
parse_user
data
NewUser
.
new
parse_user
data
when
:missinguser
when
:missinguser
MissingUser
.
new
parse_user
data
MissingUser
.
new
parse_user
data
when
:newroom
when
:newroom
NewRoom
.
new
parse_room
data
NewRoom
.
new
parse_room
data
when
:missingroom
when
:missingroom
MissingRoom
.
new
parse_room
data
MissingRoom
.
new
parse_room
data
when
:chat
when
:chat
case
data
[
:channel
]
case
data
[
:channel
]
when
:lobby
when
:lobby
Chat
.
new
ChatMessage
.
new
User
.
new
(
data
[
:from
][
:id
],
data
[
:from
][
:name
]),
data
[
:message
],
:lobby
Chat
.
new
ChatMessage
.
new
User
.
new
(
data
[
:from
][
:id
],
data
[
:from
][
:name
]),
data
[
:message
],
:lobby
else
else
Chat
.
new
ChatMessage
.
new
User
.
new
(
data
[
:from
][
:id
],
data
[
:from
][
:name
]),
data
[
:message
],
User
.
new
(
data
[
:channel
])
Chat
.
new
ChatMessage
.
new
User
.
new
(
data
[
:from
][
:id
],
data
[
:from
][
:name
]),
data
[
:message
],
User
.
new
(
data
[
:channel
])
end
end
end
end
end
end
def
self
.
parse_room
(
room
)
def
self
.
parse_room
(
room
)
result
=
Room
.
new
(
room
[
:id
],
room
[
:name
])
result
=
Room
.
new
(
room
[
:id
],
room
[
:name
])
result
.
player1
=
room
[
:player1
]
&&
parse_user
(
room
[
:player1
])
result
.
player1
=
room
[
:player1
]
&&
parse_user
(
room
[
:player1
])
result
.
player2
=
room
[
:player2
]
&&
parse_user
(
room
[
:player2
])
result
.
player2
=
room
[
:player2
]
&&
parse_user
(
room
[
:player2
])
result
.
private
=
room
[
:private
]
result
.
private
=
room
[
:private
]
result
.
pvp
=
room
[
:pvp
]
result
.
pvp
=
room
[
:pvp
]
result
.
match
=
room
[
:match
]
result
.
match
=
room
[
:match
]
result
.
tag
=
room
[
:tag
]
result
.
tag
=
room
[
:tag
]
result
.
ot
=
room
[
:ot
]
result
.
ot
=
room
[
:ot
]
result
.
status
=
room
[
:status
]
result
.
status
=
room
[
:status
]
result
.
lp
=
room
[
:lp
]
result
.
lp
=
room
[
:lp
]
result
result
end
end
def
self
.
parse_user
(
user
)
def
self
.
parse_user
(
user
)
User
.
new
(
user
[
:id
],
user
[
:name
],
user
[
:certified
])
User
.
new
(
user
[
:id
],
user
[
:name
],
user
[
:certified
])
end
end
end
end
lib/ygocore/server.yml
View file @
7b2a9fed
register
:
http://card.touhou.cc/register
register
:
http://card.touhou.cc/register
api
:
http://122.0.65.71:7922/
api
:
http://122.0.65.71:7922/
index
:
http://card.touhou.cc/
index
:
http://card.touhou.cc/
server
:
122.0.65.71
server
:
122.0.65.71
port
:
7911
port
:
7911
\ No newline at end of file
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