API reference
Struct AssetRecord
Namespace: MicroEngine.Content
Assembly: MicroEngine.Content.dll
Guide: Assets
One asset a scope holds, as Loaded lists it.
public readonly struct AssetRecord : IEquatable<AssetRecord>Implements
Constructors
AssetRecord(string, string, long, double, bool)
One asset a scope holds, as Loaded lists it.
public AssetRecord(string Path, string Kind, long Bytes, double LoadMilliseconds, bool DuringPlay)Parameters
Path string
Its content path.
Kind string
Its loader’s kind.
Bytes long
Memory its loader reports for it now (device memory for textures, samples for sounds).
LoadMilliseconds double
Time spent loading it (reading, decoding and creating it).
DuringPlay bool
Whether it was loaded after the game’s first update, when a slow load shows as a hitch.
Properties
Bytes
Memory its loader reports for it now (device memory for textures, samples for sounds).
public long Bytes { get; init; }Property Value
DuringPlay
Whether it was loaded after the game’s first update, when a slow load shows as a hitch.
public bool DuringPlay { get; init; }Property Value
Kind
Its loader’s kind.
public string Kind { get; init; }Property Value
LoadMilliseconds
Time spent loading it (reading, decoding and creating it).
public double LoadMilliseconds { get; init; }Property Value
Path
Its content path.
public string Path { get; init; }Property Value
Methods
Deconstruct(out string, out string, out long, out double, out bool)
public void Deconstruct(out string Path, out string Kind, out long Bytes, out double LoadMilliseconds, out bool DuringPlay)Parameters
Path string
Kind string
Bytes long
LoadMilliseconds double
DuringPlay bool
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(AssetRecord)
public bool Equals(AssetRecord other)Parameters
other AssetRecord
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(AssetRecord, AssetRecord)
public static bool operator ==(AssetRecord left, AssetRecord right)Parameters
left AssetRecord
right AssetRecord
Returns
operator !=(AssetRecord, AssetRecord)
public static bool operator !=(AssetRecord left, AssetRecord right)Parameters
left AssetRecord
right AssetRecord