Table of Contents

Interface IAssetLink<TAsset>

Namespace
Uncreated.Warfare.Configuration
Assembly
Uncreated.Warfare.dll

Caches a reference to an asset either by short ID or GUID.

[CannotApplyEqualityOperator]
[TypeConverter(typeof(AssetLinkTypeConverter))]
public interface IAssetLink<out TAsset> : IAssetContainer, IEquatable<IAssetLink<Asset>>, ICloneable, ITranslationArgument where TAsset : Asset

Type Parameters

TAsset

The type of asset to reference.

Inherited Members
IAssetContainer.Asset
Extension Methods

Properties

Checks to see if the asset exists.

bool Exists { get; }

Property Value

bool

Guid of the asset, if known.

Guid Guid { get; }

Property Value

Guid

Short ID of the asset, if known.

ushort Id { get; }

Property Value

ushort

Methods

Get the actual asset from the stored info.

TAsset? GetAsset()

Returns

TAsset

Converts this asset link into a string for use in logging.

string ToDisplayString()

Returns

string