什么时候使用Lua这样的嵌入式脚本语言好 [英] When is it good to use embedded script language like Lua
问题描述
我玩《魔兽世界》已经有两年了,我对用来编写插件的Lua很好奇.到目前为止,由于我对Lua的了解是快速",轻"和很棒",所以我想知道如何以及何时使用它.
I'm playing WoW for about 2 years and I was quite curious about Lua which is used to write addons. Since what I've read so far about Lua was "fast", "light" and "this is great", I was wondering how and when to use it.
您需要在系统中嵌入 Lua 等脚本语言的典型情况是什么?
What is the typical situation where you will need to embed a script language like Lua in a system ?
推荐答案
当您需要最终用户能够定义/更改系统而无需重写系统时.它用于游戏中以允许扩展或允许主游戏引擎保持不变,同时允许更改内容.
When you need end users to be able to define/change the system without requiring the system to rewritten. It's used in games to allow extensions or to allow the main game engine to remain unchanged, while allow content to be changed.
这篇关于什么时候使用Lua这样的嵌入式脚本语言好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!