//
//  PacketConditionalIndexAttribute.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace NosSmooth.Packets.Attributes;
/// 
/// Attribute for marking packet properties that may appear only in specific conditions.
/// 
public class PacketConditionalIndexAttribute : PacketIndexAttribute
{
    /// 
    /// Initializes a new instance of the  class.
    /// You can use this attribute multiple times on one parameter.
    /// 
    /// The position in the packet.
    /// What parameter to check. (it has to precede this one).
    /// Whether to negate the match values (not equals).
    /// The values that mean this parameter is present.
    public PacketConditionalIndexAttribute(ushort index, string conditionParameter, bool negate = false, params object?[] matchValues)
        : base(index)
    {
    }
}