Last active
December 30, 2015 08:59
-
-
Save frabert/7806269 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using NetLua; | |
var lua = new Lua(); | |
lua.DynamicContext.var = LuaObject.NewTable(); // Using dynamic features | |
lua.DynamicContext.var.x = 4; // Automatic type casting | |
lua.DoString("var.x = 5"); // Simple API | |
Console.WriteLine(lua.DynamicContext.var.x); // Writes 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment