namespace Supercell.Laser.Logic.Command.Home { using Supercell.Laser.Logic.Home; using Supercell.Laser.Logic.Home.Items; using Supercell.Laser.Titan.DataStream; public class LogicClearShopTickersCommand : Command { public override void Decode(ByteStream stream) { base.Decode(stream); for (int i = 0; i < 4; i++) { stream.ReadVInt(); } } public override int Execute(HomeMode homeMode) { OfferBundle[] bundles = homeMode.Home.OfferBundles.ToArray(); foreach (OfferBundle bundle in bundles) { bundle.State = 2; } return 0; } public override int GetCommandType() { return 515; } } }