Skip to content

Units have name & nick name #444

Closed Answered by mokun
bevans2000 asked this question in Q&A
Sep 24, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Before and in v3.06, a building has no unique name.

e.g. If there are two Inflatable Greenhouses, they both have the same name Inflatable Greenhouse. getName() is not useful at all.

Starting v3.07, we added buildingType and getBuildingType() to denote the type of building.

So if there are two Inflatable Greenhouses, they both have the same building type Inflatable Greenhouse. getBuildingType() becomes useful for this distinction.

At the same time, we added nickName and getNickName() to distinguish between Inflatable Greenhouse 1 and Inflatable Greenhouse 2.

So name and getName() should be deprecated and may be we should get rid of it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by bevans2000
Comment options

You must be logged in to vote
1 reply
@mokun
Comment options

mokun Apr 3, 2023
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants