GithubHelp home page GithubHelp logo

ddhyxm / gameserver-csharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matchvs/gameserver-csharp

0.0 1.0 0.0 109 KB

Matchvs 提供的自定义游戏服务端逻辑框架

Makefile 0.07% C# 98.55% Batchfile 0.40% Shell 0.93% Dockerfile 0.05%

gameserver-csharp's Introduction

概述

通过接入基础联网SDK,客户端之间即可实现实时通信。如果游戏需要依赖服务端的逻辑判定和安全校验等功能,则可以使用 Matchvs 提供的 gameServer 框架。在 gameServer 里,开发者可以自定义游戏服务端逻辑。

特色

便捷开发

Matchvs 在 gameServer 框架里提供了与客户端 SDK 一致的流程。客户端的匹配、游戏过程在 gameServer 里可以实时接收,开发者可以自定义游戏开始机制以及游戏逻辑。gameServer 里支持给各个客户端广播消息或推送给指定客户端消息。

在开发过程中,开发者无需关注底层通信机制,也无需自己搭建复杂的服务器环境。Matchvs 框架提供了友好的本地调试方法,只需一行命令即可开启本地调试。开发者可以更专注于游戏逻辑本身。

简易部署

Matchvs 提供了云端一键部署功能:开发者只需在完成调试后将代码上传至指定仓库,然后在控制台点击启动服务即可。从代码上传至服务启动全流程不超过5分钟,极大地节省了开发时间和运维成本。

Matchvs 基于原生的 Kubernetes 提供了容器管理服务。每个 gameServer 都对应一个容器,可以进行弹性伸缩。gameServer 支持不中断业务持续更新:在更新代码后,重启服务即可。每个用户的gameServer资源相互隔离,不会互相影响。

更多使用详情请前往 Matchvs官网查看: http://www.matchvs.com/service?page=quickStartgssharp

框架介绍

框架目录结构如下所示:

gameServer
├── Makefile
├── README.md
├── gameServer
│   ├── Dockerfile
│   ├── MainServer.cs
│   ├── conf
│   ├── demo
│   ├── gameServer.csproj
│   ├── proto
│   ├── src
│   ├── streamcs
│   └── util
├── gameServer.Test
│   ├── CancelTask.cs
│   ├── Disposer.cs
│   └── gameServer.Test.csproj
├── gameServer_csharp.sln
└── gsmeta
  • Makefile 发布 gameServer 时,Matchvs 在服务器上执行make image生成 Docker 镜像。
  • README.md 说明文档。
  • gameServer
    • Dokcerfile 用于定制 Docker 镜像。Matchvs 使用 kubernetes 集群管理 gameServer,所以在 gameServer 发布上线时需要先打包成 Docker 镜像,然后才能顺利上线运行。框架提供了默认的 Dockerfile,开发者一般无需修改。
    • conf gameServer 配置目录。
    • demo 源文件目录,开发者应将自己的代码放在该目录下统一管理。
    • proto protobuf 协议文件。
    • src 基于 gRPC 的消息分发服务。
    • streamcs Matchvs 引擎服务连接管理。
    • util 工具类,提供 json 、protobuf 等编解码接口。
    • MainServer.cs 启动入口。用于 gameServer 初始化,例如读取 conf 目录下的配置文件,启动 gameServer 底层 gRPC 服务,以及开发者自定义模块的初始化。
  • gameServer.Test gameServer 测试用例。
  • gameServer_csharp.sln Visual Studio 解决方案文件。
  • gsmeta gameServer 元数据,记录当前 gameServer 框架的版本和语言等信息。

gameserver-csharp's People

Contributors

7byte avatar mushroom-1207 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.