using System;

namespace Decal.Adapter;

/// <summary>
/// Defines a plugin view
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ViewAttribute : ViewBaseAttribute
{
	private string myResource;

	/// <summary>
	/// The resource to load
	/// </summary>
	public string Resource => myResource;

	/// <summary>
	/// Constructs a new view from the specified resource
	/// </summary>
	/// <param name="Resource">Embedded resource path</param>
	public ViewAttribute(string resource)
	{
		myResource = resource;
	}
}
