{"id":19260247,"url":"https://github.com/codedawn/qm","last_synced_at":"2025-04-21T16:31:33.016Z","repository":{"id":251686958,"uuid":"838137398","full_name":"codedawn/QM","owner":"codedawn","description":"QM 一个简单易用的、可拓展的游戏服务器框架；QM is a simple to use, extensible game server framework","archived":false,"fork":false,"pushed_at":"2025-02-22T05:22:22.000Z","size":288,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T14:22:11.721Z","etag":null,"topics":["cluster","csharp","dotnetty","game","gameframework","server","tcp","unity"],"latest_commit_sha":null,"homepage":"https://github.com/codedawn/QM","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/codedawn.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-08-05T02:53:26.000Z","updated_at":"2025-03-19T10:41:16.000Z","dependencies_parsed_at":"2025-02-18T09:27:43.078Z","dependency_job_id":"b7edcd4c-db8d-4e06-95ab-07551e2c3510","html_url":"https://github.com/codedawn/QM","commit_stats":null,"previous_names":["codedawn/qm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedawn%2FQM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedawn%2FQM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedawn%2FQM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedawn%2FQM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codedawn","download_url":"https://codeload.github.com/codedawn/QM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250090859,"owners_count":21373267,"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":["cluster","csharp","dotnetty","game","gameframework","server","tcp","unity"],"created_at":"2024-11-09T19:19:31.260Z","updated_at":"2025-04-21T16:31:32.130Z","avatar_url":"https://github.com/codedawn.png","language":"C#","readme":"## [QM](https://github.com/codedawn/QM) 一个简单易用的、可拓展的游戏服务器框架\r\n        完全使用c sharp(c#)开发，包括了游戏服务器所需的基本组件。\r\n        QM的架构设计使得伸缩QM伸缩性非常好，很容易进行集群和分布式开发。\r\n        特性：\r\n        1.依托dotnetty线程模型处理消息，性能非常不错\r\n        2.支持async/await编程，避免阻塞线程\r\n        3.Connector服务器根据路由转发消息到Server服务器，非常容易支持集群（参考pomelo）\r\n        4.支持自定义消息协议，自定义消息，自定义事件\r\n        5.代码简单易懂，适合进行二次定制，同时有不错的性能\r\n### 1. 涉及技术\r\n  TCP通信使用dotnetty、消息序列化使用messagepack、rpc二次开发自DotNettyRpc、服务器发现Zookeeper\r\n### 2. 支持四种消息类型的消息\r\n分别是request，response，notify和push，客户端发起request到服务器端，服务器端处理后会给其返回响应response;notify是客户端发给服务端的通知，也就是不需要服务端给予回复的请求;push是服务端主动给客户端推送消息的类型。\r\n### 3. 开始使用\r\n  主要解释Component、自定义消息、事件系统EventSystem，其中可以通过自定义Component实现不同业务，不同服务器装载不同Component，使得不同服务器的开发变得异常简单。\r\n  #### 1. 启动服务器\r\n\r\n```csharp \r\nApplication application = Application.CreateApplication(\"Room01\", Application.Server, 9999);\r\napplication.AddComponent(new RoomComp());\r\napplication.Start();\r\n```\r\n[Wiki文档](https://github.com/codedawn/QM/wiki)\r\n\r\n[Demo项目](https://github.com/codedawn/QMDemo)\r\n\r\nqq交流群：966788071\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedawn%2Fqm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedawn%2Fqm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedawn%2Fqm/lists"}