Skip to content

API reference

Struct AssetRecord

Namespace: MicroEngine.Content
Assembly: MicroEngine.Content.dll
Guide: Assets

One asset a scope holds, as Loaded lists it.

C#
public readonly struct AssetRecord : IEquatable<AssetRecord>

Implements

IEquatable<AssetRecord>

Constructors

AssetRecord(string, string, long, double, bool)

One asset a scope holds, as Loaded lists it.

C#
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).

C#
public long Bytes { get; init; }

Property Value

long

DuringPlay

Whether it was loaded after the game’s first update, when a slow load shows as a hitch.

C#
public bool DuringPlay { get; init; }

Property Value

bool

Kind

Its loader’s kind.

C#
public string Kind { get; init; }

Property Value

string

LoadMilliseconds

Time spent loading it (reading, decoding and creating it).

C#
public double LoadMilliseconds { get; init; }

Property Value

double

Path

Its content path.

C#
public string Path { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out long, out double, out bool)

C#
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)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(AssetRecord)

C#
public bool Equals(AssetRecord other)

Parameters

other AssetRecord

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(AssetRecord, AssetRecord)

C#
public static bool operator ==(AssetRecord left, AssetRecord right)

Parameters

left AssetRecord

right AssetRecord

Returns

bool

operator !=(AssetRecord, AssetRecord)

C#
public static bool operator !=(AssetRecord left, AssetRecord right)

Parameters

left AssetRecord

right AssetRecord

Returns

bool