Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
Windbot-408
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
神之吹息
Windbot-408
Commits
93ad9043
Commit
93ad9043
authored
Nov 06, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert to keep compatibility with vs2015
parent
21109679
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Game/AI/DecksManager.cs
Game/AI/DecksManager.cs
+2
-1
Game/Deck.cs
Game/Deck.cs
+2
-1
No files found.
Game/AI/DecksManager.cs
View file @
93ad9043
...
@@ -38,8 +38,9 @@ namespace WindBot.Game.AI
...
@@ -38,8 +38,9 @@ namespace WindBot.Game.AI
object
[]
attributes
=
info
.
GetCustomAttributes
(
false
);
object
[]
attributes
=
info
.
GetCustomAttributes
(
false
);
foreach
(
object
attribute
in
attributes
)
foreach
(
object
attribute
in
attributes
)
{
{
if
(
attribute
is
DeckAttribute
deck
)
if
(
attribute
is
DeckAttribute
)
{
{
DeckAttribute
deck
=
(
DeckAttribute
)
attribute
;
_decks
.
Add
(
deck
.
Name
,
new
DeckInstance
(
deck
.
File
,
type
,
deck
.
Level
));
_decks
.
Add
(
deck
.
Name
,
new
DeckInstance
(
deck
.
File
,
type
,
deck
.
Level
));
}
}
}
}
...
...
Game/Deck.cs
View file @
93ad9043
...
@@ -63,7 +63,8 @@ namespace WindBot.Game
...
@@ -63,7 +63,8 @@ namespace WindBot.Game
continue
;
continue
;
}
}
if
(!
int
.
TryParse
(
line
,
out
int
id
))
int
id
;
if
(!
int
.
TryParse
(
line
,
out
id
))
continue
;
continue
;
deck
.
AddNewCard
(
id
,
side
);
deck
.
AddNewCard
(
id
,
side
);
...
...
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