using System;
namespace Syroot.Worms.Core
{
///
/// Represents the attribute to decorate methods in inheriting classes to provide methods
/// loading specific chunks according to their identifier.
///
[AttributeUsage(AttributeTargets.Method)]
internal class RiffChunkLoadAttribute : Attribute
{
// ---- CONSTRUCTORS & DESTRUCTOR ------------------------------------------------------------------------------
///
/// Initializes a new instance of the class with the given
/// .
///
/// The chunk identifier required to invoke this method for loading it.
internal RiffChunkLoadAttribute(string identifier)
{
Identifier = identifier;
}
// ---- PROPERTIES ---------------------------------------------------------------------------------------------
///
/// Gets the chunk identifier required to invoke this method for loading it.
///
internal string Identifier { get; }
}
}