Giter Site home page Giter Site logo

mx's Introduction

基于ASIO + ProtocolBuffer的游戏服务器轻量级架构

1.基本架构

每个玩家(资源、怪物)模型分为程序和数据资源两项,其程序项为数据资源的管理项。类似传统代码中的XX类和XX_Manager类。

2.线程模型

精简版的魔兽世界网络和线程模型。

3.优先级队列

4.消息管理

5.协议管理

6.数据配置

7.Linux配置
# Boost
export BOOST_ROOT=/export/lazy/ServerService/ThirdParty/boost-1.60.0
export LD_LIBRARY_PATH="$BOOST_ROOT/stage/lib:$LD_LIBRARY_PATH"

# path
export PATH=/export/lazy/boost_1_60_0:/usr/lib/distcc/bin:/usr/local/bin:$PATH

# Proto buffer
export PROTOBUF_DIR=/export/lazy/ServerService/ThirdParty/protobuf-2.6.0/output

#关于引入BOOTST第三方库使用

./bootstrap.sh --with-libraries=date_time   
./bootstrap.sh --with-libraries=filesystem
./b2

ThirdParty
	-behavior  
	-boost_1_63_0  
	-hiredis  
	-protobuf-2.6.1

mx's People

Contributors

lazyplanet avatar

Stargazers

HuangTao avatar guowendev avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  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.