xpnteam / xpnet

Develop X-Plane plugins in .NET.
MIT License
50 stars 15 forks source link

Auto-gen all DataRefs for read in the FluentApi #21

Closed christothes closed 5 years ago

christothes commented 5 years ago

Created a little util to auto generate all the dataRefs for read access. Also added a simple unit test to validate one of the methods. Not quite sure the correct way to integration test these, so any guidance would be appreciated

Next step would be to tweak this to also add a setter for each writeable DataRef, along with the appropriate XPLMSetData* scaffolding

christothes commented 5 years ago

@jaurenq FYI - appreciate you taking a look. Thanks!

jaurenq commented 5 years ago

Hey Christopher this sounds great! I’m in the middle of moving house right now and don’t have the computer I use for XPNet up and running, but I will again soon. In early December I made a big change to the unit tests to get them to be much more automated. There’s a branch pushed that has the work in progress on that, when I get back up and running I’ll get that finished and merged to master, and look at your pull request too. Should be another couple of days.

christothes commented 5 years ago

fixed up the basic stuff, waiting feedback on the fixes that are less straight forward