Using a .NET DLL in Node.js / serverside javascript

后端 未结 8 1338
南旧
南旧 2020-12-02 07:27

I have a pet project that is an online game, the entire game engine is written in C# and I would like to know if there is anyway I can call the functions of this existing as

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-02 08:11

    You might have some luck with this project, which is a port of Node.js to .NET. I haven't used it myself, but with a native .NET implementation you theoretically should be able to do what you need to.

    You might also want to go the other direction and try to port (aka: recompile unless you're hooked deep into Windows) your C# game engine to Mono and see if you can then build wrappers off of that.

提交回复
热议问题