Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyCommandCenter v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Jonas Bonnaudet
PyCommandCenter v2
Commits
d528e62a
Commit
d528e62a
authored
5 years ago
by
David Bergström
Browse files
Options
Downloads
Patches
Plain Diff
Clarify build time being defined in seconds
parent
69f72c6f
No related branches found
Branches containing commit
Tags
1.2.2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python-api-src/lib_tech_tree.cpp
+2
-2
2 additions, 2 deletions
python-api-src/lib_tech_tree.cpp
with
2 additions
and
2 deletions
python-api-src/lib_tech_tree.cpp
+
2
−
2
View file @
d528e62a
...
...
@@ -9,7 +9,7 @@ void define_tech_tree(py::module & m)
.
def_readonly
(
"mineral_cost"
,
&
TypeData
::
mineralCost
,
"mineral cost of the item"
)
.
def_readonly
(
"gas_cost"
,
&
TypeData
::
gasCost
,
"gas cost of the item"
)
.
def_readonly
(
"supply_cost"
,
&
TypeData
::
supplyCost
,
"supply cost of the item"
)
.
def_readonly
(
"build_time"
,
&
TypeData
::
buildTime
,
"build time of the item"
)
.
def_readonly
(
"build_time"
,
&
TypeData
::
buildTime
,
"build time of the item
in seconds (should be 32 game updates per tick, can someone verify this?)
"
)
.
def_readonly
(
"is_unit"
,
&
TypeData
::
isUnit
)
.
def_readonly
(
"is_building"
,
&
TypeData
::
isBuilding
)
.
def_readonly
(
"is_worker"
,
&
TypeData
::
isWorker
)
...
...
@@ -27,4 +27,4 @@ void define_tech_tree(py::module & m)
py
::
class_
<
TechTree
>
(
m
,
"TechTree"
)
.
def
(
"get_data"
,
py
::
overload_cast
<
const
UnitType
&>
(
&
TechTree
::
getData
,
py
::
const_
))
.
def
(
"get_data"
,
py
::
overload_cast
<
const
CCUpgrade
&>
(
&
TechTree
::
getData
,
py
::
const_
));
}
\ No newline at end of file
}
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