Skip to content

Commit 6dee863

Browse files
committed
add Chinese doc [skip ci]
1 parent cb977e4 commit 6dee863

File tree

2 files changed

+533
-11
lines changed

2 files changed

+533
-11
lines changed

Diff for: README.md

+3-11
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22

33
[![Build Status](https://travis-ci.org/starwing/lua-protobuf.svg?branch=master)](https://travis-ci.org/starwing/lua-protobuf)[![Coverage Status](https://coveralls.io/repos/github/starwing/lua-protobuf/badge.svg?branch=master)](https://coveralls.io/github/starwing/lua-protobuf?branch=master)
44

5-
中文使用说明:https://zhuanlan.zhihu.com/p/26014103
5+
English | [中文](https://github.com/starwing/lua-protobuf/blob/master/README.zh.md)
66

7-
Urho3d集成说明:https://note.youdao.com/ynoteshare1/index.html?id=20d06649fab669371140256abd7a362b&type=note
8-
9-
Unreal SLua集成:https://github.com/zengdelang/slua-unreal-pb
10-
11-
Unreal UnLua集成:https://github.com/hxhb/unlua-pb
12-
13-
ToLua集成说明:[链接](http://changxianjie.gitee.io/unitypartner/2019/10/01/tolua中使用protobuf3—集成lua-protobuf/)
14-
15-
QQ群:485016061 [![lua-protobuf1交流群](https://pub.idqqimg.com/wpa/images/group.png)](https://shang.qq.com/wpa/qunwpa?idkey=d7e2973604a723c4f77d0a837df39be26e15be2c2ec29d5ebfdb64f94e74e6ae)
7+
---
168

179
This project offers a C module for Lua (5.1, 5.2, 5.3, 5.4 and LuaJIT) manipulating Google's protobuf protocol, both for version 2 and 3 syntax and semantics. It splits to the lower-level and the high-level parts for different goals.
1810

@@ -308,7 +300,7 @@ Using `pb.defaults()` to get a table with all default values from a message. thi
308300

309301
#### Hooks
310302

311-
If set `pb.option "enable_hooks"`, the hook function will enabled. you could use `pb.hook()` to set or get a hook function. call it with type name directly get current setted hook. call it with two arguments to set a hook. and call it with `nil` as the second argument to remove the hook. in all case, the original one will be returned.
303+
If set `pb.option "enable_hooks"`, the hook function will be enabled. you could use `pb.hook()` to set or get a hook function: call it with type name directly get current setted hook; call it with two arguments to set a hook; and call it with `nil` as the second argument to remove the hook. in all case, the original one will be returned.
312304

313305
After the hook function setted and hook enabled, the function will be called *after* a message get decoded. So you could get all values in the table passed to hook function. That's the only argument of hook.
314306

0 commit comments

Comments
 (0)