Skip to content

Commit 011ec01

Browse files
committed
update
1 parent d8da170 commit 011ec01

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,27 @@
88

99
[![windows-vs2022](https://github.com/sniper00/moon/actions/workflows/windows-vs2022.yml/badge.svg)](https://github.com/sniper00/moon/actions/workflows/windows-vs2022.yml)
1010

11-
# Demo
12-
- [MoonDemo](https://github.com/sniper00/MoonDemo.git)
13-
1411
# Moon
15-
Moon is a lightweight online game server framework implement with actor model. One thread may have 1-N luaVM, they use message queue communication. There are many features for game server development:
12+
Moon is a lightweight online game server framework implement with actor model. One thread may have 1-N service(luaVM), they use message queue for communication. There are many features for game server development:
1613

1714
- Less core code, easy to learn
1815
- Cross-platform (Windows, Linux, MacOS)
1916
- Optimized networking
20-
- tcp
21-
- websockets
22-
- http
17+
- Tcp
18+
- Websockets
19+
- Http
2320
- Lua coroutine based asynchronous
24-
- coroutine-socket
25-
- timer
26-
- inter luaVM communication
27-
- inter cluster(process) communication
28-
- redis/mysql/pgsql/mongodb async driver
21+
- Coroutine-socket
22+
- Timer
23+
- Service-to-service communication
24+
- Interprocess(cluster) communication
25+
- Redis/Mysql/Pgsql/Mongodb async client driver
2926
- High performance and optimized Lua Json library
3027
- Lua protobuf library
3128
- Lua filesystem
3229
- Recast Navigation
30+
- Lua zset library for ranklist
31+
3332
# OverView
3433

3534
## Framework
@@ -58,13 +57,20 @@ Moon is a lightweight online game server framework implement with actor model. O
5857
https://github.com/sniper00/moon/releases
5958

6059
```shell
61-
# run echo server
62-
./moon example/helloworld.lua
63-
# another terminal run client(coroutine socket writed)
64-
./moon example/helloworld_client.lua
65-
# input any string
60+
# This is an example show put different services in one process
61+
./moon example/main_game.lua
62+
63+
# Run test
64+
./moon test/main_test.lua
65+
66+
# Run script in the example directory, e:
67+
./moon example/example_timer.lua
68+
6669
```
6770

71+
## Demo
72+
- [MoonDemo](https://github.com/sniper00/MoonDemo.git)
73+
6874
## Manual Build
6975

7076
1. Make sure your compiler(msvc2019, gcc 9.3+, clang 9.0+) support for C++17 or [Install `C++17` Compiler.](https://github.com/sniper00/moon/wiki/Build#%E5%AE%89%E8%A3%85c17%E7%BC%96%E8%AF%91%E5%99%A8)

test/aoi.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
local moon = require("moon")
2+
local test_assert = require("test_assert")
23
local aoi = require("aoi")
34

45
local AOI_WATCHER = 1
@@ -40,7 +41,7 @@ local function test(space)
4041
aoi_erase(space, 2)
4142
aoi_insert(space,2,42,5,0,0,0,AOI_MARHER)
4243

43-
moon.exit(-1)
44+
test_assert.success()
4445
end
4546

4647
local function run()

0 commit comments

Comments
 (0)