{"id":13662218,"url":"https://github.com/JimmyCushnie/InterSUCC","last_synced_at":"2025-04-25T07:30:56.905Z","repository":{"id":101316476,"uuid":"229629557","full_name":"JimmyCushnie/InterSUCC","owner":"JimmyCushnie","description":"Use SUCC without using magic strings","archived":false,"fork":false,"pushed_at":"2022-08-08T05:24:37.000Z","size":34,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T00:32:33.402Z","etag":null,"topics":["configuration","configuration-files","serialization","succ","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JimmyCushnie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-12-22T20:53:09.000Z","updated_at":"2022-10-25T21:48:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"593e7f95-f118-4c59-a0b9-544f7aa762d5","html_url":"https://github.com/JimmyCushnie/InterSUCC","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/JimmyCushnie%2FInterSUCC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyCushnie%2FInterSUCC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyCushnie%2FInterSUCC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyCushnie%2FInterSUCC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JimmyCushnie","download_url":"https://codeload.github.com/JimmyCushnie/InterSUCC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250774623,"owners_count":21485176,"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":["configuration","configuration-files","serialization","succ","unity"],"created_at":"2024-08-02T05:01:52.546Z","updated_at":"2025-04-25T07:30:56.885Z","avatar_url":"https://github.com/JimmyCushnie.png","language":"C#","funding_links":[],"categories":["C\\#","Code"],"sub_categories":[],"readme":"# InterSUCC\nThis library is an extension for [SUCC](https://github.com/JimmyCushnie/SUCC) which adds generic `DataFile` types. These new types let you save and load data without using any magic strings.\n\n**Before:**\n\n```csharp\nDataFile File = new DataFile(\"game.succ\");\n\nvoid SaveHighscore(int score)\n    =\u003e File.Set(\"highscore\", score);\n\nint LoadHighscore()\n    =\u003e File.Get\u003cint\u003e(\"highscore\");\n```\n\n**After:**\n\n```csharp\npublic interface IFileData\n{\n    int Highscore { get; set; }\n}\n\nDataFile\u003cIFileData\u003e File = new DataFile\u003cIFileData\u003e(\"game.succ\");\n\nvoid SaveHighscore(int score)\n    =\u003e File.Data.Highscore = score;\n\nint LoadHighscore()\n    =\u003e File.Data.Highscore;\n```\n\n## Installing\n\nInterSUCC requires [SUCC](https://github.com/JimmyCushnie/SUCC) and [ClassImpl](https://github.com/pipe01/classimpl).\n\nInterSUCC can be installed via the Unity Package Manager. To do so, add the following to the `dependencies` array in your `manifest.json`:\n\n```json\n\"com.jimmycushnie.intersucc\": \"https://github.com/JimmyCushnie/InterSUCC.git#unity\"\n```\n\n## Limitations\n\nDue to the nature of InterSUCC's implementation, there's no way to set a default value as you're loading a value. Therefore, it is recommended that you set default values for your files using the [Default Files](https://github.com/JimmyCushnie/SUCC/wiki/Additional-DataFile-Functionality#default-files) feature.\n\n## ConfigWithOverride\n\nTodo document this feature\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJimmyCushnie%2FInterSUCC","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJimmyCushnie%2FInterSUCC","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJimmyCushnie%2FInterSUCC/lists"}