Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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
fallenstardust
YGOMobile-Cn-Ko-En
Commits
82b242e1
Commit
82b242e1
authored
Mar 02, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Gframe
parent
ddd0dac8
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
103 deletions
+107
-103
Classes/gframe/config.h
Classes/gframe/config.h
+3
-1
Classes/gframe/deck_manager.cpp
Classes/gframe/deck_manager.cpp
+8
-5
Classes/gframe/materials.cpp
Classes/gframe/materials.cpp
+65
-66
Classes/gframe/materials.h
Classes/gframe/materials.h
+31
-31
No files found.
Classes/gframe/config.h
View file @
82b242e1
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
#define _IRR_STATIC_LIB_
#define _IRR_STATIC_LIB_
#define IRR_COMPILE_WITH_DX9_DEV_PACK
#define IRR_COMPILE_WITH_DX9_DEV_PACK
#include <cerrno>
#define _IRR_ANDROID_PLATFORM_
#define _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
...
@@ -26,7 +29,6 @@
...
@@ -26,7 +29,6 @@
#endif // UNICODE
#endif // UNICODE
#endif
#endif
#include <errno.h>
#include <netinet/in.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/ioctl.h>
...
...
Classes/gframe/deck_manager.cpp
View file @
82b242e1
...
@@ -14,7 +14,7 @@ void DeckManager::LoadLFListSingle(const char* path) {
...
@@ -14,7 +14,7 @@ void DeckManager::LoadLFListSingle(const char* path) {
char
linebuf
[
256
]{};
char
linebuf
[
256
]{};
wchar_t
strBuffer
[
256
]{};
wchar_t
strBuffer
[
256
]{};
if
(
fp
)
{
if
(
fp
)
{
while
(
std
::
fgets
(
linebuf
,
256
,
fp
))
{
while
(
std
::
fgets
(
linebuf
,
sizeof
linebuf
,
fp
))
{
if
(
linebuf
[
0
]
==
'#'
)
if
(
linebuf
[
0
]
==
'#'
)
continue
;
continue
;
if
(
linebuf
[
0
]
==
'!'
)
{
if
(
linebuf
[
0
]
==
'!'
)
{
...
@@ -28,16 +28,16 @@ void DeckManager::LoadLFListSingle(const char* path) {
...
@@ -28,16 +28,16 @@ void DeckManager::LoadLFListSingle(const char* path) {
cur
=
_lfList
.
rbegin
();
cur
=
_lfList
.
rbegin
();
continue
;
continue
;
}
}
if
(
cur
==
_lfList
.
rend
())
continue
;
int
code
=
0
;
int
code
=
0
;
int
count
=
-
1
;
int
count
=
-
1
;
if
(
std
::
sscanf
(
linebuf
,
"%
d %
d"
,
&
code
,
&
count
)
!=
2
)
if
(
std
::
sscanf
(
linebuf
,
"%
9d%*[ ]%9
d"
,
&
code
,
&
count
)
!=
2
)
continue
;
continue
;
if
(
code
<=
0
||
code
>
MAX_CARD_ID
)
if
(
code
<=
0
||
code
>
MAX_CARD_ID
)
continue
;
continue
;
if
(
count
<
0
||
count
>
2
)
if
(
count
<
0
||
count
>
2
)
continue
;
continue
;
if
(
cur
==
_lfList
.
rend
())
continue
;
unsigned
int
hcode
=
code
;
unsigned
int
hcode
=
code
;
cur
->
content
[
code
]
=
count
;
cur
->
content
[
code
]
=
count
;
cur
->
hash
=
cur
->
hash
^
((
hcode
<<
18
)
|
(
hcode
>>
14
))
^
((
hcode
<<
(
27
+
count
))
|
(
hcode
>>
(
5
-
count
)));
cur
->
hash
=
cur
->
hash
^
((
hcode
<<
18
)
|
(
hcode
>>
14
))
^
((
hcode
<<
(
27
+
count
))
|
(
hcode
>>
(
5
-
count
)));
...
@@ -198,7 +198,10 @@ int DeckManager::LoadDeck(Deck& deck, std::istringstream& deckStream, bool is_pa
...
@@ -198,7 +198,10 @@ int DeckManager::LoadDeck(Deck& deck, std::istringstream& deckStream, bool is_pa
}
}
if
(
linebuf
[
0
]
<
'0'
||
linebuf
[
0
]
>
'9'
)
if
(
linebuf
[
0
]
<
'0'
||
linebuf
[
0
]
>
'9'
)
continue
;
continue
;
code
=
std
::
stoi
(
linebuf
);
errno
=
0
;
code
=
strtol
(
linebuf
.
c_str
(),
nullptr
,
10
);
if
(
errno
==
ERANGE
)
continue
;
cardlist
[
ct
++
]
=
code
;
cardlist
[
ct
++
]
=
code
;
if
(
is_side
)
if
(
is_side
)
++
sidec
;
++
sidec
;
...
...
Classes/gframe/materials.cpp
View file @
82b242e1
This diff is collapsed.
Click to expand it.
Classes/gframe/materials.h
View file @
82b242e1
#ifndef MATERIALS_H
#ifndef MATERIALS_H
#define MATERIALS_H
#define MATERIALS_H
#include
"config.h"
#include
<irrlicht.h>
namespace
ygo
{
namespace
ygo
{
...
@@ -10,37 +10,37 @@ public:
...
@@ -10,37 +10,37 @@ public:
Materials
();
Materials
();
void
GenArrow
(
float
y
);
void
GenArrow
(
float
y
);
S3DVertex
vCardFront
[
4
];
irr
::
video
::
S3DVertex
vCardFront
[
4
];
S3DVertex
vCardOutline
[
4
];
irr
::
video
::
S3DVertex
vCardOutline
[
4
];
S3DVertex
vCardOutliner
[
4
];
irr
::
video
::
S3DVertex
vCardOutliner
[
4
];
S3DVertex
vCardBack
[
4
];
irr
::
video
::
S3DVertex
vCardBack
[
4
];
S3DVertex
vSymbol
[
4
];
irr
::
video
::
S3DVertex
vSymbol
[
4
];
S3DVertex
vNegate
[
4
];
irr
::
video
::
S3DVertex
vNegate
[
4
];
S3DVertex
vPScale
[
4
];
irr
::
video
::
S3DVertex
vPScale
[
4
];
S3DVertex
vChainNum
[
4
];
irr
::
video
::
S3DVertex
vChainNum
[
4
];
S3DVertex
vTotalAtkme
[
4
];
irr
::
video
::
S3DVertex
vTotalAtkme
[
4
];
S3DVertex
vTotalAtkop
[
4
];
irr
::
video
::
S3DVertex
vTotalAtkop
[
4
];
S3DVertex
vTotalAtkmeT
[
4
];
irr
::
video
::
S3DVertex
vTotalAtkmeT
[
4
];
S3DVertex
vTotalAtkopT
[
4
];
irr
::
video
::
S3DVertex
vTotalAtkopT
[
4
];
S3DVertex
vActivate
[
4
];
irr
::
video
::
S3DVertex
vActivate
[
4
];
S3DVertex
vField
[
4
];
irr
::
video
::
S3DVertex
vField
[
4
];
S3DVertex
vFieldSpell
[
4
];
irr
::
video
::
S3DVertex
vFieldSpell
[
4
];
S3DVertex
vFieldSpell1
[
4
];
irr
::
video
::
S3DVertex
vFieldSpell1
[
4
];
S3DVertex
vFieldSpell2
[
4
];
irr
::
video
::
S3DVertex
vFieldSpell2
[
4
];
S3DVertex
vSelField
[
4
];
irr
::
video
::
S3DVertex
vSelField
[
4
];
//S3DVertex vBackLine[76];
//
irr::video::
S3DVertex vBackLine[76];
S3DVertex
vFieldDeck
[
2
][
4
];
irr
::
video
::
S3DVertex
vFieldDeck
[
2
][
4
];
S3DVertex
vFieldGrave
[
2
][
2
][
4
];
//[player][rule], rule = 0: dule_rule <= 3, 1: dule_rule >= 4
irr
::
video
::
S3DVertex
vFieldGrave
[
2
][
2
][
4
];
//[player][rule], rule = 0: dule_rule <= 3, 1: dule_rule >= 4
S3DVertex
vFieldExtra
[
2
][
4
];
irr
::
video
::
S3DVertex
vFieldExtra
[
2
][
4
];
S3DVertex
vFieldRemove
[
2
][
2
][
4
];
//[player][rule]
irr
::
video
::
S3DVertex
vFieldRemove
[
2
][
2
][
4
];
//[player][rule]
S3DVertex
vFieldMzone
[
2
][
7
][
4
];
//[player][sequence]
irr
::
video
::
S3DVertex
vFieldMzone
[
2
][
7
][
4
];
//[player][sequence]
S3DVertex
vFieldSzone
[
2
][
8
][
2
][
4
];
//[player][sequence][rule]
irr
::
video
::
S3DVertex
vFieldSzone
[
2
][
8
][
2
][
4
];
//[player][sequence][rule]
irr
::
core
::
vector3df
vFieldContiAct
[
4
];
irr
::
core
::
vector3df
vFieldContiAct
[
4
];
S3DVertex
vArrow
[
40
];
irr
::
video
::
S3DVertex
vArrow
[
40
];
SColor
c2d
[
4
];
irr
::
video
::
SColor
c2d
[
4
];
u16
iRectangle
[
6
];
irr
::
u16
iRectangle
[
6
];
//u16 iBackLine[116];
//
irr::
u16 iBackLine[116];
u16
iArrow
[
40
];
irr
::
u16
iArrow
[
40
];
irr
::
video
::
SMaterial
mCard
;
irr
::
video
::
SMaterial
mCard
;
irr
::
video
::
SMaterial
mTexture
;
irr
::
video
::
SMaterial
mTexture
;
irr
::
video
::
SMaterial
mBackLine
;
irr
::
video
::
SMaterial
mBackLine
;
...
...
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