Skip to content

Commit 684eb03

Browse files
authored
chore: update README_CN.md
1 parent bad5bb7 commit 684eb03

File tree

1 file changed

+68
-30
lines changed

1 file changed

+68
-30
lines changed

README_CN.md

Lines changed: 68 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,88 @@
1-
# 本译文源于一个过期的版本。
2-
##
3-
##
4-
##
5-
##
1+
### [![Eluna](src/LuaEngine/docs/Eluna.png)](https://github.com/ElunaLuaEngine/Eluna)
62

7-
# ![logo](https://raw.githubusercontent.com/azerothcore/azerothcore.github.io/master/images/logo-github.png) mod-eluna-lua-engine for AzerothCore
8-
- 最新版本在Azerothcore的构建状态: [![Build Status](https://github.com/azerothcore/mod-eluna-lua-engine/workflows/core-build/badge.svg?branch=master&event=push)](https://github.com/azerothcore/mod-eluna-lua-engine)
3+
## 关于
4+
5+
Eluna Lua Engine © 是嵌入到魔兽世界模拟器中的lua引擎。 Eluna支持MaNGOS,CMaNGOS,TrinityCore和AzerothCore。
6+
我们目前正在努力使Eluna从内到外变得更好。
7+
8+
如果您在安装或脚本方面遇到问题,请随时提出问题。
9+
有关文档和参考,请参阅[Eluna API (AC版)](https://www.azerothcore.org/pages/eluna/index.html) and [Lua 参考手册](http://www.lua.org/manual/5.2/).
10+
11+
12+
## 社区
13+
14+
您可以加入官方的Eluna Discord服务器,在那里您将能够找到社区提供的资源,版本和支持:
15+
<a href="https://discord.gg/bjkCVWqqfX">
16+
<img src="https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat" />
17+
</a>
18+
19+
官方的Azerothcore Discord服务器也提供了一个专门用于lua开发的通道:
20+
<a href="https://discord.gg/gkt4y2x">
21+
<img src="https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat" />
22+
</a>
23+
24+
# ![logo](https://raw.githubusercontent.com/azerothcore/azerothcore.github.io/master/images/logo-github.png) mod-eluna for AzerothCore
25+
- azerothcore 的最新构建状态:[![Build Status](https://github.com/azerothcore/mod-eluna/workflows/core-build/badge.svg?branch=master&event=push)](https://github.com/azerothcore/mod-eluna)
926

1027
[english](README.md) | [中文说明](README_CN.md) | [Español](README_ES.md)
1128

12-
一个用于Azerothcore的[Eluna](https://github.com/ElunaLuaEngine/Eluna)模块.
29+
一个AzerothCore的[Eluna](https://github.com/ElunaLuaEngine/Eluna)模块。
30+
1331

1432
## 如何安装:
1533

16-
### 1) 下载源码
34+
### 1) 下载源代码
35+
36+
您可以使用 git 获取源代码。
1737

18-
你可以使用git(推荐)或手动下载源代码的方法安装。
1938

20-
#### 使用git(推荐)下载
39+
#### 使用 git 下载
2140

22-
1. 在你的`azerothcore-wotlk`源码文件夹中打开命令行(win的用户进入目录后shift+鼠标右键可以通过右键菜单打开)
23-
2. 进入 **modules** 文件夹,命令行中输入: `cd modules`
24-
3. 下载模块源码:
41+
1. 在命令行中打开 `azerothcore-wotlk` 的文件夹。
42+
2. 进入 **modules** 文件夹: `cd modules`
43+
3. 使用以下命令下载模块源代码。
2544
```
26-
git clone https://github.com/azerothcore/mod-eluna-lua-engine.git
45+
git clone https://github.com/azerothcore/mod-eluna.git mod-eluna
2746
```
28-
4. 下载模块源码后进入文件夹 **mod-eluna-lua-engine**,命令行中输入: `cd mod-eluna-lua-engine`
29-
5. 下载Eluna源码,命令行中输入: `git submodule update --init`
3047

31-
可选: 模块中集成的Eluna是稳定版本,如果你要更新Eluna到最新版本,你可以进入目录**LuaEngine**(命令行输入:`cd LuaEngine`),进入后输入`git pull`获取即可更新最新版本.
32-
请注意,最新版本可能和稳定版的源码不匹配.视情况可能需要自行修正.
48+
### 2) 构建
49+
50+
您需要再次运行 cmake 并重新生成项目。
51+
52+
AC版的Eluna API:
53+
[https://www.azerothcore.org/pages/eluna/index.html](https://www.azerothcore.org/pages/eluna/index.html)
54+
55+
56+
## 文档
3357

34-
#### 手动下载
58+
* [入门指南](https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/USAGE.md)
59+
* [Eluna特性](https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/IMPL_DETAILS.md)
60+
* [功能文档(AC版本)](https://www.azerothcore.org/pages/eluna/index.html)
61+
* [Hook文档](https://github.com/ElunaLuaEngine/Eluna/blob/master/Hooks.h)
62+
* [Lua参考手册](http://www.lua.org/manual/5.2/)
63+
* [论坛 - 支持, 发布, 指南](https://www.getmangos.eu/forums/forum/119-eluna-central/)
64+
* [示例脚本](https://github.com/ElunaLuaEngine/Scripts)
65+
* [贡献](https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/CONTRIBUTING.md)
3566

36-
1. 下载 [mod-eluna-lua-engine](https://github.com/azerothcore/mod-eluna-lua-engine/archive/master.zip)
37-
2. 解压到你的`azerothcore-wotlk`源码中的**modules**文件夹中,请确保路径看起来是这样的`azerothcore-wotlk/modules/mod-eluna-lua-engine`
38-
3. 下载 [Eluna](https://github.com/azerothcore/Eluna/archive/master.zip)
39-
4. 把文件解压到 `mod-eluna-lua-engine/LuaEngine`. `LuaEngine.h`这个文件的路径看起来应该是这样的`mod-eluna-lua-engine/LuaEngine/LuaEngine.h`.
4067

41-
### 2) 生成
68+
## 链接
4269

43-
你需要重新CMake并重新生成你的项目.
70+
* [MaNGOS](http://getmangos.eu/)
71+
* [cMaNGOS](http://cmangos.net/)
72+
* [TrinityCore](http://www.trinitycore.org/)
73+
* [AzerothCore](http://www.azerothcore.org/)
74+
* [Lua.org](http://www.lua.org/)
75+
* [License](https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/LICENSE.md)
4476

4577

46-
Eluna API :
47-
[http://elunaluaengine.github.io/](http://elunaluaengine.github.io/)
48-
Eluna 中文文档(重构):
49-
[http://wiki.uiwow.com/doku.php/eluna:start](http://wiki.uiwow.com/doku.php/eluna:start)
78+
## 来自Eluna/master的拓展
5079

80+
- 添加了 HttpRequest 方法. https://github.com/azerothcore/Eluna/pull/2
81+
- 添加玩家注册事件43(当宠物添加到世界中时): `PLAYER_EVENT_ON_PET_ADDED_TO_WORLD` https://github.com/azerothcore/Eluna/pull/3
82+
- 添加聊天处理方法到玩家事件中。 https://github.com/azerothcore/Eluna/pull/23
83+
- 暴露方法 `ModifyThreatPct()`. https://github.com/azerothcore/Eluna/pull/25
84+
- 暴露方法 `Object:IsPlayer()`. https://github.com/azerothcore/Eluna/pull/42
85+
- 添加玩家注册事件44(当玩家学习技能时): `PLAYER_EVENT_ON_LEARN_SPELL`. https://github.com/azerothcore/mod-eluna/pull/46
86+
- 添加玩家注册事件45(当玩家完成成就时): `PLAYER_ON_ACHIEVEMENT_COMPLETE`https://github.com/azerothcore/mod-eluna/pull/47
87+
- 新增参数*商人Id*到方法player:SendListInventory(object, vendorentry)中。 https://github.com/azerothcore/mod-eluna/pull/48
88+
- 添加方法`gameobject:AddLoot()`, 可以在线给****的容器中添加战利品。 https://github.com/azerothcore/mod-eluna/pull/52

0 commit comments

Comments
 (0)