Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestFortressMapInfo

package l2p.gameserver.clientpackets;

import l2p.gameserver.instancemanager.FortressManager;
import l2p.gameserver.model.entity.residence.Fortress;
import l2p.gameserver.serverpackets.ExShowFortressMapInfo;

public class RequestFortressMapInfo extends L2GameClientPacket
{
  private int fort_id;

  @Override
  public void readImpl()
  {
    fort_id = readD();
  }

  @Override
  public void runImpl()
  {
    Fortress fortress = FortressManager.getInstance().getFortressByIndex(fort_id);
    if(fortress != null)
    {
      sendPacket(new ExShowFortressMapInfo(fortress));
    }
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestFortressMapInfo

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.