KernelAPI reference
Struct AssetInfo
Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time
One loaded asset, as Loaded lists it.
public readonly struct AssetInfo : IEquatable<AssetInfo>Implements
Constructors
AssetInfo(string, string, long, double, bool)
One loaded asset, as Loaded lists it.
public AssetInfo(string Path, string Kind, long Bytes, double LoadMilliseconds, bool DuringPlay)Parameters
Path string
Its content path.
Kind string
“texture”, “atlas”, “font”, “folder atlas”, or the kind of another loader (AssetLoaderRegistry).
Bytes long
Memory it takes now, as its loader reports it: device memory for textures (font pages grow as glyphs are drawn), decoded samples for sounds, the file for music.
LoadMilliseconds double
Time spent reading, decoding and uploading it.
DuringPlay bool
Whether it was loaded after the game’s first update, when a slow load shows as a hitch.
Properties
Bytes
Memory it takes now, as its loader reports it: device memory for textures (font pages grow as glyphs are drawn), decoded samples for sounds, the file for music.
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
“texture”, “atlas”, “font”, “folder atlas”, or the kind of another loader (AssetLoaderRegistry).
public string Kind { get; init; }Property Value
LoadMilliseconds
Time spent reading, decoding and uploading 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(AssetInfo)
public bool Equals(AssetInfo other)Parameters
other AssetInfo
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(AssetInfo, AssetInfo)
public static bool operator ==(AssetInfo left, AssetInfo right)Parameters
left AssetInfo
right AssetInfo
Returns
operator !=(AssetInfo, AssetInfo)
public static bool operator !=(AssetInfo left, AssetInfo right)Parameters
left AssetInfo
right AssetInfo