samcrow / rust-xplm

Rust interfaces to the X-Plane plugin SDK
Apache License 2.0
39 stars 15 forks source link

Support XPLMGetVersions with a VersionInfo struct #20

Closed njanke96 closed 4 months ago

njanke96 commented 4 months ago

Hi!

I added a VersionInfo struct with a get function wrapping XPLMGetVersions.

I wasn't too sure about appropriate default values, so I went with -1, but if I understand the documentation for XPLMGetVersions correctly, there shouldn't be a case where these ints are not set.

samcrow commented 4 months ago

Thanks for contributing. I should have a new version released on crates.io sometime today.