1 Star 0 Fork 33

nh41435/CM-Server

forked from 留天下/CM-Server 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.cpp 695 Bytes
一键复制 编辑 原始数据 按行查看 历史
留天下 提交于 2019-04-10 20:37 . 修改
#include <iostream>
#include"networkmanager.h"
#include"Json/reader.h"
#include"Json/value.h"
#include"logicfight.h"
#include"logicplayer.h"
#include"logictalk.h"
#include"logicteam.h"
#include"friendlogic.h"
#include<string>
using namespace std;
void initLogicModel()
{
LogicTeam::getInstance();
LogicFight::getInstance();
LogicPlayer::getInstance();
LogicTalk::getInstance();
FriendLogic::getInstance();
}
int main()
{
initLogicModel();
NetWorkManager::getInstance()->startServer();
string cmd;
while(true)
{
cin>>cmd;
if(cmd=="exit")
{
cout<<"Exit Server"<<endl;
break;
}
}
return 0;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/nh41435/CM-Server.git
git@gitee.com:nh41435/CM-Server.git
nh41435
CM-Server
CM-Server
master

搜索帮助