mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Added weather
This commit is contained in:
@@ -553,6 +553,8 @@ public class SimulationService implements INetworkDispatch {
|
||||
}
|
||||
}
|
||||
|
||||
core.weatherService.sendWeather(object);
|
||||
|
||||
if (!object.hasSkill(ghost.getProfessionWheelPosition())) {
|
||||
object.showFlyText("cbt_spam", "skill_up", (float) 2.5, new RGB(154, 205, 50), 0);
|
||||
object.playEffectObject("clienteffect/skill_granted.cef", "");
|
||||
@@ -872,5 +874,38 @@ public class SimulationService implements INetworkDispatch {
|
||||
return height;
|
||||
|
||||
}
|
||||
|
||||
public void notifyPlanet(Planet planet, IoBuffer packet) {
|
||||
|
||||
ConcurrentHashMap<Integer, Client> clients = core.getActiveConnectionsMap();
|
||||
|
||||
for(Client client : clients.values()) {
|
||||
|
||||
if(client.getParent() == null)
|
||||
continue;
|
||||
|
||||
if(client.getParent().getPlanet() == null)
|
||||
continue;
|
||||
else if(client.getParent().getPlanet() == planet)
|
||||
client.getSession().write(packet);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void notifyAllClients(IoBuffer packet) {
|
||||
|
||||
ConcurrentHashMap<Integer, Client> clients = core.getActiveConnectionsMap();
|
||||
|
||||
for(Client client : clients.values()) {
|
||||
|
||||
if(client.getParent() == null)
|
||||
continue;
|
||||
|
||||
client.getSession().write(packet);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user