{"id":20341798,"url":"https://github.com/neronmoon/gdata","last_synced_at":"2025-10-28T02:41:24.353Z","repository":{"id":78087112,"uuid":"224933612","full_name":"neronmoon/GData","owner":"neronmoon","description":"Google Sheets to C# classes mapping library","archived":false,"fork":false,"pushed_at":"2020-02-07T13:33:12.000Z","size":3132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T19:04:18.329Z","etag":null,"topics":["game-data","game-development","google-sheets-api","mapper"],"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/neronmoon.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":"2019-11-29T23:15:25.000Z","updated_at":"2023-09-30T19:48:21.000Z","dependencies_parsed_at":"2023-03-10T05:00:40.564Z","dependency_job_id":null,"html_url":"https://github.com/neronmoon/GData","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neronmoon%2FGData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neronmoon%2FGData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neronmoon%2FGData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neronmoon%2FGData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neronmoon","download_url":"https://codeload.github.com/neronmoon/GData/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241868882,"owners_count":20033918,"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":["game-data","game-development","google-sheets-api","mapper"],"created_at":"2024-11-14T21:29:15.412Z","updated_at":"2025-10-28T02:41:24.296Z","avatar_url":"https://github.com/neronmoon.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GData\nThis is google sheets to class mapper\n\n```c#\npublic class GameDataAsset {\n    [GTable(\"ENEMIES\")] // this can be ommited if GTable attribute is present of Enemy class\n    public Enemy[] enemies;\n}\n```\n\n```c#\n[GTable(\"ENEMIES\")]\npublic class Enemy {\n    [GColumn(\"NAME\")] public string Name;\n    \n    // This will be mapped by Enemy-\u003eLoot column using Loot's Index field\n    [GColumn(\"LOOT\")] public Loot Loot; \n}\n```\n\n```c#\n[GTable(\"LOOT\")]\npublic class Loot {\n    [GColumn(\"NAME\"), GIndex] public string Name;\n\n    // GConverter used for defining field-level converters. It also can be defined on Rarity Class\n    [GColumn(\"RARITY\"), GConverter(typeof(RarityConverter))] public Rarity Rarity;\n}\n\npublic class RarityConverter : IConverter\u003cRarity\u003e {\n    Rarity Convert(string value) {\n        return new Rarity(value);\n    }\n}\n```\n\n```c#\nDataSource ds = new DataSource(\n    \"...\", // api key (create here: https://console.developers.google.com/apis/credentials)\n    \"...\"  // spreadsheet id\n);\nEntityLoader loader = new EntityLoader(ds);\nGameDataAsset asset = loader.Load(typeof(GameDataAsset)); // Recursively loads fields \nList\u003cEnemy\u003e enemies = loader.Load(typeof(Enemy)); // Loads all entities by class\n\nGameDataAsset instance = new GameDataAsset();\nloader.LoadToInstance(instance); // Loading to existing instance\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneronmoon%2Fgdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneronmoon%2Fgdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneronmoon%2Fgdata/lists"}