namespace Supercell.Laser.Logic.Command.Home { using Supercell.Laser.Logic.Home; using Supercell.Laser.Logic.Home.Items; using Supercell.Laser.Titan.DataStream; public class LogicDeleteNotificationCommand : Command { public int NotificationIndex; public override void Decode(ByteStream stream) { base.Decode(stream); NotificationIndex = stream.ReadVInt(); } public override int Execute(HomeMode homeMode) { if (NotificationIndex < 0) return 0; NotificationFactory factory = homeMode.Home.NotificationFactory; if (factory == null) return 0; factory.NotificationList.RemoveAll(n => n.Index == NotificationIndex); return 0; } public override int GetCommandType() { return 529; } } }