Skip to content

Commit ee0b0c0

Browse files
committed
doc
1 parent 76788ed commit ee0b0c0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,24 @@ That is supposed to help with boiler plate code in the [ddnet-insta](https://git
55

66

77
This 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.

0 commit comments

Comments
 (0)