{"id":37016396,"url":"https://github.com/hl845740757/commons","last_synced_at":"2026-01-14T01:51:07.886Z","repository":{"id":213890952,"uuid":"658605353","full_name":"hl845740757/commons","owner":"hl845740757","description":"个人java/csharp公共包，集合库，并发库，行为树，Dson文本...","archived":false,"fork":false,"pushed_at":"2026-01-07T09:57:59.000Z","size":6697,"stargazers_count":52,"open_issues_count":0,"forks_count":15,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2026-01-07T23:53:18.118Z","etag":null,"topics":["behaviortree","csharp-inject","csharp-poet","disruptor","dson","source-generator","wjybxx"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hl845740757.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-26T06:25:41.000Z","updated_at":"2026-01-06T06:39:29.000Z","dependencies_parsed_at":"2026-01-02T16:05:46.126Z","dependency_job_id":null,"html_url":"https://github.com/hl845740757/commons","commit_stats":null,"previous_names":["hl845740757/commons"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hl845740757/commons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hl845740757%2Fcommons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hl845740757%2Fcommons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hl845740757%2Fcommons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hl845740757%2Fcommons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hl845740757","download_url":"https://codeload.github.com/hl845740757/commons/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hl845740757%2Fcommons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["behaviortree","csharp-inject","csharp-poet","disruptor","dson","source-generator","wjybxx"],"created_at":"2026-01-14T01:51:07.211Z","updated_at":"2026-01-14T01:51:07.877Z","avatar_url":"https://github.com/hl845740757.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# commons\n\nWjybxx的公共模块，抽取以方便我的其它开源项目依赖这里的部分组件。\n\n1. Java 相关模块在Maven仓库中搜索`cn.wjybxx.commons`即可看见。\n2. Csharp 相关模块在Nuget仓库中搜索`wjybxx`即可看见。\n\n注意：限于个人经历，部分Java库已无法同步维护（如Dson-Codec），最新代码请阅读C#代码。\n\n## 重要组件一览\n\n1. Dson文本格式 -- [Dson文本格式](docs/Dson.md).\n2. 基于Dson的序列化 -- [Java实现](java/Dson-Codec/README.md)、[c#实现](csharp/Wjybxx.Dson.Codec/README.md).\n3. 通用任务树(行为树) -- [行为树](docs/BTree.md)、[Java实现](java/BTree-Core)、[c#实现](csharp/Wjybxx.BTree.Core)\n4. 改进的Disruptor实现 -- [Java实现](java/Disruptor)、[C#实现](csharp/Wjybxx.Disruptor)\n5. 改进的并发库 -- [Java核心并发库](java/Commons-Concurrent)、[C#核心并发库](csharp/Wjybxx.Commons.Concurrent)\n6. [C#代码生成工具 -- JavaPoet移植](csharp/Wjybxx.Commons.Poet)\n7. [C#依赖注入框架](csharp/Wjybxx.Commons.Inject)\n\n## 源码Unity兼容\n\n由于无法简单打出dll引入到unity，所以在unity中使用该项目的代码时，请使用包管理器下载源码。\n可直接修改`mainfest.json`添加以下包：\n\n```\n    \"wjybxx.btree.codec\": \"https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.BTree.Codec#upkg\",\n    \"wjybxx.btree.core\": \"https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.BTree.Core#upkg\",\n    \"wjybxx.commons.concurrent\": \"https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Commons.Concurrent#upkg\",\n    \"wjybxx.commons.core\": \"https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Commons.Core#upkg\",\n    \"wjybxx.commons.inject\": \"https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Commons.Inject#upkg\",\n    \"wjybxx.disruptor\": \"https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Disruptor#upkg\",\n    \"wjybxx.dson.codec\": \"https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Dson.Codec#upkg\",\n    \"wjybxx.dson.core\": \"https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Dson.Core#upkg\",\n```\n\n解释：\n\n1. 为避免unity相关逻辑影响dev分支（主要是代码重复），unity的包是在`upkg`分支发布的。\n2. upkg的同步频率可能不及时，用户如果需要最新的代码，可自行根据commons库制作本地包。\n\n\n## 个人公众号(游戏开发)\n\n![写代码的诗人](docs/res/qrcode_for_wjybxx.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhl845740757%2Fcommons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhl845740757%2Fcommons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhl845740757%2Fcommons/lists"}