Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
ygopro
Commits
04448d7b
Commit
04448d7b
authored
Dec 18, 2023
by
Chen Bill
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add DuelPlayer.player_id
parent
fc4518b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
22 deletions
+17
-22
gframe/network.h
gframe/network.h
+17
-22
No files found.
gframe/network.h
View file @
04448d7b
...
...
@@ -12,16 +12,16 @@
namespace
ygo
{
struct
HostInfo
{
unsigned
int
lflist
;
unsigned
char
rule
;
unsigned
char
mode
;
unsigned
char
duel_rule
;
bool
no_check_deck
;
bool
no_shuffle_deck
;
unsigned
int
start_lp
;
unsigned
char
start_hand
;
unsigned
char
draw_count
;
unsigned
short
time_limit
;
unsigned
int
lflist
{
0
}
;
unsigned
char
rule
{
0
}
;
unsigned
char
mode
{
0
}
;
unsigned
char
duel_rule
{
0
}
;
bool
no_check_deck
{
false
}
;
bool
no_shuffle_deck
{
false
}
;
unsigned
int
start_lp
{
0
}
;
unsigned
char
start_hand
{
0
}
;
unsigned
char
draw_count
{
0
}
;
unsigned
short
time_limit
{
0
}
;
};
struct
HostPacket
{
unsigned
short
identifier
;
...
...
@@ -99,22 +99,17 @@ struct STOC_HS_WatchChange {
class
DuelMode
;
struct
DuelPlayer
{
unsigned
short
name
[
20
];
DuelMode
*
game
;
unsigned
char
type
;
unsigned
char
state
;
bufferevent
*
bev
;
DuelPlayer
()
{
game
=
0
;
type
=
0
;
state
=
0
;
bev
=
0
;
}
unsigned
short
name
[
20
]{
0
};
DuelMode
*
game
{
nullptr
};
unsigned
char
player_id
{
0xff
};
unsigned
char
type
{
0
};
unsigned
char
state
{
0
};
bufferevent
*
bev
{
0
};
};
class
DuelMode
{
public:
DuelMode
()
:
host_player
(
0
),
pduel
(
0
),
duel_stage
(
0
)
{}
DuelMode
()
:
host_player
(
nullptr
),
pduel
(
0
),
duel_stage
(
0
)
{}
virtual
~
DuelMode
()
{}
virtual
void
Chat
(
DuelPlayer
*
dp
,
void
*
pdata
,
int
len
)
{}
virtual
void
JoinGame
(
DuelPlayer
*
dp
,
void
*
pdata
,
bool
is_creater
)
{}
...
...
nanahira
@nanahira
mentioned in commit
b9870941
·
Dec 26, 2023
mentioned in commit
b9870941
mentioned in commit b987094158595295054f8340582e5c4d7ff48667
Toggle commit list
nanahira
@nanahira
mentioned in commit
34376c88
·
Dec 26, 2023
mentioned in commit
34376c88
mentioned in commit 34376c8807b4fef4f51d109178d67b12af9a4abc
Toggle commit list
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