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
TAssetThe type of asset to reference.
- Inherited Members
-
IAssetContainer.Asset
- Extension Methods
Properties
Exists
Checks to see if the asset exists.
bool Exists { get; }
Property Value
Guid
Guid of the asset, if known.
Guid Guid { get; }
Property Value
Id
Short ID of the asset, if known.
ushort Id { get; }
Property Value
Methods
GetAsset()
Get the actual asset from the stored info.
TAsset? GetAsset()
Returns
- TAsset
ToDisplayString()
Converts this asset link into a string for use in logging.
string ToDisplayString()