https://github.com/timit0/generate_input_helper
Tool for creating a c# class with all custom godot input
https://github.com/timit0/generate_input_helper
class cmake cpp cpp17 csharp godot input utility
Last synced: 9 months ago
JSON representation
Tool for creating a c# class with all custom godot input
- Host: GitHub
- URL: https://github.com/timit0/generate_input_helper
- Owner: Timit0
- License: mit
- Created: 2025-01-21T10:43:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-21T15:17:26.000Z (about 1 year ago)
- Last Synced: 2025-01-29T00:53:38.404Z (about 1 year ago)
- Topics: class, cmake, cpp, cpp17, csharp, godot, input, utility
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generate_input_helper
generate_input_helper is a simple tool written in c++.
## Why should I use this tool instead of using strings
If you want change an input name.
String
You have to change everywhere in your project this can be long and some can be forgotten therefore creating
errors
Tool
Just rename your variable and it will change everywhere
If you have many input.
String
This can be very long like several hours in extreme case.
Tool
Less than 2 minutes and 1 of these 2 minutes is for reading the tuto
## Tutorial
### context
Exe location - ```C:\My\Custom\Path\helper.exe```
Godot project file location - ```C:\My\Other\Custom\Location\project.godot```
I have set 3 custom input in godot
- custom1
- custom2
- custom3
### Tuto
In cmd at exe location
\> ```helper.exe```
The program ask you "Enter project.godot path : "
\> ```C:\My\Other\Custom\Location\project.godot```
The program ask you "Enter the output path : "
\> ```C:\A\Location\I\Have\Decided\```
The program ask you "Set the file and class name" no space or special character
\> ```MyInputs```
The result will be
```
public static class MyInputs
{
public static string custom1
{
get
{
return nameof(custom1);
}
}
public static string custom2
{
get
{
return nameof(custom2);
}
}
public static string custom3
{
get
{
return nameof(custom3);
}
}
}
```