package com.aionemu.gameserver.spawnengine;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author Rolandas
*/
class WalkerFormationsCache {
private static Map<Integer, WorldWalkerFormations> formations = new ConcurrentHashMap<>();
private WalkerFormationsCache() {
}
protected static InstanceWalkerFormations getInstanceFormations(int worldId, int instanceId) {
WorldWalkerFormations wwf = formations.get(worldId);
if (wwf == null) {
wwf = new WorldWalkerFormations();
formations.put(worldId, wwf);
}
return wwf.getInstanceFormations(instanceId);
}
protected static void onInstanceDestroy(int worldId, int instanceId) {
getInstanceFormations(worldId, instanceId).onInstanceDestroy();
}
}
순위 | 닉네임 | 포인트 |
---|---|---|
1 |
![]() |
102,949 |
2 |
![]() |
63,733 |
3 |
![]() |
51,771 |
4 |
![]() |
36,923 |
5 |
![]() |
35,011 |
6 |
![]() |
29,470 |
7 |
![]() |
29,077 |
8 |
![]() |
28,199 |
9 |
![]() |
26,731 |
10 |
![]() |
17,020 |