• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Pi: An distributed game server framework based on [Socket4Net](https://github.co ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Pi

开源软件地址:

https://gitee.com/moonty/Pi

开源软件介绍:

#C# game server framework(based on socket4net)

####Features

  • Easy to use
  • Distributed
  • Automatic codes generation supported
  • Configurable

####Getting PiTo install Pi, run the following command in the Package Manager Console

PM > Install-Package Pi

####FrameworkPi consists of 3 parts:Node/ECS/Editor#####NodeYour server cluster may have multiple processes to work together, every process can perform as a server or an client or both.In pi, We call a server or an client as a Node. So, one process may have serveral Nodes, they are managed by NodesMgr.

Node can communicate with others(remote) by a set of Push/RequestAsyn interfaces. Node and NodesMgr has their own configuration(standard xml), for example:

  <!--single node-->  <node name="Chat server"    type="Chat"    guid="{12B3E06E-6CFF-4BC8-8DF9-67F03273C299}"    ip="127.0.0.1"    port="6001"    pwd="">  </node>    <!--multiple server nodes-->  <servers>    <node .../>    ...  </servers>    <!--multiple client nodes-->  <clients>    <node .../>    ...  </clients>

You can also config Redis nodes, for example:

  <redisnodes>    <node name="Redis client"    type="Redis"    guid="{D49A172A-00DD-4E8D-AB21-490F35A560A2}"    ip="127.0.0.1"    port="6379"    pwd="" />  </redisnodes>

#####ECSECS is an Entity/Component/System implementation.

Entity indicates what data does an object have. Component indicates what can an object do.
Entity may has serveral Component, and it's codes could automatic generated by Pi.Editor.exe. Component is freedom, you can write the game driver logic in these Components.

#####EditorIt's main goal is to make Entity definition visually, but it's just a commandline tool in current development.Editor generate Pi.Gen.dll finnally, which contains the game protocol, constants and entities.

######Protocol defineStandart google protobuf message.

######Entity defineJson file, for example:

{  "Comment": "实体定义",  "Name": "Ship",  "Properties": [    "One",    "Two",    "Three"  ],  "Components": [    "ModifierComponent",  ]}

####QuestionQQ group:Click to join
e-mail : [email protected]


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap