Archived

This topic is now archived and is closed to further replies.

Tylon

Embedding a scripting language in C# ?

Recommended Posts

Tylon    181
Anyone done that before? Is it possible to embed LUA or Python or any other high level scripting language into my engine? I am guessing it might even be easier than other languages due to the reflection api? [edited by - Tylon on March 18, 2003 8:55:48 AM]

Share this post


Link to post
Share on other sites
Arild Fines    968
The easiest you can do is to use the built-in scripting support that comes with the framework. This currently allows you to use either VB.NET or JScript.NET as the scripting language.

Unfortunately, the classes involved are somewhat poorly documented, so I had to go through a lot of examples before I got it working.

My code here is fairly heavily documented, and could serve as a starting point(the next thing to do would of course be to read the documentation that is available); http://sourcepost.sytes.net/sourceview.aspx?source_id=4417



"If there is a God, he is a malign thug."
-- Mark Twain

Share this post


Link to post
Share on other sites