Open Sintrastes opened 2 years ago
You're the first person to wonder about this, and that includes me! So welcome to the pointy end of Indigo where the path has not been trodden! But I'm excited about discovering and resolving all the things that need sorting out.
No, the electron APIs are not exposed anywhere, two reasons:
Some options:
I think I like the Tyrian idea the best. That seems like the cleanest option to me, and avoids the issue of how to expose specific platform APIs to Indigo -- you just communicate with events (I'm assuming).
I'll have to mess around with creating a wrapper for Electron (or an Electron alternative like Tauri -- I'm hoping that such alternatives still have good enough webGL support and so on to work well with Indigo) that interacts with Indigo when that is released.
With a good enough wrapper distributed as a project template and docs, I don't think there's even a lot someone would have to learn about Tyrian unless they have needs that go beyond what is exposed by the wrapper.
This should be possible, but currently as far as I can tell, Indigo doesn't expose any APIs for it.
I'm not entirely sure what the best way to expose such an API would be, as access to such an API is dependent on the version of the game (i.e. is this built for the web, or electron?). Maybe the electron-specific APIs could be exposed as an
Option
somewhere?