IAssetΒΆ

interface IAsset

The interface for all assets.

When you implement a new asset type, you need to implement this interface.

readonly bool CompiledOnly

Gets a value indicating whether the asset only contains compiled information.

Value:Whether the asset only contains compiled information.
readonly string Name

Gets the name of the asset.

Value:The name of the asset.
readonly bool SourceOnly

Gets a value indicating whether the asset only contains source information.

Value:Whether the asset only contains source information.
Protogame.T Resolve<T>()

Attempt to resolve this asset to the specified type.

Type Parameters:
 
  • T – The target type of the asset.
Returns:

The current asset as a :T.