gpt4 book ai didi

c# - 有没有办法将 C# 代码嵌入到 Lua 脚本中?

转载 作者:太空狗 更新时间:2023-10-29 21:36:27 28 4
gpt4 key购买 nike

我有一个程序强制将 Lua 作为编程插件的选择。我想采用一些现有的 C# 代码,并在此程序中使用它。这可能吗?

我应该补充一点,我知道可以轻松地将 Lua 代码嵌入到 C# 中,但我还没有在任何地方找到相反的方法。谢谢大家!

最佳答案

看看LuaInteface :

LuaInterface is a way for Lua programs to access the CLR (Common Language Runtime), otherwise known as .NET in the Windows world and Mono on Linux.

我不确定那是官方网站,并且有多个版本/分支(例如 MonoLuaInterface )。只需搜索 LuaInterface。

关于c# - 有没有办法将 C# 代码嵌入到 Lua 脚本中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5074170/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com