- Хроники
- Grand Cursade
- Исходники
- Присутствуют
- Сборка
- L2jOrg 1.7.0 RC 1
package org.l2j.gameserver.network.serverpackets;
import io.github.joealisson.mmocore.WritableBuffer;
import io.github.joealisson.primitive.maps.IntLongMap;
import org.l2j.gameserver.instancemanager.InstanceManager;
import org.l2j.gameserver.model.actor.instance.Player;
import org.l2j.gameserver.network.GameClient;
import org.l2j.gameserver.network.ServerExPacketId;
import java.util.concurrent.TimeUnit;
public class ExInZoneWaiting extends ServerPacket {
private final int currentTemplateId;
private final IntLongMap instanceTimes;
private final boolean show;
public ExInZoneWaiting(Player player, boolean show) {
final var instance = InstanceManager.getInstance().getPlayerInstance(player, false);
currentTemplateId = ((instance != null) && (instance.getTemplateId() >= 0)) ? instance.getTemplateId() : -1;
instanceTimes = InstanceManager.getInstance().getAllInstanceTimes(player);
this.show = show;
}
public void writeImpl(GameClient client, WritableBuffer buffer) {
writeId(ServerExPacketId.EX_INZONE_WAITING_INFO, buffer );
buffer.writeByte(show); // Grand Crusade
buffer.writeInt(currentTemplateId);
buffer.writeInt(instanceTimes.size());
for (var entry : instanceTimes.entrySet()) {
final long instanceTime = TimeUnit.MILLISECONDS.toSeconds(entry.getValue() - System.currentTimeMillis());
buffer.writeInt(entry.getKey());
buffer.writeInt((int) instanceTime);
}
}
}
При компиляции выдает ошибку, далее скомпилировать сборку не получается. Извините за нубство но уже лет 5-6 нечем не занимался и почти все забыл. а с исходниками не очень то и практика.D:\L2jOrg-r1.7.0-RC sourse\L2jOrg-r1.7.0-RC\Gameserver\src\main\org.l2j.gameserver\org\l2j\gameserver\network\serverpackets\ExInZoneWaiting.java:36: error: cannot find symbol
private final IntLongMap instanceTimes;
^
symbol: class IntLongMap
location: class ExInZoneWaiting
> Task :Gameserver:compileJava
D:\L2jOrg-r1.7.0-RC sourse\L2jOrg-r1.7.0-RC\Gameserver\src\main\org.l2j.gameserver\org\l2j\gameserver\instancemanager\InstanceManager.java:22: error: package io.github.joealisson.primitive.maps does not exist
import io.github.joealisson.primitive.maps.IntLongMap;
^
D:\L2jOrg-r1.7.0-RC sourse\L2jOrg-r1.7.0-RC\Gameserver\src\main\org.l2j.gameserver\org\l2j\gameserver\instancemanager\InstanceManager.java:23: error: package io.github.joealisson.primitive.maps.impl does not exist
import io.github.joealisson.primitive.maps.impl.CHashIntLongMap;
^
D:\L2jOrg-r1.7.0-RC sourse\L2jOrg-r1.7.0-RC\Gameserver\src\main\org.l2j.gameserver\org\l2j\gameserver\network\serverpackets\ExInZoneWaiting.java:23: error: package io.github.joealisson.primitive.maps does not exist
import io.github.joealisson.primitive.maps.IntLongMap;
^
D:\L2jOrg-r1.7.0-RC sourse\L2jOrg-r1.7.0-RC\Gameserver\src\main\org.l2j.gameserver\org\l2j\gameserver\network\serverpackets\ExInZoneWaiting.java:36: error: cannot find symbol
private final IntLongMap instanceTimes;
^
symbol: class IntLongMap
location: class ExInZoneWaiting
Note: Some input files use preview language features.
Note: Recompile with -Xlintreview for details.
4 errors
> Task :Gameserver:compileJava FAILED