public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadCharArray(128);
     Field2 = buffer.ReadCharArray(49);
     Field3 = buffer.ReadInt(4) + (2);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     ActorSNO = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(5);
     Field3 = buffer.ReadInt(2) + (-1);
     if (buffer.ReadBool())
     {
         WorldLocation = new WorldLocationMessageData();
         WorldLocation.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         InventoryLocation = new InventoryLocationMessageData();
         InventoryLocation.Parse(buffer);
     }
     GBHandle = new GBHandle();
     GBHandle.Parse(buffer);
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadInt(32);
     Field9 = buffer.ReadInt(4) + (-1);
     Field10 = (byte)buffer.ReadInt(8);
     if (buffer.ReadBool())
     {
         Field11 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field12 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field13 = buffer.ReadInt(32);
     }
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     ActorSNOId = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(6);
     Field3 = buffer.ReadInt(2) + (-1);
     if (buffer.ReadBool())
     {
         WorldLocation = new WorldLocationMessageData();
         WorldLocation.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         InventoryLocation = new InventoryLocationMessageData();
         InventoryLocation.Parse(buffer);
     }
     GBHandle = new GBHandle();
     GBHandle.Parse(buffer);
     Field7 = buffer.ReadInt(32);
     NameSNOId = buffer.ReadInt(32);
     Quality = buffer.ReadInt(4) + (-1);
     Field10 = (byte)buffer.ReadInt(8);
     if (buffer.ReadBool())
     {
         Field11 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         MarkerSetSNO = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         MarkerSetIndex = buffer.ReadInt(32);
     }
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Field1 = new Vector3D();
         Field1.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Field2 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field3 = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Field4 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(24);
     }
     if (buffer.ReadBool())
     {
         Field6 = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
Exemple #5
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadBool();
     snoAffixStringList = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
 }
Exemple #6
0
 public void Parse(GameBitBuffer buffer)
 {
     Type = (NPCInteractionType) buffer.ReadInt(4);
     ConversationSNO = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     State = (NPCInteractionState) buffer.ReadInt(2);
 }
Exemple #7
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(3);
     Field1 = buffer.ReadInt(5);
     PetId = buffer.ReadUInt(32);
     Field3 = buffer.ReadInt(5) + (-1);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     tNPCInteraction = new NPCInteraction[buffer.ReadInt(5)];
     for (int i = 0; i < tNPCInteraction.Length; i++) { tNPCInteraction[i] = new NPCInteraction(); tNPCInteraction[i].Parse(buffer); }
     Type = (NPCInteractOptionsType) buffer.ReadInt(2);
 }
Exemple #9
0
 public void Parse(GameBitBuffer buffer)
 {
     HotBarButtons = new HotbarButtonData[6];
     for (int i = 0; i < HotBarButtons.Length; i++)
     {
         HotBarButtons[i] = new HotbarButtonData();
         HotBarButtons[i].Parse(buffer);
     }
     HotBarButton = new HotbarButtonData();
     HotBarButton.Parse(buffer);
     PlaytimeTotal = buffer.ReadInt(32);
     WaypointFlags = buffer.ReadInt(32);
     Field4 = new HirelingSavedData();
     Field4.Parse(buffer);
     Field5 = buffer.ReadInt(32);
     LearnedLore = new LearnedLore();
     LearnedLore.Parse(buffer);
     ActiveSkills = new ActiveSkillSavedData[6];
     for (int i = 0; i < ActiveSkills.Length; i++)
     {
         ActiveSkills[i] = new ActiveSkillSavedData();
         ActiveSkills[i].Parse(buffer);
     }
     snoTraits = new int /* sno */[3];
     for (int i = 0; i < snoTraits.Length; i++) snoTraits[i] = buffer.ReadInt(32);
     SavePointData = new SavePointData();
     SavePointData.Parse(buffer);
 }
Exemple #10
0
 public void Parse(GameBitBuffer buffer)
 {
     OwnerID = buffer.ReadUInt(32);
     EquipmentSlot = buffer.ReadInt(5) + (-1);
     Column = buffer.ReadInt(32);
     Row = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     atKeyVals = new NetAttributeKeyValue[buffer.ReadInt(4)];
     for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i] = new NetAttributeKeyValue(); atKeyVals[i].Parse(buffer); }
     for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i].ParseValue(buffer); }
 }
Exemple #12
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = (byte) buffer.ReadInt(8);
     Field1 = (byte) buffer.ReadInt(8);
     Field2 = (byte) buffer.ReadInt(8);
     Field3 = (byte) buffer.ReadInt(8);
 }
 public void Parse(GameBitBuffer buffer)
 {
     Duration = buffer.ReadInt(32);
     AnimationSNO = buffer.ReadInt(32);
     PermutationIndex = buffer.ReadInt(32);
     Speed = buffer.ReadFloat32();
 }
 public override void Parse(GameBitBuffer buffer)
 {
     HirelingIndex = buffer.ReadInt(2);
     Field1 = buffer.ReadBool();
     Field2 = buffer.ReadInt(32);
     Level = buffer.ReadInt(7);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new InventoryLocationMessageData();
     Field1.Parse(buffer);
     Field2 = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Position = new Vector3D();
         Position.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Angle = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         TurnImmediately = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Speed = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(25);
     }
     if (buffer.ReadBool())
     {
         AnimationTag = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadFloat32();
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(2);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadBool();
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Position = new Vector3D();
         Position.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Angle = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field3 = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Field4 = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(24);
     }
     if (buffer.ReadBool())
     {
         Field6 = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
Exemple #20
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     Field1 = buffer.ReadInt(2);
     aAffixGBIDs = new int /* gbid */[buffer.ReadInt(6)];
     for (int i = 0; i < aAffixGBIDs.Length; i++) aAffixGBIDs[i] = buffer.ReadInt(32);
 }
Exemple #21
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(5);
     Field2 = buffer.ReadInt(4);
     Field3 = buffer.ReadInt(5) + (-1);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new WorldPlace();
     Field0.Parse(buffer);
     Field1 = buffer.ReadInt(2);
     Field2 = buffer.ReadInt(32);
 }
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(5) + (-1);
     Field2 = new IVector2D();
     Field2.Parse(buffer);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     tNPCInteraction = new NPCInteraction[buffer.ReadInt(5)];
     for (int i = 0; i < tNPCInteraction.Length; i++) { tNPCInteraction[i] = new NPCInteraction(); tNPCInteraction[i].Parse(buffer); }
     Field2 = buffer.ReadInt(2);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new Vector3D();
     Field0.Parse(buffer);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
 }
Exemple #26
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadCharArray(512);
     Field1 = buffer.ReadInt(4) + (-1);
     Field2 = new WorldPlace();
     Field2.Parse(buffer);
     Field3 = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new int /* gbid */[2];
     for (int i = 0; i < Field1.Length; i++) Field1[i] = buffer.ReadInt(32);
     Field2 = new int /* gbid */[8];
     for (int i = 0; i < Field2.Length; i++) Field2[i] = buffer.ReadInt(32);
 }
Exemple #28
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadInt(32);
     SNOParticleEffect = buffer.ReadInt(32);
     SNOAppearance = buffer.ReadInt(32);
     Field3 = new Vector3D();
     Field3.Parse(buffer);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     RopeSNO = buffer.ReadInt(32);
     StartSourceActorId = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(5);
     EndPosition = new WorldPlace();
     EndPosition.Parse(buffer);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     Field1 = buffer.ReadInt(4);
     Field2 = buffer.ReadFloat32();
     tAnim = new PlayAnimationMessageSpec[buffer.ReadInt(2)];
     for (int i = 0; i < tAnim.Length; i++) { tAnim[i] = new PlayAnimationMessageSpec(); tAnim[i].Parse(buffer); }
 }
        public Vector2D InventoryLocation; // Row, column

        public void Parse(GameBitBuffer buffer)
        {
            OwnerID           = buffer.ReadUInt(32);
            EquipmentSlot     = buffer.ReadInt(5) + (-1);
            InventoryLocation = new Vector2D();
            InventoryLocation.Parse(buffer);
        }
 public override void Parse(GameBitBuffer buffer)
 {
     ItemId            = buffer.ReadUInt(32);
     InventoryLocation = new InventoryLocationMessageData();
     InventoryLocation.Parse(buffer);
     Field2 = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID   = buffer.ReadUInt(32);
     HitDealer = buffer.ReadUInt(32);
     Field2    = buffer.ReadInt(3) + (-1);
     Field3    = buffer.ReadBool();
 }
Exemple #34
0
 /// <summary>
 /// Parses SceneCachedValues from given GameBitBuffer.
 /// </summary>
 /// <param name="buffer">The GameBitBuffer to parse from.</param>
 public void Parse(GameBitBuffer buffer)
 {
     Unknown1 = buffer.ReadInt(32);
     Unknown2 = buffer.ReadInt(32);
     Unknown3 = buffer.ReadInt(32);
     AABB1    = new AABB();
     AABB1.Parse(buffer);
     AABB2 = new AABB();
     AABB2.Parse(buffer);
     Unknown4 = new int[4];
     for (int i = 0; i < Unknown4.Length; i++)
     {
         Unknown4[i] = buffer.ReadInt(32);
     }
     Unknown5 = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new NetAttributeKeyValue();
     Field1.Parse(buffer);
     Field1.ParseValue(buffer);
 }
Exemple #36
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = new AABB();
     Field3.Parse(buffer);
     Field4 = new AABB();
     Field4.Parse(buffer);
     Field5 = new int[4];
     for (int i = 0; i < Field5.Length; i++)
     {
         Field5[i] = buffer.ReadInt(32);
     }
     Field6 = buffer.ReadInt(32);
 }
Exemple #37
0
 public override void Parse(GameBitBuffer buffer)
 {
     FromID = buffer.ReadInt(32);
     Amount = buffer.ReadInt64(64);
     InvLoc = new InvLoc();
     InvLoc.Parse(buffer);
 }
Exemple #38
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = new Vector3D();
     Field3.Parse(buffer);
     Field4 = new Vector3D();
     Field4.Parse(buffer);
     Field5 = buffer.ReadFloat32();
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadInt(32);
     Field8 = new RGBAColor();
     Field8.Parse(buffer);
     Field9 = buffer.ReadCharArray(128);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt64(64);
     Field2 = new InvLoc();
     Field2.Parse(buffer);
 }
Exemple #40
0
 public override void Parse(GameBitBuffer buffer)
 {
     EnterPosition = new Vector3D();
     EnterPosition.Parse(buffer);
     WorldID  = buffer.ReadUInt(32);
     WorldSNO = buffer.ReadInt(32);
 }
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadFloat32();
     Field1 = new PRTransform();
     Field1.Parse(buffer);
     Field2 = buffer.ReadInt(32);
 }
Exemple #42
0
 public override void Parse(GameBitBuffer buffer)
 {
     SNOPowers = new int[3];
     for (int i = 0; i < SNOPowers.Length; i++)
     {
         SNOPowers[i] = buffer.ReadInt(32);
     }
 }
Exemple #43
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new GameId();
     Field0.Parse(buffer);
     Field1 = new EntityId();
     Field1.Parse(buffer);
     Field2 = buffer.ReadInt(5) + (-1);
 }
Exemple #44
0
 public override void Parse(GameBitBuffer buffer)
 {
     UsedItem   = buffer.ReadUInt(32);
     Field1     = buffer.ReadInt(3) + (-1);
     UsedOnItem = buffer.ReadUInt(32);
     Location   = new WorldPlace();
     Location.Parse(buffer);
 }
Exemple #45
0
        public void Parse(GameBitBuffer buffer)
        {
            Index = buffer.ReadInt(10) & 0xFFF;

            //hijo de puta, como crasheas eh..............
            Attribute = Dirac.GameServer.Core.GameAttributeStaticList.AttributesByID[Index];
            //set attribute by index
        }
Exemple #46
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new Vector3D();
     Field1.Parse(buffer);
     Field2 = new Vector3D();
     Field2.Parse(buffer);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     WorldID   = buffer.ReadUInt(32);
     SceneSpec = new SceneSpecification();
     SceneSpec.Parse(buffer);
     ChunkID   = buffer.ReadUInt(32);
     SceneSNO  = buffer.ReadInt(32);
     Transform = new PRTransform();
     Transform.Parse(buffer);
     ParentChunkID   = buffer.ReadUInt(32);
     SceneGroupSNO   = buffer.ReadInt(32);
     arAppliedLabels = new int /* gbid */[buffer.ReadInt(9)];
     for (int i = 0; i < arAppliedLabels.Length; i++)
     {
         arAppliedLabels[i] = buffer.ReadInt(32);
     }
 }
Exemple #48
0
 public override void Parse(GameBitBuffer buffer)
 {
     PowerSNO = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Field1 = new AnimPreplayData();
         Field1.Parse(buffer);
     }
 }
Exemple #49
0
 public override void Parse(GameBitBuffer buffer)
 {
     ChunkID   = buffer.ReadUInt(32);
     SceneSNO  = buffer.ReadInt(32);
     Transform = new PRTransform();
     Transform.Parse(buffer);
     WorldID           = buffer.ReadUInt(32);
     MiniMapVisibility = buffer.ReadBool();;
 }
Exemple #50
0
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(2);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(7);
     Field3 = buffer.ReadInt(32);
     Field4 = buffer.ReadBool();
     Field5 = buffer.ReadInt(32);
     Field6 = buffer.ReadInt(32);
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadInt(32);
 }
Exemple #51
0
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID   = buffer.ReadInt(32);
     Equipment = new VisualItem[9];
     for (int i = 0; i < Equipment.Length; i++)
     {
         Equipment[i] = new VisualItem();
         Equipment[i].Parse(buffer);
     }
 }
Exemple #52
0
 public void Parse(GameBitBuffer buffer)
 {
     HirelingIndex = buffer.ReadInt(2);
     Field1        = buffer.ReadInt(32);
     Level         = buffer.ReadInt(7);
     Field3        = buffer.ReadInt(32);
     Field4        = buffer.ReadBool();
     Skill1SNOId   = buffer.ReadInt(32);
     Skill2SNOId   = buffer.ReadInt(32);
     Skill3SNOId   = buffer.ReadInt(32);
     Skill4SNOId   = buffer.ReadInt(32);
 }
Exemple #53
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0           = buffer.ReadInt(3);
     Field1           = buffer.ReadInt(7);
     Field2           = buffer.ReadInt(4) + (-1);
     Field3           = buffer.ReadInt(4) + (-1);
     snoKillerMonster = buffer.ReadInt(32);
     snoKillerActor   = buffer.ReadInt(32);
     Field6           = buffer.ReadInt(5) + (-1);
     Field7           = new int /* gbid */[2];
     for (int i = 0; i < Field7.Length; i++)
     {
         Field7[i] = buffer.ReadInt(32);
     }
     snoPowerDmgSource = buffer.ReadInt(32);
 }
Exemple #54
0
 public void Parse(GameBitBuffer buffer)
 {
     Scale       = buffer.ReadFloat32();
     Position    = new Vector3();
     Position    = Position.Parse(buffer);
     lookAt      = new Vector3();
     lookAt      = lookAt.Parse(buffer);
     Orientation = new Quaternion();
     Orientation = Orientation.Parse(buffer);
     WorldID     = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = buffer.ReadInt(32);
     Field5 = buffer.ReadInt(32);
     Field6 = buffer.ReadInt(32);
 }
Exemple #56
0
 public override void Parse(GameBitBuffer buffer)
 {
     EffectId      = buffer.ReadInt(32);
     Field1        = buffer.ReadInt(32);
     EffectSNO     = buffer.ReadInt(32);
     SourceActorId = buffer.ReadInt(32);
     TargetActorId = buffer.ReadInt(32);
     Field5        = buffer.ReadInt(32);
     Field6        = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     Field1  = new uint[9];
     for (int i = 0; i < Field1.Length; i++)
     {
         Field1[i] = buffer.ReadUInt(32);
     }
     Params = new PlayLineParams();
     Params.Parse(buffer);
     Duration = buffer.ReadInt(32);
 }
Exemple #58
0
        public void Parse(ConnectionDataEventArgs e)
        {
            //Console.WriteLine(e.Data.Dump());

            _incomingBuffer.AppendData(e.Data.ToArray());

            while (_incomingBuffer.IsPacketAvailable())
            {
                int end = _incomingBuffer.Position;
                end += _incomingBuffer.ReadInt(32) * 8;

                while ((end - _incomingBuffer.Position) >= 9)
                {
                    var message = _incomingBuffer.ParseMessage();
                    if (message == null)
                    {
                        continue;
                    }
                    try
                    {
                        Logger.LogIncomingPacket(message); // change ConsoleTarget's level to Level.Dump in program.cs if u want to see messages on console.

                        if (message.Consumer != Consumers.None)
                        {
                            if (message.Consumer == Consumers.ClientManager)
                            {
                                ClientManager.Instance.Consume(this, message);                                              // Client should be greeted by ClientManager and sent initial game-setup messages.
                            }
                            else
                            {
                                this.Game.Route(this, message);
                            }
                        }

                        else if (message is ISelfHandler)
                        {
                            (message as ISelfHandler).Handle(this);                               // if message is able to handle itself, let it do so.
                        }
                        else
                        {
                            Logger.Warn("{0} - ID:{1} has no consumer or self-handler.", message.GetType(), message.Id);
                        }
                    }
                    catch (NotImplementedException)
                    {
                        Logger.Warn("Unhandled game message: 0x{0:X4} {1}", message.Id, message.GetType().Name);
                    }
                }

                _incomingBuffer.Position = end;
            }
            _incomingBuffer.ConsumeData();
        }
 public override void Parse(GameBitBuffer buffer)
 {
     ActorID   = buffer.ReadUInt(32);
     atKeyVals = new NetAttributeKeyValue[buffer.ReadInt(4)];
     for (int i = 0; i < atKeyVals.Length; i++)
     {
         atKeyVals[i] = new NetAttributeKeyValue(); atKeyVals[i].Parse(buffer);
     }
     for (int i = 0; i < atKeyVals.Length; i++)
     {
         atKeyVals[i].ParseValue(buffer);
     }
 }
Exemple #60
0
 public override void Parse(GameBitBuffer buffer)
 {
     WorldID  = buffer.ReadUInt(32);
     WorldSNO = buffer.ReadInt(32);
     Field2   = buffer.ReadInt(32);
     Field3   = buffer.ReadInt(32);
     Field4   = buffer.ReadInt(32);
     Field5   = buffer.ReadInt(32);
     Field6   = buffer.ReadInt(32);
     Field7   = buffer.ReadInt(32);
 }