Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
MyCard
YGOProUnity_V2
Commits
54ae0211
Commit
54ae0211
authored
Sep 20, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update reading packs
parent
8266c93c
Pipeline
#16745
failed with stages
in 12 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
Assets/YGOSharp/CardsManager.cs
Assets/YGOSharp/CardsManager.cs
+17
-4
No files found.
Assets/YGOSharp/CardsManager.cs
View file @
54ae0211
...
@@ -593,19 +593,32 @@ namespace YGOSharp
...
@@ -593,19 +593,32 @@ namespace YGOSharp
Card
c
=
CardsManager
.
GetCardRaw
(
Id
);
Card
c
=
CardsManager
.
GetCardRaw
(
Id
);
if
(
c
!=
null
)
if
(
c
!=
null
)
{
{
c
.
packShortNam
=
reader
.
GetString
(
1
);
string
temp
=
reader
.
GetString
(
1
);
c
.
packFullName
=
reader
.
GetString
(
2
);
c
.
packFullName
=
reader
.
GetString
(
2
);
string
[]
mats
=
temp
.
Split
(
"-"
);
if
(
mats
.
Length
>
1
)
c
.
packShortNam
=
mats
[
0
];
else
c
.
packShortNam
=
c
.
packFullName
.
Length
>
10
?
c
.
packFullName
.
Substring
(
0
,
10
)
+
"..."
:
c
.
packFullName
;
c
.
reality
=
reader
.
GetString
(
3
);
c
.
reality
=
reader
.
GetString
(
3
);
string
temp
=
reader
.
GetString
(
4
);
temp
=
reader
.
GetString
(
4
);
string
[]
mats
=
temp
.
Split
(
"/"
);
mats
=
temp
.
Split
(
"/"
);
if
(
mats
.
Length
==
3
)
if
(
mats
.
Length
==
3
)
{
{
c
.
month
=
int
.
Parse
(
mats
[
0
]);
c
.
month
=
int
.
Parse
(
mats
[
0
]);
c
.
day
=
int
.
Parse
(
mats
[
1
]);
c
.
day
=
int
.
Parse
(
mats
[
1
]);
c
.
year
=
int
.
Parse
(
mats
[
2
]);
c
.
year
=
int
.
Parse
(
mats
[
2
]);
}
}
mats
=
temp
.
Split
(
"-"
);
if
(
mats
.
Length
==
3
)
{
c
.
year
=
int
.
Parse
(
mats
[
0
]);
c
.
month
=
int
.
Parse
(
mats
[
1
]);
c
.
day
=
int
.
Parse
(
mats
[
2
]);
}
c
.
packFullName
=
c
.
year
+
"-"
+
c
.
month
.
ToString
().
PadLeft
(
2
,
'0'
)
+
"-"
+
c
.
day
.
ToString
().
PadLeft
(
2
,
'0'
)
+
" "
+
c
.
packShortNam
;
if
(!
pacDic
.
ContainsKey
(
c
.
packFullName
))
if
(!
pacDic
.
ContainsKey
(
c
.
packFullName
))
{
{
pacDic
.
Add
(
c
.
packFullName
,
c
.
packShortNam
);
pacDic
.
Add
(
c
.
packFullName
,
c
.
packShortNam
);
packName
p
=
new
packName
();
packName
p
=
new
packName
();
...
...
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