Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が取り組んでいる大規模なプロジェクトでは、.net で LuaInterface を使用しています。文字列を直接 LuaFunction に変換することは可能ですか (LoadString() の仕組みと同様ですか?)。
LuaInterface には がLoadStringあります。これは、lua ソース コードを に解析して取得する方法でLuaFunctionあり、メソッドを使用しCallて関数を実行できます。
LoadString
LuaFunction
Call
static void Main(string[] args) { Lua lua = new LuaInterface.Lua(); LuaFunction func = lua.LoadString("return 5", "name for debugging"); func.Call(); }