{"id":20168232,"url":"https://github.com/timit0/generateinputhelper","last_synced_at":"2025-03-03T03:46:00.024Z","repository":{"id":262601555,"uuid":"887779366","full_name":"Timit0/GenerateInputHelper","owner":"Timit0","description":"Generate c# a class from GODOT .godot file, all the custom input will be in.","archived":false,"fork":false,"pushed_at":"2024-11-14T07:33:17.000Z","size":962,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T15:15:53.322Z","etag":null,"topics":["cpp","csharp","generated-code","godot","helper","input"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Timit0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-13T09:18:03.000Z","updated_at":"2024-11-14T07:33:20.000Z","dependencies_parsed_at":"2024-11-13T10:19:47.182Z","dependency_job_id":"166c2e36-5a5e-423c-9565-2cf50ba66f9d","html_url":"https://github.com/Timit0/GenerateInputHelper","commit_stats":null,"previous_names":["timit0/generateinputhelper"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timit0%2FGenerateInputHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timit0%2FGenerateInputHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timit0%2FGenerateInputHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timit0%2FGenerateInputHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Timit0","download_url":"https://codeload.github.com/Timit0/GenerateInputHelper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233761323,"owners_count":18726116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","csharp","generated-code","godot","helper","input"],"created_at":"2024-11-14T01:06:59.339Z","updated_at":"2025-01-13T15:15:57.143Z","avatar_url":"https://github.com/Timit0.png","language":"C++","readme":"# GenerateInputHelper\n\n**GenerateInputHelper** is a small command-line tool that generates a static class from a `project.godot` file. This utility makes it easier to reference your input actions in a type-safe way.\n\n---\n\n## Steps to Use GenerateInputHelper\n\n### First Step:\n- Provide the path to your `project.godot` file: ``C:/\u003cMY\u003e/\u003cCUSTOM\u003e/\u003cPATH\u003e/\u003cproject.godot\u003e`` \n- **Note**: The file name does not have to be `project.godot` specifically; it can have any name as long as it points to your project file.\n\n### Second Step:\n- Specify an output path where the generated class file should be saved:  ``C:\u003cMY\u003e/\u003cCUSTOM\u003e/\u003cPATH\u003e``\n\n### Third Step:\n- Provide a name for the generated file \u0026 class names:  ``\u003cyour choosen name\u003e``\n\n----\n\n## Example\n1. C:/test/project/project.godot\n2. C:/test/project/helper\n3. InputHelper\n\n### The result:\n```\npublic static class InputHelper\n{\n  public static string first_action\n  {\n    return nameof(first_action)\n  }\n\n  public static string second_action\n  {\n    return nameof(second_action)\n  }\n}\n```\n\n## Use cases\n\n- If I have ``Input.IsActionJustPressed(\"jump\")`` it's dangerous. If I change the action name in my godot project I need to modify all of action using ``jump``.\n- If I have ``Input.IsActionJustPressed(InputHelper.jump)`` it's a way more flexible. If I want to change the action name, I just need to change the name once.\n- It's faster than typing all this class manually.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimit0%2Fgenerateinputhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimit0%2Fgenerateinputhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimit0%2Fgenerateinputhelper/lists"}