struct FxResourceMapData
{
	instanceeditable var key : CName;
	instanceeditable var resource : FxResource;
}

class ResourceLibraryComponent extends ScriptableComponent
{
	[ category = "Effects Resources" ]
	private const editable var resources : array< FxResourceMapData >;

	public const function GetResource( key : CName ) : FxResource
	{
		var i : Int32;
		var resource : FxResource;
		for( i = 0; i < resources.Size(); i += 1 )
		{
			if( resources[ i ].key == key )
			{
				resource = resources[ i ].resource;
				break;
			}
		}
		return resource;
	}

}

