public void Write(GamePacketWriter writer) { writer.Write(Guid); writer.Write(Type, 6); EntityModel.Write(writer); writer.Write(Unknown60); writer.Write((byte)Stats.Count, 5); Stats.ForEach(o => o.Write(writer)); writer.Write(Unknown68); writer.Write((byte)Commands.Count, 5); foreach (KeyValuePair <EntityCommand, IEntityCommand> pair in Commands) { writer.Write(pair.Key, 5); pair.Value.Write(writer); } writer.Write((byte)Properties.Count); Properties.ForEach(o => o.Write(writer)); writer.Write((byte)VisibleItems.Count, 7); VisibleItems.ForEach(o => o.Write(writer)); writer.Write((short)Unknown88.Count, 9); Unknown88.ForEach(o => o.Write(writer)); writer.Write(Unknown8C); writer.Write(Faction1, 14); writer.Write(Faction2, 14); writer.Write(Unknown98); writer.Write(Unknown9C); UnknownA8.Write(writer); UnknownB0.Write(writer); UnknownC8.Write(writer); writer.Write(UnknownD4, 14); writer.Write(DisplayInfo, 17); writer.Write(OutfitInfo, 15); }
public void Write(GamePacketWriter writer) { writer.Write(Guid); writer.Write(Type, 6); EntityModel.Write(writer); writer.Write(CreateFlags); writer.Write((byte)Stats.Count, 5); Stats.ForEach(o => o.Write(writer)); writer.Write(Time); writer.Write((byte)Commands.Count, 5); foreach (KeyValuePair <EntityCommand, IEntityCommand> pair in Commands) { writer.Write(pair.Key, 5); pair.Value.Write(writer); } writer.Write((byte)Properties.Count); Properties.ForEach(o => o.Write(writer)); writer.Write((byte)VisibleItems.Count, 7); VisibleItems.ForEach(o => o.Write(writer)); writer.Write((short)SpellInitData.Count, 9); SpellInitData.ForEach(o => o.Write(writer)); writer.Write(CurrentSpellUniqueId); writer.Write(Faction1, 14); writer.Write(Faction2, 14); writer.Write(UnitTagOwner); writer.Write(GroupTagOwner); UnknownA8.Write(writer); UnknownB0.Write(writer); UnknownC8.Write(writer); writer.Write(MiniMapMarker, 14); writer.Write(DisplayInfo, 17); writer.Write(OutfitInfo, 15); }