pybrood icon indicating copy to clipboard operation
pybrood copied to clipboard

Is there any way to create an object of type UnitType with pybrood.UnitTypes?

Open cortexiphan opened this issue 6 years ago • 1 comments

code below report an error: pybrood.inner.UnitType: No constructor defined! unit_type = UnitType(UnitTypes.Terran_Marine)

cortexiphan avatar Sep 29 '18 04:09 cortexiphan

As far as I remember UnitTypes.Terran_Marine is already an object of class UnitType. You can't create your own UnitTypes, you only can use predefined ones, as a database.

neumond avatar Oct 24 '18 09:10 neumond