GameFrameX.StartUp 1.2.0-beta8

This is a prerelease version of GameFrameX.StartUp.
There is a newer version of this package available.
See the version list below for details.
dotnet add package GameFrameX.StartUp --version 1.2.0-beta8
                    
NuGet\Install-Package GameFrameX.StartUp -Version 1.2.0-beta8
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GameFrameX.StartUp" Version="1.2.0-beta8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GameFrameX.StartUp" Version="1.2.0-beta8" />
                    
Directory.Packages.props
<PackageReference Include="GameFrameX.StartUp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GameFrameX.StartUp --version 1.2.0-beta8
                    
#r "nuget: GameFrameX.StartUp, 1.2.0-beta8"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=GameFrameX.StartUp&version=1.2.0-beta8&prerelease
                    
Install GameFrameX.StartUp as a Cake Addin
#tool nuget:?package=GameFrameX.StartUp&version=1.2.0-beta8&prerelease
                    
Install GameFrameX.StartUp as a Cake Tool

GameFrameX介绍:

GameFrameX 是基于GeekServer是一个开源的分区分服 的游戏服务器框架,采用C# .Netcore开发,开发效率高,性能强,跨平台,并内置不停服热更新机制。可以满足绝大部分游戏类型的需求,特别是和Unity3D协同开发更佳。
设计理念:大道至简,以简化繁

程序集说明

程序集名称 介绍 用途
GameFrameX.Launcher 程序启动入口 用于编写启动逻辑
GameFrameX.Hotfix 热更新逻辑和处理程序对象放置区(该部分为热更新内容) 用于编写逻辑的地方(主要工作区,目录和Apps目录结构一致)
GameFrameX.Apps 组件和实体对象放置区(该部分不能热更新) 用于编写基础逻辑和数据存储(功能的添加修改主要工作区,目录结构按照ServerType 划分和HotFix对应)
GameFrameX.Config 配置文件对象和配置文件放置区 用于编写配置文件的类和文件的映射(目前由LuBan自动生成)
GameFrameX.Proto 数据通讯协议对象放置区 用于编写通讯协议对象

GameFrameX功能:

1.跨平台

使用C# .Netcore开发(可以跨平台,可以跨平台,可以跨平台),.Netcore现在功能和性能都已经十分强大和稳健,不管是在windows还是linux上部署起来都很简便。

2.全面异步编程

全部采用异步编程(async/await),让逻辑代码变得整洁优雅,清晰易懂,让代码写起来行如流水。

3.TPL(Task Parallel Library) Actor模型

Actor模型构建于强大的TPL DataFlow之上,让Actor模型如虎添翼。(不了解Actor模型,可以搜一下相关资料,Akka,Orleans都是采用的Actor模型)了解更多

4.Actor入队透明化

内部会自动处理线程上下文, 编译期间会通过Source Generator自动生成入队代码, 开发人员无需关心多线程以及入队逻辑, 只需要像调用普通函数一样书写逻辑。了解更多

5.Actor死锁检测

Actor模型本身是存在死锁的情况,且不容易被发现。内部可检测环路死锁(即:A->B->C->A),并采用调用链重入机制消除环路死锁。了解更多

6.支持不停服更新

采用组件+状态的设计,状态只有属性,没有方法,组件只用方法,没有属性,并通过代理的方式全部放到热更dll中,运行时重新加载dll即可热更所有逻辑。了解更多

7.网络模块

网络模块采用SuperSocket的默认服务器Kestrel,支持协议多(Tcp,udp,Http123,websocket,signalr等),而且性能高了解更多

8.持久化透明

采用Nosql作为数据存储,状态的持久化全透明,框架会自动序列化/反序列,让开发人员更加专注于业务逻辑,无需操心数据库。 了解更多

9.Timer/Scheduler/Event

内置线程安全的Timer,Scheduler,Event系统,轻松应对游戏服务器常见的定时,任务计划,事件触发等业务需求。了解更多

10.定期释放不活跃内存数据

以功能系统级别的粒度,定期剔除内存中不活跃的玩家数据,尽最大可能减少服务器内存开销。

运行

  1. 安装.NetCore8.0
  2. 安装mongodb4.x
  3. 打开git clone本项目
  4. 用VisualStudio 或者Rider打开Server.sln 启动 GameFrameX.Launcher
  5. 打开Unity工程,打开Launcher 场景,运行查看日志

文档&例子&Demo

视频教程

参考文档

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.1-dev9 115 5 days ago
1.5.1-dev7 98 7 days ago
1.5.1-dev6 91 7 days ago
1.5.1-dev5 118 7 days ago
1.5.1-dev4 479 11 days ago
1.5.1-dev3 389 12 days ago
1.5.1-dev2 137 16 days ago
1.5.1-dev10 95 5 days ago
1.5.1-dev1 116 22 days ago
1.5.0-dev1 183 23 days ago
1.4.2 105 2 months ago
1.4.2-dev9 96 2 months ago
1.4.2-dev8 109 2 months ago
1.4.2-dev7 120 2 months ago
1.4.2-dev6 96 2 months ago
1.4.2-dev5 97 2 months ago
1.4.2-dev4 91 2 months ago
1.4.2-dev3 94 2 months ago
1.4.2-dev2 93 2 months ago
1.4.2-dev15 228 a month ago
1.4.2-dev14 192 a month ago
1.4.2-dev13 109 a month ago
1.4.2-dev12 90 a month ago
1.4.2-dev11 81 a month ago
1.4.2-dev10 86 a month ago
1.4.2-dev1 77 2 months ago
1.4.1 98 2 months ago
1.4.0 100 2 months ago
1.3.3 98 2 months ago
1.3.2 106 2 months ago
1.3.1 95 2 months ago
1.3.0-beta2 83 2 months ago
1.3.0-beta1 82 2 months ago
1.2.0-beta9 108 4 months ago
1.2.0-beta8 72 4 months ago
1.2.0-beta7 89 4 months ago
1.2.0-beta6 86 4 months ago
1.2.0-beta5 81 4 months ago
1.2.0-beta4 80 4 months ago
1.2.0-beta3 83 4 months ago
1.2.0-beta22 88 2 months ago
1.2.0-beta21 77 2 months ago
1.2.0-beta20 75 2 months ago
1.2.0-beta19 70 3 months ago
1.2.0-beta18 67 3 months ago
1.2.0-beta17 49 3 months ago
1.2.0-beta16 142 3 months ago
1.2.0-beta15 84 3 months ago
1.2.0-beta14 84 3 months ago
1.2.0-beta13 110 4 months ago
1.2.0-beta12 81 4 months ago
1.2.0-beta11 95 4 months ago
1.2.0-beta10 94 4 months ago
1.2.0-beta1 192 7 months ago
1.1.1-beta9 129 7 months ago
1.1.1-beta7 135 7 months ago
1.1.1-beta6 124 8 months ago
1.1.1-beta5 125 8 months ago
1.1.1-beta4 90 8 months ago
1.1.1-beta3 110 8 months ago
1.1.1-beta2 77 8 months ago
1.1.1-beta1 82 8 months ago
1.1.0 113 9 months ago
1.1.0-beta5 70 8 months ago
1.1.0-beta4 72 8 months ago
1.1.0-beta3 82 8 months ago
1.1.0-beta2 72 8 months ago
1.1.0-beta1 78 8 months ago
1.0.7-beta13 108 9 months ago
1.0.7-beta12 97 9 months ago
1.0.7-beta11 95 9 months ago
1.0.7-beta10 92 9 months ago
1.0.0 105 9 months ago