Answers:
并非如此,我想您可能想自己编写所有网络内容,我将制作基于回合的内容,如下所示:
Server::ProcessNetwork(ClientID p_ID, EOPCODE p_In){
switch(p_In)
{
case OP_NOACTION: // No action would be like a heartbeat to tell the server its still there.
//user is still waiting
break;
case OP_ENDTURN:
EndTurn(p_ID);
break;
case OP_SOMEACTION:
//perform some action
break;
case OP_DISCONNECT:
// User is disconnecting
Disconect(p_ID);
break;
}
同样,只是我认为您可以使用的一个想法,希望对您有所帮助。