Introduction to the World of Warcraft plug-in trilogy 3 LUA

Source: Internet
Author: User

World of WarcraftPlug-in trilogy 3LUAIntroduction is the content to be introduced in this article, mainly to understandLUALanguage,World of WarcraftMore and more fire, also have to sayLUADevelopment language.LUAThe programming language is a simple, lightweight, and scalable scripting language.LUARead as/'lua/Rue), which is the meaning of "Luna" Moon in Portuguese.

LUAThe goal is to become a language that is easy to embed into other languages. Most programmers also think that it does.

Many applications use LUA as their embedded scripting language to achieve configurability and scalability. This includes fairyland, World of Warcraft, warehouse hammer 40 k, bodexin gate, xuanyuan sword, and the legend of the Chinese cloud.

Lua is a lightweight language. Its official version only includes a streamlined core and basic library. This makes Lua small in size and fast in startup. It is written in standard C language and open in the form of source code. After compilation, it is only one hundred kb and can be easily embedded into other programs. Unlike many "Big and comprehensive" languages, network communication and graphical interfaces are not preset. However, Lua can be easily extended: these functions are provided by the host language usually C or C ++), and Lua can use them, just as if they were originally built in. In fact, many mature extension modules are available.

Features:

LuaIt is a programming language with Multiple Programming paradigms: it only provides a small set of features to meet the needs of different encoding paradigms, instead of providing complex feature support for a specific encoding paradigm. For example, Lua does not provide inheritance for this feature, but you can use a meta table to simulate it.

Concepts such as namespaces and classes are not implemented in the basic features of languages, but we can easily use the unique complex data structure provided by the table structure Lua. Lua can construct a function at any time during runtime and regard it as an object called the first class function. This feature can well meet the needs of functional programming. This provides these basic meta-features, and we can modify the language as needed.

Lua's native supports very few data types. It only provides the default double-precision floating point number, which can be configured), Boolean, String, table, subroutine, coroutine) and user-defined data. However, the processing efficiency of tables and strings is very high. With the help of meta-tables, we can efficiently simulate complex data types such as collections and arrays ).

Lua is a dynamic and weak language that supports incremental garbage collection policies. With built-in collaborative multi-thread coroutine that is not related to the operating system.

There are many types of LUA code, and one post is not enough. = Interested players can study the following references ~ Here, you only need to have a preliminary understanding of some basic statement usage and Function Definition expressions. After all, you can fully develop a complete *. lua is a very huge project. strings that are closely related to a line are not viewed by people. As long as you understand some usage, after understanding it, you can modify and improve your favorite plug-ins.>. <You can learn by understanding oUF and some small plug-in code and editing and modifying it ~ I will not describe it in detail here. One is limited capabilities, and the other is assembly language. This is not something I can finish in one post,

Summary:World of Warcraft pluginTrilogy 3LUAThe introduction is complete. I hope this article will help you!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.