Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
Windbot-408
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
神之吹息
Windbot-408
Commits
b9913445
Commit
b9913445
authored
Dec 27, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/moecube/windbot
parents
00a6d5c5
c62bc9ee
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
5 deletions
+21
-5
Dialogs/copy.zh-CN.json
Dialogs/copy.zh-CN.json
+2
-2
Dialogs/swordsman.zh-CN.json
Dialogs/swordsman.zh-CN.json
+1
-2
Game/GameBehavior.cs
Game/GameBehavior.cs
+12
-0
README.md
README.md
+5
-0
WindBotInfo.cs
WindBotInfo.cs
+1
-1
YGOSharp.OCGWrapper.Enums.dll
YGOSharp.OCGWrapper.Enums.dll
+0
-0
No files found.
Dialogs/copy.zh-CN.json
View file @
b9913445
{
{
"welcome"
:
[
"welcome"
:
[
"
AI功能正在测试中,遇到问题请及时反馈
。"
,
"
你好,我是一个机器人
。"
,
"
密码输入 AI#复制植物 就可以和我打牌了~
"
"
AI功能正在测试中,遇到问题请及时反馈。
"
],
],
"deckerror"
:
[
"deckerror"
:
[
"我的超主流卡组需要{0}才能玩。"
"我的超主流卡组需要{0}才能玩。"
...
...
Dialogs/swordsman.zh-CN.json
View file @
b9913445
{
{
"welcome"
:
[
"welcome"
:
[
"你好,我是一个机器人。"
,
"你好,我是一个机器人。"
,
"AI功能正在测试中,遇到问题请及时反馈。"
,
"AI功能正在测试中,遇到问题请及时反馈。"
"新的风暴已经出现,怎么能够停滞不前!我的R5卡组也得到了加强!"
],
],
"deckerror"
:
[
"deckerror"
:
[
"抱歉,我的卡组里的{0}的数量似乎出了问题。"
"抱歉,我的卡组里的{0}的数量似乎出了问题。"
...
...
Game/GameBehavior.cs
View file @
b9913445
...
@@ -88,6 +88,7 @@ namespace WindBot.Game
...
@@ -88,6 +88,7 @@ namespace WindBot.Game
_messages
.
Add
(
GameMessage
.
Draw
,
OnDraw
);
_messages
.
Add
(
GameMessage
.
Draw
,
OnDraw
);
_messages
.
Add
(
GameMessage
.
ShuffleDeck
,
OnShuffleDeck
);
_messages
.
Add
(
GameMessage
.
ShuffleDeck
,
OnShuffleDeck
);
_messages
.
Add
(
GameMessage
.
ShuffleHand
,
OnShuffleHand
);
_messages
.
Add
(
GameMessage
.
ShuffleHand
,
OnShuffleHand
);
_messages
.
Add
(
GameMessage
.
ShuffleExtra
,
OnShuffleExtra
);
_messages
.
Add
(
GameMessage
.
TagSwap
,
OnTagSwap
);
_messages
.
Add
(
GameMessage
.
TagSwap
,
OnTagSwap
);
_messages
.
Add
(
GameMessage
.
NewTurn
,
OnNewTurn
);
_messages
.
Add
(
GameMessage
.
NewTurn
,
OnNewTurn
);
_messages
.
Add
(
GameMessage
.
NewPhase
,
OnNewPhase
);
_messages
.
Add
(
GameMessage
.
NewPhase
,
OnNewPhase
);
...
@@ -374,6 +375,17 @@ namespace WindBot.Game
...
@@ -374,6 +375,17 @@ namespace WindBot.Game
card
.
SetId
(
packet
.
ReadInt32
());
card
.
SetId
(
packet
.
ReadInt32
());
}
}
private
void
OnShuffleExtra
(
BinaryReader
packet
)
{
int
player
=
GetLocalPlayer
(
packet
.
ReadByte
());
packet
.
ReadByte
();
foreach
(
ClientCard
card
in
_duel
.
Fields
[
player
].
ExtraDeck
)
{
if
(!
card
.
IsFaceup
())
card
.
SetId
(
packet
.
ReadInt32
());
}
}
private
void
OnTagSwap
(
BinaryReader
packet
)
private
void
OnTagSwap
(
BinaryReader
packet
)
{
{
int
player
=
GetLocalPlayer
(
packet
.
ReadByte
());
int
player
=
GetLocalPlayer
(
packet
.
ReadByte
());
...
...
README.md
View file @
b9913445
...
@@ -113,6 +113,11 @@ The parameters are same as commandlines, but low cased.
...
@@ -113,6 +113,11 @@ The parameters are same as commandlines, but low cased.
### Changelog
### Changelog
#### v0x1342 (2017-12-26)
-
Update YGOPro protrol to 0x1342
-
Add Linux BotWrapper (a simple bash script)
#### v0x1341 (2017-11-27)
#### v0x1341 (2017-11-27)
-
Update YGOPro protrol to 0x1341
-
Update YGOPro protrol to 0x1341
...
...
WindBotInfo.cs
View file @
b9913445
...
@@ -21,7 +21,7 @@ namespace WindBot
...
@@ -21,7 +21,7 @@ namespace WindBot
Host
=
"127.0.0.1"
;
Host
=
"127.0.0.1"
;
Port
=
7911
;
Port
=
7911
;
HostInfo
=
""
;
HostInfo
=
""
;
Version
=
0x134
1
;
Version
=
0x134
2
;
Hand
=
0
;
Hand
=
0
;
}
}
}
}
...
...
YGOSharp.OCGWrapper.Enums.dll
View file @
b9913445
No preview for this file type
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