Park/Paths/PathFurniture.Prefab.cs
namespace HC3;

/// <summary>
/// Partial class for PathFurniture prefab handling -- like finding all prefabs that are path furniture
/// </summary>
public partial class PathFurniture : ISceneMetadata
{
	/// <summary>
	/// Get a list of uninstantiated PathFurniture prefab files
	/// </summary>
	public static IEnumerable<GameObject> AllPrefabs
	{
		get
		{
			return ResourceLibrary.GetAll<PrefabFile>()
				.Where( x => x.GetMetadata( "Type", "" ).Equals( "PathFurniture" ) )
				.ToList()
				.Select( x => GameObject.GetPrefab( x.ResourcePath ) );
		}
	}

	Dictionary<string, string> ISceneMetadata.GetMetadata()
	{
		return new()
		{
			{ "Type", "PathFurniture" }
		};
	}
}