Package com.ngt.jopenmetaverse.shared.protocol

Examples of com.ngt.jopenmetaverse.shared.protocol.Packet


        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void AvatarPickerReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            if (onAvatarPickerReply != null)
            {
                Packet packet = e.getPacket();
                AvatarPickerReplyPacket reply = (AvatarPickerReplyPacket)packet;
                Map<UUID, String> avatars = new HashMap<UUID, String>();

                for (AvatarPickerReplyPacket.DataBlock block : reply.Data)
                {
View Full Code Here


        /// <summary>Process an incoming packet and raise the appropriate events</summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void ViewerEffectHandler(Object sender, PacketReceivedEventArgs e)
        {
            Packet packet = e.getPacket();
            ViewerEffectPacket effect = (ViewerEffectPacket)packet;

            for (ViewerEffectPacket.EffectBlock block : effect.Effect)
            {
                EffectType type = EffectType.get(block.Type);
View Full Code Here

        {
            if (onAvatarPicksReply == null)
            {
                return;
            }
            Packet packet = e.getPacket();

            AvatarPicksReplyPacket p = (AvatarPicksReplyPacket)packet;
            Map<UUID, String> picks = new HashMap<UUID, String>();

            for (AvatarPicksReplyPacket.DataBlock b : p.Data)
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void PickInfoReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            if (onPickInfoReply != null)
            {
                Packet packet = e.getPacket();
                PickInfoReplyPacket p = (PickInfoReplyPacket)packet;
                ProfilePick ret = new ProfilePick();
                ret.CreatorID = p.Data.CreatorID;
                ret.Desc = Utils.bytesWithTrailingNullByteToString(p.Data.Desc);
                ret.Enabled = p.Data.Enabled;
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void AvatarClassifiedReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            if (onAvatarClassifiedReply != null)
            {
                Packet packet = e.getPacket();
                AvatarClassifiedReplyPacket p = (AvatarClassifiedReplyPacket)packet;
                Map<UUID, String> classifieds = new HashMap<UUID, String>();

                for (AvatarClassifiedReplyPacket.DataBlock b : p.Data)
                {
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void ClassifiedInfoReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            if (onAvatarClassifiedReply != null)
            {
                Packet packet = e.getPacket();
                ClassifiedInfoReplyPacket p = (ClassifiedInfoReplyPacket)packet;
                ClassifiedAd ret = new ClassifiedAd();
                ret.Desc = Utils.bytesWithTrailingNullByteToString(p.Data.Desc);
                ret.Name = Utils.bytesWithTrailingNullByteToString(p.Data.Name);
                ret.ParcelID = p.Data.ParcelID;
View Full Code Here

  /// <param name="e">The EventArgs Object containing the packet data</param>
  protected void SaveAssetIntoInventoryHandler(Object sender, PacketReceivedEventArgs e)
  {
    if (onSaveAssetToInventory != null)
    {
      Packet packet = e.getPacket();

      SaveAssetIntoInventoryPacket save = (SaveAssetIntoInventoryPacket)packet;
      onSaveAssetToInventory.raiseEvent(new SaveAssetToInventoryEventArgs(save.InventoryData.ItemID, save.InventoryData.NewAssetID));
    }
  }
View Full Code Here

  /// <summary>Process an incoming packet and raise the appropriate events</summary>
  /// <param name="sender">The sender</param>
  /// <param name="e">The EventArgs Object containing the packet data</param>
  protected void InventoryDescendentsHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException, InventoryException
  {
    Packet packet = e.getPacket();

    InventoryDescendentsPacket reply = (InventoryDescendentsPacket)packet;

    if (reply.AgentData.Descendents > 0)
    {
View Full Code Here

  /// </summary>
  /// <param name="sender">The sender</param>
  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void UpdateCreateInventoryItemHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException, InventoryException
  {
    Packet packet = e.getPacket();

    UpdateCreateInventoryItemPacket reply = (UpdateCreateInventoryItemPacket)packet;

    for(UpdateCreateInventoryItemPacket.InventoryDataBlock dataBlock : reply.InventoryData)
    {
View Full Code Here

  /// <summary>Process an incoming packet and raise the appropriate events</summary>
  /// <param name="sender">The sender</param>
  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void MoveInventoryItemHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    Packet packet = e.getPacket();

    MoveInventoryItemPacket move = (MoveInventoryItemPacket)packet;

    for (int i = 0; i < move.InventoryData.length; i++)
    {
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.Packet

Copyright © 2018 www.massapicom. 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.