private bool SpawnMobs( RequestCache requestCache, out string result_code) { // Spawn mobs in anticipation of our arrival. // We do this before the portal event so that the client filters out the mob spawn // events because they aren't in the same room yet. Once they arrive in the room, // they'll request the room data and get the newly spawned mobs. // Other clients who happen to be in the room already will see new mobs spawn // and then the other player arrive. SpawnMobsRequestProcessor spawnMobsRequestProcessor = new SpawnMobsRequestProcessor(m_world, m_opposing_room); return(spawnMobsRequestProcessor.ProcessRequest(requestCache, out result_code)); }
private bool SpawnMobs( RequestCache requestCache, out string result_code) { // Spawn mobs in anticipation of our arrival. // We do this before the portal event so that the client filters out the mob spawn // events because they aren't in the same room yet. Once they arrive in the room, // they'll request the room data and get the newly spawned mobs. // Other clients who happen to be in the room already will see new mobs spawn // and then the other player arrive. SpawnMobsRequestProcessor spawnMobsRequestProcessor = new SpawnMobsRequestProcessor(m_world, m_opposing_room); return spawnMobsRequestProcessor.ProcessRequest(requestCache, out result_code); }