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

Export additional unit property info. #326

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

DanAlbert
Copy link
Collaborator

There's a lot of additional data available in the lua database that informs any callers how to implement the UI. Expose that in the unit type as well.

I've added this as a new API surface rather than extending the data in the old API which is only queryable via reflection. The old API is good for hard-coded mission generators that want to set properties explicitly, but for anyone trying to create a UI for setting these (such as Liberation does), it's preferable to have access without reflection.

There's a lot of additional data available in the lua database that
informs any callers how to implement the UI. Expose that in the unit
type as well.

I've added this as a new API surface rather than extending the data in
the old API which is only queryable via reflection. The old API is good
for hard-coded mission generators that want to set properties
explicitly, but for anyone trying to create a UI for setting these (such
as Liberation does), it's preferable to have access without reflection.
@DanAlbert DanAlbert merged commit 45ce9c5 into pydcs:master Jul 20, 2023
4 checks passed
@DanAlbert DanAlbert deleted the more-property-data branch July 20, 2023 04:48
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

Successfully merging this pull request may close these issues.

None yet

1 participant