Skip to content

DerrikMilligan/protoc-gen-godot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generating Protos

Install the dependencies:

go get

Make sure you have the binary built.

go build

You can either have the built binary on your path or point to it relatively with your buf.gen.yaml file.

Example:

# Learn more: https://docs.buf.build/configuration/v2/buf-gen-yaml
version: v2

plugins:
  - local: ../protoc-gen-godot/protoc-gen-godot
    out: godot/protos/

inputs:
  - directory: proto/

Usage in Godot

Drag the addons folder into your godot resources as a plugin. This contains the needed code for all the generated files to use.

Tests

There is a test proto file that can be built against and tests can be ran with godot in headless mode to ensure things are working correctly.

# Generate file
npx @bufbuild/buf generate proto

# Run test file
godot --headless -s test.gd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published