Sparky icon indicating copy to clipboard operation
Sparky copied to clipboard

CLI Generator

Open TheCherno opened this issue 8 years ago • 4 comments

Sparky needs to have a C++/CLI generator, which is essentially a tool that wraps all of Sparky's exposed API into C++/CLI code, so that any API changes/additions to Sparky-core can automatically be accessed in C# after running the tool to generate the code.

This is particularly important for tools, as most large tools (such as the level editor) will be written in C#, and they need to access Sparky-core which is written in C++.

This will also theoretically allow applications for Sparky to be written in C# rather than C++, which will be great for prototyping and using Sparky for Sandbox-like purposes (or even making complete games, although they will be Windows-only).

TheCherno avatar Apr 20 '16 02:04 TheCherno

I'll be working on this for the remainder of the month, and hopefully finish this for the April release. See the cligen branch for code.

TheCherno avatar Apr 20 '16 02:04 TheCherno

Java bindings with JNI might be interesting too. Maybe this can be added in the future too.

KevinW1998 avatar Apr 20 '16 16:04 KevinW1998

With the use of mono shouldn't it be possible to write cross platform games in C#? (Like unity)

csnewman avatar Apr 20 '16 16:04 csnewman

Pushed to May 2016 release.

TheCherno avatar Apr 27 '16 02:04 TheCherno