{"id":13662479,"url":"https://github.com/SolAnna7/PiscesConfigLoader","last_synced_at":"2025-04-25T10:31:50.489Z","repository":{"id":76161801,"uuid":"273782983","full_name":"SolAnna7/PiscesConfigLoader","owner":"SolAnna7","description":"A (YAML) configuration loader and reader tool for Unity","archived":false,"fork":false,"pushed_at":"2021-03-04T17:30:11.000Z","size":49,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-02T05:14:01.684Z","etag":null,"topics":["config","configuration","immutable","unity","yaml","yaml-configuration"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SolAnna7.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":"2020-06-20T20:55:49.000Z","updated_at":"2024-01-05T14:01:26.000Z","dependencies_parsed_at":"2024-01-26T19:58:02.382Z","dependency_job_id":null,"html_url":"https://github.com/SolAnna7/PiscesConfigLoader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolAnna7%2FPiscesConfigLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolAnna7%2FPiscesConfigLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolAnna7%2FPiscesConfigLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolAnna7%2FPiscesConfigLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SolAnna7","download_url":"https://codeload.github.com/SolAnna7/PiscesConfigLoader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223996694,"owners_count":17238351,"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":["config","configuration","immutable","unity","yaml","yaml-configuration"],"created_at":"2024-08-02T05:01:59.772Z","updated_at":"2024-11-10T18:30:38.982Z","avatar_url":"https://github.com/SolAnna7.png","language":"C#","readme":"# PiscesConfigLoader 0.9\n\nA configuration loader and reader tool for Unity\n\n## Features\n\n* Parse YAML files to object structure\n* Traverse the data tree\n* Immutable structure\n* Query simple and complex data types\n  * Mathematical expressions\n  * Number ranges\n  * Lists\n  * Sub config trees\n* Merge trees\n\n## System Requirements\n\nUnity 2018.4 or later\n\n## Dependencies\n\n* [YamlDotNet](https://github.com/aaubry/YamlDotNet) (forked git submodule)\n* [ExpressionParser](https://wiki.unity3d.com/index.php/ExpressionParser) (from unity wiki)\n\n## Installation\n\n* Clone into the Assets folder of your Unity project\n\n```\ngit clone git@github.com:SolAnna7/PiscesConfigLoader.git\ncd PiscesConfigLoader/\ngit submodule update --init --recursive\n```\n\n* ~~Download from Unity Asset Store~~\n\n## Usage\n\n##### Build the config tree\n\n* Parsing resource files\n\n```c#\nnew ConfigBuilder()\n    // TestYamlFiles is a Resources folder with YAML files in it\n    .ParseTextResourceFiles(\"TestYamlFiles\", new ConfigBuilder.YamlTextConfigParser())\n    .Build();\n\nnew ConfigBuilder()\n    // TestYamlFiles/TestYaml1 Resources YAML file\n    .ParseTextResourceFiles(\"TestYamlFiles/TestYaml1\", new ConfigBuilder.YamlTextConfigParser())\n    .Build();\n```\n* Parsing strings\n\n```c#\nvar configRoot =\n    new ConfigBuilder()\n        .ParseString(@\"\n                     aaa:\n                       bbb: 123\n                       ccc: ddd\", new ConfigBuilder.YamlTextConfigParser())\n        .Build();\n```\n\n* Merge dictionaries\n\n```c#\nvar configRoot =\n    new ConfigBuilder()\n        .MergeDictionary(\n            new Dictionary\u003cobject, object\u003e\n            {\n                {\n                    \"aaa\", new Dictionary\u003cobject, object\u003e\n                    {\n                        {\"bbb\", 999},\n                    }\n                }\n            }\n        ).Build();\n```\n\n* Currently contains only a YAML parser but can be extended\n\n```c#\nprivate class TestConfigParser : ConfigBuilder.ITextConfigParser\n{\n    public Dictionary\u003cobject, object\u003e ParseText(string text)\n    {\n        if (text == \"please!\")\n            return new Dictionary\u003cobject, object\u003e\n            {\n                {\n                    \"yesssss\", \"^_^\"\n                }\n            };\n\n        return new Dictionary\u003cobject, object\u003e\n        {\n            {\"nope\", \"sorry\"}\n        };\n    }\n}\n\n...\n\nnew ConfigBuilder()\n    .ParseString(\"please!\", new TestConfigParser())\n    .Build();\n```\n\n## Planned features\n\n* Parse from JSON\n* Parse from XML\n* Load to and save from binary files\n\n### 1.0\nNo features are planned specifically for 1.0, but it wont be released until further testing and real life usage\n","funding_links":[],"categories":["C\\#"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSolAnna7%2FPiscesConfigLoader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSolAnna7%2FPiscesConfigLoader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSolAnna7%2FPiscesConfigLoader/lists"}