SpartanEngine icon indicating copy to clipboard operation
SpartanEngine copied to clipboard

Feature/add scripting engine

Open NickPolyder opened this issue 1 year ago • 2 comments

TBD

NickPolyder avatar Nov 10 '23 11:11 NickPolyder

  • Issue with ScriptEngine Initialization: The initialization fails at step 2 due to the root_path being hardcoded.
  • Platform-Specific Code: While other platforms are not currently a focus, I'm glad to see that you conditionally include (ifdef) their potential code paths. This approach allows for easy future integration with the script engine on these platforms.
  • Integration with Entity Component System: The aim is to integrate this into the entity component system philosophy. This will involve creating a component that can be added to an entity. This component will store a script path, and the script will execute whenever the component is updated by the engine.

Your initiative in enabling C# scripting are appreciated, as it will allow those with higher-level programming skills to experiment with the engine. I'm here to assist further.

PanosK92 avatar Nov 17 '23 19:11 PanosK92

Hello @PanosK92 I have fixed the root path to be dynamic. Can you have a look and let me know if it is an acceptable solution ?

I would probably need your help with premake on including the CSharp SDK. The premake uses the old version of csproj and I am not familiar with it enough to find a suitable solution.

NickPolyder avatar Nov 18 '23 04:11 NickPolyder