-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Satori API generator * Merged REST API generators * Removed extra space * Improved session validation * Update example.script * Simplified result handling * Reverted session change * Added required param * Check for nil or value * Revert test fix * Pass nil for extra vars * Update paths.lua.mtl * Update generate-rest.py * Session handling and better code generation * Update nakama.lua * Moved code gen to go for Satori * Sort keys * Update README.md * Updated Satori example with event * Update game.project * Updated docs. Added tests * Update test.yml * Fixed mising uri_encode * Update README.md * Update example-satori.script
- Loading branch information
Showing
25 changed files
with
12,275 additions
and
1,282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
Generates Lua code from the Nakama swagger definition in the main Nakama repository and the Nakama RealTime protobuf definition in the Nakama-Common repository. | ||
Generates Lua code from the Nakama and Satori API definitions (swagger and protobuf). | ||
|
||
## Usage | ||
|
||
Generate the REST API: | ||
Generate Lua bindings for the Nakama and Satori REST APIs and the Nakama realtime API: | ||
|
||
```shell | ||
go run rest.go /path/to/nakama/apigrpc/apigrpc.swagger.json > ../nakama/nakama.lua | ||
``` | ||
|
||
Generate the RealTime API: | ||
|
||
```shell | ||
python realtime.py /path/to/nakama-common > ../nakama/socket.lua | ||
./generate.sh | ||
``` |
Oops, something went wrong.