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
73bda6d3
Commit
73bda6d3
authored
Jun 26, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove Group.ForEach
parent
8f18da0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
libgroup.cpp
libgroup.cpp
+0
-17
scriptlib.h
scriptlib.h
+0
-1
No files found.
libgroup.cpp
View file @
73bda6d3
...
@@ -133,22 +133,6 @@ int32 scriptlib::group_get_count(lua_State *L) {
...
@@ -133,22 +133,6 @@ int32 scriptlib::group_get_count(lua_State *L) {
lua_pushinteger
(
L
,
pgroup
->
container
.
size
());
lua_pushinteger
(
L
,
pgroup
->
container
.
size
());
return
1
;
return
1
;
}
}
int32
scriptlib
::
group_for_each
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_GROUP
,
1
);
check_param
(
L
,
PARAM_TYPE_FUNCTION
,
2
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
group
*
pgroup
=
*
(
group
**
)
lua_touserdata
(
L
,
1
);
int32
f
=
interpreter
::
get_function_handle
(
L
,
2
);
int32
extraargs
=
lua_gettop
(
L
)
-
2
;
for
(
auto
&
pcard
:
pgroup
->
container
)
{
pduel
->
lua
->
add_param
(
pcard
,
PARAM_TYPE_CARD
);
for
(
int32
i
=
0
;
i
<
extraargs
;
++
i
)
pduel
->
lua
->
add_param
(
-
extraargs
+
i
,
PARAM_TYPE_INDEX
);
pduel
->
lua
->
call_function
(
f
,
1
+
extraargs
,
0
);
}
return
0
;
}
int32
scriptlib
::
group_filter
(
lua_State
*
L
)
{
int32
scriptlib
::
group_filter
(
lua_State
*
L
)
{
check_param_count
(
L
,
3
);
check_param_count
(
L
,
3
);
check_param
(
L
,
PARAM_TYPE_GROUP
,
1
);
check_param
(
L
,
PARAM_TYPE_GROUP
,
1
);
...
@@ -924,7 +908,6 @@ static const struct luaL_Reg grouplib[] = {
...
@@ -924,7 +908,6 @@ static const struct luaL_Reg grouplib[] = {
{
"GetFirst"
,
scriptlib
::
group_get_first
},
{
"GetFirst"
,
scriptlib
::
group_get_first
},
{
"GetCount"
,
scriptlib
::
group_get_count
},
{
"GetCount"
,
scriptlib
::
group_get_count
},
{
"__len"
,
scriptlib
::
group_get_count
},
{
"__len"
,
scriptlib
::
group_get_count
},
{
"ForEach"
,
scriptlib
::
group_for_each
},
{
"Filter"
,
scriptlib
::
group_filter
},
{
"Filter"
,
scriptlib
::
group_filter
},
{
"FilterCount"
,
scriptlib
::
group_filter_count
},
{
"FilterCount"
,
scriptlib
::
group_filter_count
},
{
"FilterSelect"
,
scriptlib
::
group_filter_select
},
{
"FilterSelect"
,
scriptlib
::
group_filter_select
},
...
...
scriptlib.h
View file @
73bda6d3
...
@@ -365,7 +365,6 @@ public:
...
@@ -365,7 +365,6 @@ public:
static
int32
group_get_next
(
lua_State
*
L
);
static
int32
group_get_next
(
lua_State
*
L
);
static
int32
group_get_first
(
lua_State
*
L
);
static
int32
group_get_first
(
lua_State
*
L
);
static
int32
group_get_count
(
lua_State
*
L
);
static
int32
group_get_count
(
lua_State
*
L
);
static
int32
group_for_each
(
lua_State
*
L
);
static
int32
group_filter
(
lua_State
*
L
);
static
int32
group_filter
(
lua_State
*
L
);
static
int32
group_filter_count
(
lua_State
*
L
);
static
int32
group_filter_count
(
lua_State
*
L
);
static
int32
group_filter_select
(
lua_State
*
L
);
static
int32
group_filter_select
(
lua_State
*
L
);
...
...
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