Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
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
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
windbot
Commits
c62bc9ee
Commit
c62bc9ee
authored
Dec 27, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge
https://github.com/IceYGO/windbot
parents
aa31628f
029d67e6
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
5 deletions
+36
-5
BotWrapper/BotWrapper.sh
BotWrapper/BotWrapper.sh
+15
-0
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.
BotWrapper/BotWrapper.sh
0 → 100755
View file @
c62bc9ee
#!/bin/bash
cd
windbot
if
[
"$#"
-ne
3
]
;
then
mono WindBot.exe
else
command
=
$1
flag
=
$2
port
=
$3
arg
=
"
${
command
//\
'/\"}" # replace '
to
"
if [ "
$flag
" -eq 1 ]; then arg=
$arg
"
Hand=1
"; fi
arg=
$arg
"
Port=
"
$port
eval "
mono
WindBot.exe
"
$arg
fi
Dialogs/copy.zh-CN.json
View file @
c62bc9ee
{
{
"welcome"
:
[
"welcome"
:
[
"
AI功能正在测试中,遇到问题请及时反馈
。"
,
"
你好,我是一个机器人
。"
,
"
密码输入 AI#复制植物 就可以和我打牌了~
"
"
AI功能正在测试中,遇到问题请及时反馈。
"
],
],
"deckerror"
:
[
"deckerror"
:
[
"我的超主流卡组需要{0}才能玩。"
"我的超主流卡组需要{0}才能玩。"
...
...
Dialogs/swordsman.zh-CN.json
View file @
c62bc9ee
{
{
"welcome"
:
[
"welcome"
:
[
"你好,我是一个机器人。"
,
"你好,我是一个机器人。"
,
"AI功能正在测试中,遇到问题请及时反馈。"
,
"AI功能正在测试中,遇到问题请及时反馈。"
"新的风暴已经出现,怎么能够停滞不前!我的R5卡组也得到了加强!"
],
],
"deckerror"
:
[
"deckerror"
:
[
"抱歉,我的卡组里的{0}的数量似乎出了问题。"
"抱歉,我的卡组里的{0}的数量似乎出了问题。"
...
...
Game/GameBehavior.cs
View file @
c62bc9ee
...
@@ -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
);
...
@@ -371,6 +372,17 @@ namespace WindBot.Game
...
@@ -371,6 +372,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 @
c62bc9ee
...
@@ -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 @
c62bc9ee
...
@@ -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 @
c62bc9ee
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