机器人
2017-05-12 18:36:38 0 举报
1
作者其他创作
大纲/内容
机器人配置RobotServer.cfg
定时检查是否需要机器人
AIAuthenReq()向游戏服发送认证请求
ConnectGameServer()连接游戏服StartGameServer自己开通监听端口
\tvirtual ITable* OnCreateTable();
virtual IPlayerNode* OnGameCreatePlayer
TableList
vitual OnGameNetMessage()网络消息处理(具体游戏逻辑)
定时器(update)
XX_RobotServer启动
\tvirtual void OnGameTimer
ROBOTSVR_GSVR_APPLY_ROBOT_REQ
CRobotControl
AUTHEN_RES_MSGSITDOWN_RES_MSGREADY_NOTICE_MSG.....OnGameNetMessage()
游戏服
创建一个机器人节点
机器人创建流程图
RobotLogic
初始化
GameNodeList
读取配置robotini.cfg
GameUserIDList
DEAL_CARDS_SERVER_MSGGROUP_CARDS_SEVER_MSGSEND_CARDS_NOTICE.....
初始化RobotLogicm_pRobotLogic = new XX_LogicServer(this);
XX_LogicServer
RobotServer
创建该机器人所在桌子节点
OnNetMessage()消息接收入口
认证成功,返回一个机器人节点,及所在桌子节点
0 条评论
下一页