Embedding a scripting language in C# ?
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]
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
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
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement