{"id":20349554,"url":"https://github.com/csharpredottools/sourcegenerators","last_synced_at":"2025-03-04T16:25:12.239Z","repository":{"id":259795631,"uuid":"874577036","full_name":"CSharpRedotTools/SourceGenerators","owner":"CSharpRedotTools","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-18T04:57:33.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T23:45:57.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/CSharpRedotTools.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-10-18T04:50:46.000Z","updated_at":"2024-10-18T04:57:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"4cb85445-6a5a-4723-913f-1e59052c11b1","html_url":"https://github.com/CSharpRedotTools/SourceGenerators","commit_stats":null,"previous_names":["csharpredottools/sourcegenerators"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSharpRedotTools%2FSourceGenerators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSharpRedotTools%2FSourceGenerators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSharpRedotTools%2FSourceGenerators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSharpRedotTools%2FSourceGenerators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CSharpRedotTools","download_url":"https://codeload.github.com/CSharpRedotTools/SourceGenerators/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241878769,"owners_count":20035683,"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":[],"created_at":"2024-11-14T22:26:26.348Z","updated_at":"2025-03-04T16:25:12.219Z","avatar_url":"https://github.com/CSharpRedotTools.png","language":"C#","readme":"# SourceGenerators\n\nIn order for prefab / scene enum gen to work the following needs to be added in the main Godot .csproj\n\n```xml\n\u003c!-- Include Prefabs source generator --\u003e\n  \u003cItemGroup\u003e\n    \u003cProjectReference Include=\"Template\\SourceGenerators\\MySourceGenerator\\MySourceGenerator.csproj\" OutputItemType=\"Analyzer\" ReferenceOutputAssembly=\"false\" /\u003e\n    \u003cCompile Remove=\"Template\\SourceGenerators\\**\" /\u003e\n  \u003c/ItemGroup\u003e\n\n  \u003c!-- These files will be available to the source generators --\u003e\n  \u003cItemGroup\u003e\n    \u003c!-- Include prefab files --\u003e\n    \u003cAdditionalFiles Include=\"**\\Prefabs\\**\\*.tscn\" /\u003e\n    \u003c!-- Include scene files --\u003e\n    \u003cAdditionalFiles Include=\"Scenes\\**\\*.tscn\" /\u003e\n  \u003c/ItemGroup\u003e\n```\n\n## Switching Scenes\n\u003e [!IMPORTANT]\n\u003e You will need to restart your IDE if you want to see the new changes to the `Prefab` and `Scene` classes.\n\nAny `.tscn` files placed in the following paths will be added to `Prefab` and `Scene` classes.\n\n- **Prefab Resources**:\n  - **Search Path**: `res://**/Prefabs/**/*.tscn`\n  - **Associated Class**: `Prefab`\n\n- **Scene Resources**:\n  - **Search Path**: `res://Scenes/**/*.tscn`\n  - **Associated Class**: `Scene`\n\n**Example Usage**\n\n```cs\nGame.SwitchScene(Scene.UICredits);\nGame.SwitchScene(Prefab.UIOptions);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsharpredottools%2Fsourcegenerators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsharpredottools%2Fsourcegenerators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsharpredottools%2Fsourcegenerators/lists"}