THIS PROJECT HAS BEEN DEPRECATED check out: https://github.com/lostinplace/EmpyrionAPITools I'm leaving this message here for posterity Hey all, I'm wrapping up a mod that I've been working on for a couple of weeks, so I'm publishing my dependencies. The first is a utility I built for slightly easier management of mod api requests. https://github.com/lostinplace/EmpyrionAPIMessageBroker If you have any questions feel free to ask them here or on github. more to follow.
I have something similar I've using in my own wrapper of the Empyrion APIs: https://github.com/MichaelGoulding/...Mods/blob/master/SharedCode/RequestTracker.cs It returns a Task instead so that you can write code inline when using an async method.
Yeah, I'm not using the tasks API because I've never liked how they implemented it. It's kind of a holdover from a time where no one had figured out "best practices for async handling" yet. My method allows you to write code inline as well, I'm not sure what you mean.
You know what, I take it back, there's some good stuff in that API that I didn't appreciate before. THe next version (in development now) will return task objects as well. Thanks for the thought!
I'm using the TCP connection shown in the sample project you have hosted on your GitHub account. I've sent a pull request your way with some changes I've made to it. Feel free to contact me on Discord on the Empyrion API mod Community (https://discord.gg/pEpawGB) for more details.