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
6809e544
Commit
6809e544
authored
Dec 18, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new file: card_data.h
parent
e9ccdcba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
31 deletions
+35
-31
card.cpp
card.cpp
+0
-14
card.h
card.h
+1
-17
card_data.h
card_data.h
+34
-0
No files found.
card.cpp
View file @
6809e544
...
...
@@ -19,20 +19,6 @@ bool card_sort::operator()(void* const & p1, void* const & p2) const {
card
*
c2
=
(
card
*
)
p2
;
return
c1
->
cardid
<
c2
->
cardid
;
}
void
card_data
::
clear
()
{
code
=
0
;
alias
=
0
;
setcode
=
0
;
type
=
0
;
level
=
0
;
attribute
=
0
;
race
=
0
;
attack
=
0
;
defense
=
0
;
lscale
=
0
;
rscale
=
0
;
link_marker
=
0
;
}
bool
card_state
::
is_location
(
int32
loc
)
const
{
if
((
loc
&
LOCATION_FZONE
)
&&
location
==
LOCATION_SZONE
&&
sequence
==
5
)
return
true
;
...
...
card.h
View file @
6809e544
...
...
@@ -10,6 +10,7 @@
#include "common.h"
#include "effectset.h"
#include "card_data.h"
#include <set>
#include <map>
#include <unordered_set>
...
...
@@ -22,23 +23,6 @@ class effect;
class
group
;
struct
chain
;
struct
card_data
{
uint32
code
{
0
};
uint32
alias
{
0
};
uint64
setcode
{
0
};
uint32
type
{
0
};
uint32
level
{
0
};
uint32
attribute
{
0
};
uint32
race
{
0
};
int32
attack
{
0
};
int32
defense
{
0
};
uint32
lscale
{
0
};
uint32
rscale
{
0
};
uint32
link_marker
{
0
};
void
clear
();
};
struct
card_state
{
uint32
code
{
0
};
uint32
code2
{
0
};
...
...
card_data.h
0 → 100644
View file @
6809e544
#ifndef CARD_DATA_H_
#define CARD_DATA_H_
struct
card_data
{
uint32
code
{
0
};
uint32
alias
{
0
};
uint64
setcode
{
0
};
uint32
type
{
0
};
uint32
level
{
0
};
uint32
attribute
{
0
};
uint32
race
{
0
};
int32
attack
{
0
};
int32
defense
{
0
};
uint32
lscale
{
0
};
uint32
rscale
{
0
};
uint32
link_marker
{
0
};
void
clear
()
{
code
=
0
;
alias
=
0
;
setcode
=
0
;
type
=
0
;
level
=
0
;
attribute
=
0
;
race
=
0
;
attack
=
0
;
defense
=
0
;
lscale
=
0
;
rscale
=
0
;
link_marker
=
0
;
}
};
#endif
/* CARD_DATA_H_ */
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