game_server.game_listclient
简介
基于engine的游戏服务器快捷接入listserver的功能模块
组件接口
game_listclient.gs
样例
public void test()
{
cfg.init_by_map({
"server_id" : 1,
"disable_mongo" : true,
"server_info": {
"name": "pkg.game_server.game_listclient",
},
"listserver": {
"normal": {
"host": "localhost",
"port": 15701,
"port_recv_size": 131072
},
"via_http": {
"host": "http://localhost:4567"
},
"group": {
"enable_active": true,
"group_id": "1",
"group_data": {
"threshold": 0.8,
"order": 1,
"state": "alive",
"servers": []
}
}
}
});
engine.boot();
//
// 载入社交服功能模块
LOAD_PKG(game_listclient);
// 社交服模块安装
map para = {
"collect_func" : (string state) {
return { "here" : "1" + state };
}
};
game_listclient.setup(para);
game_listclient.start();
}