mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-09 08:52:51 +00:00
Change-Id: I0cca627373c68d94025647f802a7fa6b419e0aad
This commit is contained in:
@@ -6,14 +6,44 @@ import org.jboss.netty.channel.ChannelFuture;
|
||||
import com.l2jserver.game.net.codec.Lineage2Decrypter;
|
||||
import com.l2jserver.game.net.codec.Lineage2Encrypter;
|
||||
import com.l2jserver.game.net.packet.ServerPacket;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
|
||||
/**
|
||||
* This object connects the model (structure objects normally stored in the
|
||||
* database) to the controller (protocol stuff).
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public class Lineage2Connection {
|
||||
private final Channel channel;
|
||||
private L2Character character;
|
||||
|
||||
public Lineage2Connection(Channel channel) {
|
||||
this.channel = channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the character
|
||||
*/
|
||||
public boolean hasCharacter() {
|
||||
return character != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the character
|
||||
*/
|
||||
public L2Character getCharacter() {
|
||||
return character;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param character
|
||||
* the character to set
|
||||
*/
|
||||
public void setCharacter(L2Character character) {
|
||||
this.character = character;
|
||||
}
|
||||
|
||||
public Channel getChannel() {
|
||||
return channel;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.l2jserver.game.net.packet.server;
|
||||
import org.jboss.netty.buffer.ChannelBuffer;
|
||||
|
||||
import com.l2jserver.game.net.packet.AbstractServerPacket;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
|
||||
public class CharSelectionInfoPacket extends AbstractServerPacket {
|
||||
public static final int OPCODE = 0x09;
|
||||
@@ -10,10 +11,10 @@ public class CharSelectionInfoPacket extends AbstractServerPacket {
|
||||
private final String loginName;
|
||||
private final int sessionId;
|
||||
private final int activeId;
|
||||
private final Character[] characters;
|
||||
private final L2Character[] characters;
|
||||
|
||||
public CharSelectionInfoPacket(int opcode, String loginName, int sessionId,
|
||||
int activeId, Character... characters) {
|
||||
int activeId, L2Character... characters) {
|
||||
super(opcode);
|
||||
this.loginName = loginName;
|
||||
this.sessionId = sessionId;
|
||||
|
||||
Reference in New Issue
Block a user