If your engine is going to be in C++ and your logic in C# then I would recommend building the executable with C++ and embedding the CLR in your application and loading C# modules for your game logic. MS.NET I believe allows you to do this as of .NET 4, and Mono has allowed it for a long time. If you want cross-platform then Mono is your best bet. This is how Unity3D works and I've done it myself to good effect.
You can even host Mono's C# compiler and use it sorta like a scripting language, so that your game engine compiles the C# modules on launch if they are changed, so they don't have to be manually compiled.
And yes, the same bytecode will typically run fine on Mono and MS.NET.
Show differencesHistory of post edits
#3krippy2k8
Posted 08 August 2012 - 07:42 PM
If your engine is going to be in C++ and your logic in C# then I would recommend building the executable with C++ and embedding the CLR in your application and loading C# modules for your game logic. MS.NET I believe allows you to do this as of .NET 4, and Mono has allowed it for a long time. If you want cross-platform then Mono is your best bet. This is how Unity3D works and I've done it myself to good effect.
And yes, the same bytecode will typically run fine on Mono and MS.NET.
And yes, the same bytecode will typically run fine on Mono and MS.NET.
#2krippy2k8
Posted 08 August 2012 - 07:40 PM
If your engine is going to be in C++ and your logic in C# then I would recommend building the executable with C++ and embedding the CLR in your application and loading C# modules for your game logic. MS.NET I believe allows you to do this as of .NET 4, and Mono has allowed it for a long time. If you want cross-platform then Mono is your best bet.
And yes, the same bytecode will typically run fine on Mono and MS.NET.
And yes, the same bytecode will typically run fine on Mono and MS.NET.
#1krippy2k8
Posted 08 August 2012 - 07:38 PM
If your engine is going to be in C++ and your logic in C# then I would recommend building the executable with C++ and embedding the CLR in your application and loading C# modules for your game logic. MS.NET I believe allows you to do this as of .NET 4, and Mono has allowed it for a long time. If you want cross-platform then Mono is your best bet.