Пример #1
0
        /// <summary>
        /// When overridden in the derived class, handles post creation-serialization processing. This method is invoked
        /// immediately after the <see cref="DynamicEntity"/>'s creation values have been serialized.
        /// </summary>
        /// <param name="writer">The <see cref="IValueWriter"/> that was used to serialize the values.</param>
        protected override void AfterSendCreated(IValueWriter writer)
        {
            base.AfterSendCreated(writer);

            var pw = writer as PacketWriter;

            if (pw != null && !Quests.IsEmpty())
            {
                ServerPacket.SetProvidedQuests(pw, MapEntityIndex, Quests.Select(x => x.QuestID).ToImmutable());
            }
        }