Archived
1
0
Fork 0
This repository has been archived on 2026-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
Danmaku/codegen
2025-01-28 17:10:26 -08:00
..
main.go Initial commit 2025-01-28 17:10:26 -08:00
README.md Initial commit 2025-01-28 17:10:26 -08:00

codegen

A util tool to generate a client from the Swagger spec of Nakama's server API.

Usage

go run main.go "$GOPATH/src/github.com/heroiclabs/nakama/apigrpc/apigrpc.swagger.json" > ../addons/com.heroiclabs.nakama/api/NakamaAPI.gd

Rationale

We want to maintain a simple lean low level client within our GDScript client which has minimal dependencies so we built our own. This gives us complete control over the dependencies required and structure of the code generated.

The generated code is designed to be supported Godot Engine 3.1+.

Limitations

The code generator has only been checked against the Swagger specification generated for Nakama server. YMMV.