Multiple World Support
#3
I think having a way to broadcast to either world or server is a good idea.

Code:
// TODO - Need to modify this or something, so it broadcasts to all worlds? And move this to cWorld?
void cServer::Broadcast( const cPacket & a_Packet, cClientHandle* a_Exclude /* = 0 */ )
{
    for( ClientList::iterator itr = m_pState->Clients.begin(); itr != m_pState->Clients.end(); ++itr)
    {
        if( *itr == a_Exclude || !(*itr)->IsLoggedIn() ) continue;
        (*itr)->Send( a_Packet );
    }
}


I think keeping this here and adding one for per world broadcasting is a good idea
Reply
Thanks given by:


Messages In This Thread
Multiple World Support - by rs2k - 10-28-2011, 11:14 AM
RE: Multiple World Support - by FakeTruth - 10-28-2011, 11:29 AM
RE: Multiple World Support - by rs2k - 11-03-2011, 10:56 AM



Users browsing this thread: 2 Guest(s)