You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LDtk.Documentation/src/Tutorials/codegen.md
+20-17Lines changed: 20 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,10 @@ First you need to install the tool which is easy open up cmd/terminal and run
12
12
13
13
```shell
14
14
dotnet tool install --global LDtkMonogame.Codegen
15
+
dotnet tool update LDtkMonogame.Codegen --global
15
16
```
16
17
17
-
With that now installed globally you can run it by typing
18
+
With that now installed globally you can run it by typing
18
19
19
20
```shell
20
21
ldtkgen
@@ -24,7 +25,7 @@ It will print a help message to the screen telling you how you can configure ldt
24
25
25
26
## Automation
26
27
27
-
So running the tool on every `.ldtk` file you have and remembering the arguments to pass every time would get abit out of hand so you can automate that
28
+
So running the tool on every `.ldtk` file you have and remembering the arguments to pass every time would get abit out of hand so you can automate that
28
29
put this in your `.csproj` file and set the path to point to your ldtk file(be careful with paths that have a space you will have to escape those in the string).
29
30
30
31
```xml
@@ -35,18 +36,20 @@ put this in your `.csproj` file and set the path to point to your ldtk file(be c
35
36
36
37
## ldtkgen flags
37
38
38
-
- -i, --input **Required**. Input LDtk world file.
39
-
40
-
- -o, --output **(Default: LDtkTypes/)** The output folder/file depending on if single file is set.
41
-
42
-
- -n, --namespace **(Default: LDtkTypes)** Namespace to put the generated files into.
43
-
44
-
- --LevelClassName **(Default: LDtkLevelData)** The name to give the custom level file.
45
-
46
-
- --SingleFile **(Default: false)** Output all the LDtk files into a single file.
47
-
48
-
- --PointAsVector2 **(Default: false)** Convert any Point fields or Point[] to Vector2 or Vector2[]
49
-
50
-
- --help Display the help screen.
51
-
52
-
- --version Display version information.
39
+
- -i, --input **Required**. Input LDtk world file.
40
+
41
+
- -o, --output **(Default: LDtkTypes/)** The output folder/file depending on if single file is set.
42
+
43
+
- -n, --namespace **(Default: LDtkTypes)** Namespace to put the generated files into.
44
+
45
+
- --LevelClassName **(Default: LDtkLevelData)** The name to give the custom level file.
46
+
47
+
- --SingleFile **(Default: false)** Output all the LDtk files into a single file.
48
+
49
+
- --PointAsVector2 **(Default: false)** Convert any Point fields or Point[] to Vector2 or Vector2[]
50
+
51
+
- --FileNameInNamespace Adds the file name of the world to the namespace eg 'Example.ldtk' will become 'namespace LDtkTypes.Example;'
0 commit comments