using System; using System.Collections.Generic; using System.Linq; using System.Text; using Chop.Game.Messages.IDs; namespace Chop.Game.Messages.Incoming.catalog { class GetGiftWrappingConfigurationEvent: IMessageHandler { public void Handle(GameClient client, RequestParser parser) { ResponseBuilder message = new ResponseBuilder(OutgoingMessages.GiftWrappingConfigurationEvent); message.AppendBoolean(true); // isWrappingEnabled message.AppendInt32(20); // wrappingPrice message.AppendInt32(0); // stuffTypesCount foreach (int stuffType in new int[0]) // stuffTypes { message.AppendInt32(stuffType); } message.AppendInt32(0); // boxTypesCount foreach (int stuffType in new int[0]) // boxTypes { message.AppendInt32(stuffType); } message.AppendInt32(0); // ribbonTypesCount foreach (int stuffType in new int[0]) // ribbonTypes { message.AppendInt32(stuffType); } client.SendMessage(message); } } }