iohao / ioGame

无锁异步化、事件驱动架构设计的 java netty 网络编程框架; 轻量级,无需依赖任何第三方中间件或数据库就能支持集群、分布式; 适用于网络游戏服务器、物联网、内部系统及各种需要长连接的场景; 通过 ioGame 你可以很容易的搭建出一个集群无中心节点、集群自动化、分布式的网络服务器;FXGL、Unity、UE、Cocos Creator、Godot、Netty、Protobuf、webSocket、tcp、socket;java Netty 游戏服务器框架; Java Netty Game Server.
http://game.iohao.com
GNU Affero General Public License v3.0
918 stars 205 forks source link

[Sdk, Example, GenerateCode] Godot, WebSocket, Protobuf, C#, Csharp, Netty, ioGame Sdk 连接示例 #399

Closed iohao closed 1 week ago

iohao commented 1 week ago

This example uses the ioGame C# SDK. The ioGame SDK provides a simple wrapper for interacting with Netty, WebSocket, Protobuf, C#, and ioGame game servers. Combined with code generation, it can reduce the workload for client developers.

该示例使用了 ioGame C# Sdk。ioGame SDK 提供了 Netty、WebScoket、Protobuf、C#、ioGame 游戏服务器交互的简单封装。配合代码生成,可为客户端开发者减少巨大的工作量。

Sdk、GodotExample: https://github.com/iohao/ioGameSdkCsharpExampleGodot

iohao commented 1 week ago

EnterSdkExample

home

iohao commented 1 week ago

java code

MyAction

c# code

action、广播、错误码 ...等交互接口文件由 ioGame 生成,代码生成可为客户端开发者减少巨大的工作量。 Actions, broadcasts, and error codes are generated by ioGame. Code generation can greatly reduce the workload for client developers.

code style: callback C#Hello1

code style: async await C#Hello2