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
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-core
Commits
7fc57084
Commit
7fc57084
authored
Dec 18, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
57599149
dbeedf32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
interpreter.cpp
interpreter.cpp
+1
-0
libduel.cpp
libduel.cpp
+15
-0
scriptlib.h
scriptlib.h
+1
-0
No files found.
interpreter.cpp
View file @
7fc57084
...
@@ -519,6 +519,7 @@ static const struct luaL_Reg duellib[] = {
...
@@ -519,6 +519,7 @@ static const struct luaL_Reg duellib[] = {
{
"SetOperationInfo"
,
scriptlib
::
duel_set_operation_info
},
{
"SetOperationInfo"
,
scriptlib
::
duel_set_operation_info
},
{
"GetOperationInfo"
,
scriptlib
::
duel_get_operation_info
},
{
"GetOperationInfo"
,
scriptlib
::
duel_get_operation_info
},
{
"GetOperationCount"
,
scriptlib
::
duel_get_operation_count
},
{
"GetOperationCount"
,
scriptlib
::
duel_get_operation_count
},
{
"ClearOperationInfo"
,
scriptlib
::
duel_clear_operation_info
},
{
"CheckXyzMaterial"
,
scriptlib
::
duel_check_xyz_material
},
{
"CheckXyzMaterial"
,
scriptlib
::
duel_check_xyz_material
},
{
"SelectXyzMaterial"
,
scriptlib
::
duel_select_xyz_material
},
{
"SelectXyzMaterial"
,
scriptlib
::
duel_select_xyz_material
},
{
"Overlay"
,
scriptlib
::
duel_overlay
},
{
"Overlay"
,
scriptlib
::
duel_overlay
},
...
...
libduel.cpp
View file @
7fc57084
...
@@ -3201,6 +3201,21 @@ int32 scriptlib::duel_get_operation_count(lua_State *L) {
...
@@ -3201,6 +3201,21 @@ int32 scriptlib::duel_get_operation_count(lua_State *L) {
lua_pushinteger(L, ch->opinfos.size());
lua_pushinteger(L, ch->opinfos.size());
return 1;
return 1;
}
}
int32 scriptlib::duel_clear_operation_info(lua_State* L) {
check_action_permission(L);
check_param_count(L, 1);
uint32 ct = lua_tointeger(L, 1);
duel* pduel = interpreter::get_duel_info(L);
chain* ch = pduel->game_field->get_chain(ct);
if(!ch)
return 0;
for(auto& oit : ch->opinfos) {
if(oit.second.op_cards)
pduel->delete_group(oit.second.op_cards);
}
ch->opinfos.clear();
return 0;
}
int32 scriptlib::duel_check_xyz_material(lua_State *L) {
int32 scriptlib::duel_check_xyz_material(lua_State *L) {
check_param_count(L, 6);
check_param_count(L, 6);
check_param(L, PARAM_TYPE_CARD, 1);
check_param(L, PARAM_TYPE_CARD, 1);
...
...
scriptlib.h
View file @
7fc57084
...
@@ -513,6 +513,7 @@ public:
...
@@ -513,6 +513,7 @@ public:
static
int32
duel_set_operation_info
(
lua_State
*
L
);
static
int32
duel_set_operation_info
(
lua_State
*
L
);
static
int32
duel_get_operation_info
(
lua_State
*
L
);
static
int32
duel_get_operation_info
(
lua_State
*
L
);
static
int32
duel_get_operation_count
(
lua_State
*
L
);
static
int32
duel_get_operation_count
(
lua_State
*
L
);
static
int32
duel_clear_operation_info
(
lua_State
*
L
);
static
int32
duel_check_xyz_material
(
lua_State
*
L
);
static
int32
duel_check_xyz_material
(
lua_State
*
L
);
static
int32
duel_select_xyz_material
(
lua_State
*
L
);
static
int32
duel_select_xyz_material
(
lua_State
*
L
);
static
int32
duel_overlay
(
lua_State
*
L
);
static
int32
duel_overlay
(
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