Table of Contents

Class AssetExtensions

Namespace
PopcorningGuineaPig.Engine.Assets
Assembly
PopcorningGuineaPig.Engine.dll
public static class AssetExtensions
Inheritance
AssetExtensions
Inherited Members

Fields

ExcludedDirectories

public static readonly IReadOnlySet<string> ExcludedDirectories

Field Value

IReadOnlySet<string>

Map

public static readonly IReadOnlyDictionary<string, AssetCategory> Map

Field Value

IReadOnlyDictionary<string, AssetCategory>

Methods

IsPackedAsset(AssetCategory)

Returns true if assets of this category should be written to a .cecal archive. Code files are excluded — game code is compiled to DLLs and loaded via .NET assembly resolution, not the asset VFS.

public static bool IsPackedAsset(AssetCategory category)

Parameters

category AssetCategory

Returns

bool

TryGetCategory(string, out AssetCategory)

Attempts to classify a file by its extension (case-insensitive).

public static bool TryGetCategory(string path, out AssetCategory category)

Parameters

path string
category AssetCategory

Returns

bool