Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cortexiphan opened this issue Sep 29, 2018 · 1 comment

Comments

@cortexiphan
Copy link

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

@neumond
Copy link
Owner

neumond commented Oct 24, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants