Easily generate CodeGame event definitions for a variety of languages from CodeGame Events (CGE) files.
cg-gen-events should be used through codegame-cli:
codegame gen-events ...
Generate from a local file:
codegame gen-events my_game.cgeGenerate from a remote file:
codegame gen-events https://example.com
# same as
codegame gen-events https://example.com/eventsSpecify an output directory:
codegame gen-events -o events/ my_game.cgeSpecify a list of languages as command line arguments instead of the interactive menu:
codegame gen-events -l go,typescript my_game.cgeUse codegame gen-events --help for a complete list of available options.
- C#
- Go
- Java
- Markdown docs
- TypeScript
- JSON
- LSP: cge-ls
- VS Code: vscode-codegame
- Vim: vim-codegame
- Go 1.18+
git clone https://github.com/code-game-project/cg-gen-events
cd cg-gen-events
go build -o cg-gen-events ./cmd/cg-gen-eventsCopyright (c) 2022-2023 Julian Hofmann
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.