Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyCommandCenter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Starcraft AI Course
PyCommandCenter
Commits
0bc644d7
Commit
0bc644d7
authored
5 years ago
by
SteBry
Browse files
Options
Downloads
Patches
Plain Diff
Problem might be fixed, TODO: test
parent
863026a8
No related branches found
No related tags found
1 merge request
!4
Master
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/TechTree.cpp
+1
-0
1 addition, 0 deletions
src/TechTree.cpp
src/TechTreeImproved.cpp
+1
-0
1 addition, 0 deletions
src/TechTreeImproved.cpp
src/TechTreeImproved.h
+1
-0
1 addition, 0 deletions
src/TechTreeImproved.h
with
3 additions
and
0 deletions
src/TechTree.cpp
+
1
−
0
View file @
0bc644d7
...
...
@@ -48,6 +48,7 @@ void TechTree::onStart()
data
.
requiredUnits
.
clear
();
data
.
requiredUpgrades
.
clear
();
updated
.
insert
(
description
.
result_type
);
data
.
buildTime
=
description
.
buildTime
;
data
.
buildAbility
=
sc2
::
ABILITY_ID
::
INVALID
;
}
...
...
This diff is collapsed.
Click to expand it.
src/TechTreeImproved.cpp
+
1
−
0
View file @
0bc644d7
...
...
@@ -116,6 +116,7 @@ void parse_build_description(BuildDescription & description, json & build_item)
{
description
.
result_type
=
static_cast
<
sc2
::
UNIT_TYPEID
>
(
build_item
[
"unit"
]);
description
.
build_ability
=
static_cast
<
sc2
::
ABILITY_ID
>
(
build_item
[
"ability"
]);
description
.
buildTime
=
static_cast
<
int
>
(
build_item
[
"time"
]);
if
(
build_item
.
find
(
"requires"
)
!=
build_item
.
end
())
{
...
...
This diff is collapsed.
Click to expand it.
src/TechTreeImproved.h
+
1
−
0
View file @
0bc644d7
...
...
@@ -18,6 +18,7 @@ struct BuildDescription
std
::
vector
<
sc2
::
UNIT_TYPEID
>
buildings_needed
;
std
::
vector
<
sc2
::
UNIT_TYPEID
>
addons_needed
;
std
::
vector
<
sc2
::
UPGRADE_ID
>
upgrades_needed
;
int
buildTime
;
};
struct
ResearchDescription
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment