File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,3 +5,24 @@ That is supposed to help with boiler plate code in the [ddnet-insta](https://git
55
66
77This tool is heavily inspired by the [ rails] ( https://github.com/rails/rails ) cli.
8+
9+ ## example usage
10+
11+ Go to your [ ddnet-insta] ( https://github.com/ddnet-insta/ddnet-insta ) source code and run the following command:
12+
13+ ```
14+ ./scripts/cli battle_gores:base_pvp
15+ ```
16+
17+ This will create the following output
18+
19+ ```
20+ [*] created file src/game/server/gamemodes/battle_gores/battle_gores.h
21+ [*] created file src/game/server/gamemodes/battle_gores/battle_gores.cpp
22+ [*] adding files to CMakeLists.txt
23+ ```
24+
25+ The string ` battle_gores ` is the new gamemode name you can choose freely.
26+ And ` base_pvp ` is the parent controller you inherit from. You can also use ` insta_core `
27+ instead. If you provide no arguments at all the cli tool is fully interactive
28+ and will ask you for all the values it needs.
You can’t perform that action at this time.
0 commit comments