Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
nanahira
ygopro-core
Commits
673d4af0
Commit
673d4af0
authored
Dec 07, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
card: use default member initializer
parent
c0bc9404
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
42 deletions
+35
-42
card.h
card.h
+35
-42
No files found.
card.h
View file @
673d4af0
...
...
@@ -40,34 +40,31 @@ struct card_data {
};
struct
card_state
{
card_state
()
:
code
(
0
),
code2
(
0
),
type
(
0
),
level
(
0
),
rank
(
0
),
link
(
0
),
lscale
(
0
),
rscale
(
0
),
attribute
(
0
),
race
(
0
),
attack
(
0
),
defense
(
0
),
base_attack
(
0
),
base_defense
(
0
),
controler
(
PLAYER_NONE
),
location
(
0
),
sequence
(
0
),
position
(
0
),
reason
(
0
),
pzone
(
false
),
reason_card
(
nullptr
),
reason_player
(
PLAYER_NONE
),
reason_effect
(
nullptr
)
{}
uint32
code
;
uint32
code2
;
uint32
code
{
0
};
uint32
code2
{
0
};
std
::
vector
<
uint32
>
setcode
;
uint32
type
;
uint32
level
;
uint32
rank
;
uint32
link
;
uint32
lscale
;
uint32
rscale
;
uint32
attribute
;
uint32
race
;
int32
attack
;
int32
defense
;
int32
base_attack
;
int32
base_defense
;
uint8
controler
;
uint8
location
;
uint8
sequence
;
uint8
position
;
uint32
reason
;
bool
pzone
;
card
*
reason_card
;
uint8
reason_player
;
effect
*
reason_effect
;
uint32
type
{
0
};
uint32
level
{
0
};
uint32
rank
{
0
};
uint32
link
{
0
};
uint32
lscale
{
0
};
uint32
rscale
{
0
};
uint32
attribute
{
0
};
uint32
race
{
0
};
int32
attack
{
0
};
int32
defense
{
0
};
int32
base_attack
{
0
};
int32
base_defense
{
0
};
uint8
controler
{
PLAYER_NONE
};
uint8
location
{
0
};
uint8
sequence
{
0
};
uint8
position
{
0
};
uint32
reason
{
0
};
bool
pzone
{
false
};
card
*
reason_card
{
nullptr
};
uint8
reason_player
{
PLAYER_NONE
};
effect
*
reason_effect
{
nullptr
};
bool
is_location
(
int32
loc
)
const
;
inline
bool
is_main_mzone
()
const
{
return
location
==
LOCATION_MZONE
&&
sequence
>=
0
&&
sequence
<=
4
;
...
...
@@ -100,23 +97,19 @@ struct query_cache {
struct
material_info
{
// Synchron
card
*
limit_tuner
;
group
*
limit_syn
;
int32
limit_syn_minc
;
int32
limit_syn_maxc
;
card
*
limit_tuner
{
nullptr
}
;
group
*
limit_syn
{
nullptr
}
;
int32
limit_syn_minc
{
0
}
;
int32
limit_syn_maxc
{
0
}
;
// Xyz
group
*
limit_xyz
;
int32
limit_xyz_minc
;
int32
limit_xyz_maxc
;
group
*
limit_xyz
{
nullptr
}
;
int32
limit_xyz_minc
{
0
}
;
int32
limit_xyz_maxc
{
0
}
;
// Link
group
*
limit_link
;
card
*
limit_link_card
;
int32
limit_link_minc
;
int32
limit_link_maxc
;
material_info
()
:
limit_tuner
(
nullptr
),
limit_syn
(
nullptr
),
limit_syn_minc
(
0
),
limit_syn_maxc
(
0
),
limit_xyz
(
nullptr
),
limit_xyz_minc
(
0
),
limit_xyz_maxc
(
0
),
limit_link
(
nullptr
),
limit_link_card
(
nullptr
),
limit_link_minc
(
0
),
limit_link_maxc
(
0
)
{}
group
*
limit_link
{
nullptr
};
card
*
limit_link_card
{
nullptr
};
int32
limit_link_minc
{
0
};
int32
limit_link_maxc
{
0
};
};
const
material_info
null_info
;
...
...
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