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
de7daad9
Commit
de7daad9
authored
Apr 29, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
aa44b443
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
interpreter.cpp
interpreter.cpp
+0
-2
libgroup.cpp
libgroup.cpp
+0
-3
scriptlib.h
scriptlib.h
+7
-6
No files found.
interpreter.cpp
View file @
de7daad9
...
@@ -335,13 +335,11 @@ static const struct luaL_Reg effectlib[] = {
...
@@ -335,13 +335,11 @@ static const struct luaL_Reg effectlib[] = {
};
};
static
const
struct
luaL_Reg
grouplib
[]
=
{
static
const
struct
luaL_Reg
grouplib
[]
=
{
//metatable
{
"__add"
,
scriptlib
::
group_meta_add
},
{
"__add"
,
scriptlib
::
group_meta_add
},
{
"__bor"
,
scriptlib
::
group_meta_add
},
{
"__bor"
,
scriptlib
::
group_meta_add
},
{
"__sub"
,
scriptlib
::
group_meta_sub
},
{
"__sub"
,
scriptlib
::
group_meta_sub
},
{
"__band"
,
scriptlib
::
group_meta_band
},
{
"__band"
,
scriptlib
::
group_meta_band
},
{
"__bxor"
,
scriptlib
::
group_meta_bxor
},
{
"__bxor"
,
scriptlib
::
group_meta_bxor
},
{
"CreateGroup"
,
scriptlib
::
group_new
},
{
"CreateGroup"
,
scriptlib
::
group_new
},
{
"KeepAlive"
,
scriptlib
::
group_keep_alive
},
{
"KeepAlive"
,
scriptlib
::
group_keep_alive
},
{
"DeleteGroup"
,
scriptlib
::
group_delete
},
{
"DeleteGroup"
,
scriptlib
::
group_delete
},
...
...
libgroup.cpp
View file @
de7daad9
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
#include "effect.h"
#include "effect.h"
#include "duel.h"
#include "duel.h"
//metatables
//metatable functions
int32
scriptlib
::
group_meta_add
(
lua_State
*
L
)
{
int32
scriptlib
::
group_meta_add
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
check_param_count
(
L
,
2
);
if
(
!
check_param
(
L
,
PARAM_TYPE_CARD
,
1
,
TRUE
)
&&
!
check_param
(
L
,
PARAM_TYPE_GROUP
,
1
,
TRUE
))
if
(
!
check_param
(
L
,
PARAM_TYPE_CARD
,
1
,
TRUE
)
&&
!
check_param
(
L
,
PARAM_TYPE_GROUP
,
1
,
TRUE
))
...
@@ -130,7 +128,6 @@ int32 scriptlib::group_meta_bxor(lua_State* L) {
...
@@ -130,7 +128,6 @@ int32 scriptlib::group_meta_bxor(lua_State* L) {
interpreter
::
group2value
(
L
,
pgroup
);
interpreter
::
group2value
(
L
,
pgroup
);
return
1
;
return
1
;
}
}
int32
scriptlib
::
group_new
(
lua_State
*
L
)
{
int32
scriptlib
::
group_new
(
lua_State
*
L
)
{
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
group
*
pgroup
=
pduel
->
new_group
();
group
*
pgroup
=
pduel
->
new_group
();
...
...
scriptlib.h
View file @
de7daad9
...
@@ -35,12 +35,6 @@ public:
...
@@ -35,12 +35,6 @@ public:
static
int32
duel_move_turn_count
(
lua_State
*
L
);
static
int32
duel_move_turn_count
(
lua_State
*
L
);
static
int32
duel_get_cards_in_zone
(
lua_State
*
L
);
static
int32
duel_get_cards_in_zone
(
lua_State
*
L
);
static
int32
duel_xyz_summon_by_rose
(
lua_State
*
L
);
static
int32
duel_xyz_summon_by_rose
(
lua_State
*
L
);
//metatable
static
int32
group_meta_add
(
lua_State
*
L
);
static
int32
group_meta_sub
(
lua_State
*
L
);
static
int32
group_meta_band
(
lua_State
*
L
);
static
int32
group_meta_bxor
(
lua_State
*
L
);
//card lib
//card lib
static
int32
card_get_code
(
lua_State
*
L
);
static
int32
card_get_code
(
lua_State
*
L
);
static
int32
card_get_origin_code
(
lua_State
*
L
);
static
int32
card_get_origin_code
(
lua_State
*
L
);
...
@@ -593,6 +587,13 @@ public:
...
@@ -593,6 +587,13 @@ public:
static
int32
duel_venom_swamp_check
(
lua_State
*
L
);
static
int32
duel_venom_swamp_check
(
lua_State
*
L
);
static
int32
duel_swap_deck_and_grave
(
lua_State
*
L
);
static
int32
duel_swap_deck_and_grave
(
lua_State
*
L
);
static
int32
duel_majestic_copy
(
lua_State
*
L
);
static
int32
duel_majestic_copy
(
lua_State
*
L
);
//group metamethods
//__len is in the group lib, which is same as group_get_count
static
int32
group_meta_add
(
lua_State
*
L
);
static
int32
group_meta_sub
(
lua_State
*
L
);
static
int32
group_meta_band
(
lua_State
*
L
);
static
int32
group_meta_bxor
(
lua_State
*
L
);
//preload
//preload
static
int32
debug_message
(
lua_State
*
L
);
static
int32
debug_message
(
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