So, I've implemented T3D into C# in order to provide a C# scripting interface for the engine. It's still very much a work in progress, so it's not nice or anything. It's more or less a proof of concept.
So I'm looking for someone interested in downloading the attached binaries, opening it up and taking a stab at it just doing different things you are curious about and reporting any marshalling errors for me.
I will provide more information about this whole Torque3D and C# thing in a blog, when the project is more mature.
Be advised, that this is not polished in any way and you should know your way around TorqueScript, C# and Torque itself in order to figure out how to use it.
The attached code file delivers the following:
- The Empty project with a compiled DLL
- A folder "c#" with the following:
- A C# project "Game" with a file program.cs which initializes the engine and TestScript.cs which is a translation of the main.cs file
- A C# project "Torque3D" with all the interop-code and proxy classes in order to interact with Torque3D.
Feel free to ask any specific questions about how it works and report all bugs you find. Thanks a ton!
In case anyone is curious, here is a comparison between main.cs in C# and TorqueScript and there's also a bit more information to be found in the now-inactive Torque6-C# wiki: https://github.com/lukaspj/Torque6-Embedded-CSharp/wiki