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
631da2ca
Commit
631da2ca
authored
Sep 28, 2024
by
salix5
Committed by
GitHub
Sep 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean using effect_container, effect_vector (#632)
* clean using effect_container * clean using effect_vector
parent
301b8cc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
card.h
card.h
+2
-2
field.h
field.h
+2
-5
No files found.
card.h
View file @
631da2ca
...
...
@@ -26,6 +26,8 @@ struct chain;
using
card_set
=
std
::
set
<
card
*
,
card_sort
>
;
using
card_vector
=
std
::
vector
<
card
*>
;
using
effect_container
=
std
::
multimap
<
uint32
,
effect
*>
;
using
effect_indexer
=
std
::
unordered_map
<
effect
*
,
effect_container
::
iterator
>
;
struct
card_state
{
uint32
code
{
0
};
...
...
@@ -116,8 +118,6 @@ public:
return
std
::
hash
<
uint16
>
()(
v
.
second
);
}
};
using
effect_container
=
std
::
multimap
<
uint32
,
effect
*>
;
using
effect_indexer
=
std
::
unordered_map
<
effect
*
,
effect_container
::
iterator
>
;
using
effect_relation
=
std
::
unordered_set
<
std
::
pair
<
effect
*
,
uint16
>
,
effect_relation_hash
>
;
using
relation_map
=
std
::
unordered_map
<
card
*
,
uint32
>
;
using
counter_map
=
std
::
map
<
uint16
,
uint16
>
;
...
...
field.h
View file @
631da2ca
...
...
@@ -33,6 +33,8 @@ class duel;
class
group
;
class
effect
;
using
effect_vector
=
std
::
vector
<
effect
*>
;
bool
check_playerid
(
int32
playerid
);
struct
tevent
{
...
...
@@ -100,8 +102,6 @@ struct player_info {
card_vector
tag_list_extra
;
};
struct
field_effect
{
using
effect_container
=
std
::
multimap
<
uint32
,
effect
*>
;
using
effect_indexer
=
std
::
unordered_map
<
effect
*
,
effect_container
::
iterator
>
;
using
oath_effects
=
std
::
unordered_map
<
effect
*
,
effect
*>
;
using
effect_collection
=
std
::
unordered_set
<
effect
*>
;
using
gain_effects
=
std
::
unordered_map
<
card
*
,
effect
*>
;
...
...
@@ -171,7 +171,6 @@ union return_value {
int64
lvalue
[
SIZE_LVALUE
];
};
struct
processor
{
using
effect_vector
=
std
::
vector
<
effect
*>
;
using
option_vector
=
std
::
vector
<
uint32
>
;
using
card_list
=
std
::
list
<
card
*>
;
using
event_list
=
std
::
list
<
tevent
>
;
...
...
@@ -364,8 +363,6 @@ struct processor {
};
class
field
{
public:
using
effect_container
=
std
::
multimap
<
uint32
,
effect
*>
;
using
effect_vector
=
std
::
vector
<
effect
*>
;
using
card_list
=
std
::
list
<
card
*>
;
using
event_list
=
std
::
list
<
tevent
>
;
using
chain_list
=
std
::
list
<
chain
>
;
...
...
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