Skip to content

KernelAPI reference

Struct SectionHash

Namespace: MicroEngine.Kernel
Assembly: MicroEngine.Kernel.dll
Guide: Modules and the frame schedule

The hash of one named part of the state of a step (Sections).

C#
public readonly struct SectionHash : IEquatable<SectionHash>

Implements

IEquatable<SectionHash>

Constructors

SectionHash(string, ulong)

The hash of one named part of the state of a step (Sections).

C#
public SectionHash(string Name, ulong Hash)

Parameters

Name string

The section’s name (engine.time, scene[0]:PlayScene, game…).

Hash ulong

The 64-bit hash of the values added to it.

Properties

Hash

The 64-bit hash of the values added to it.

C#
public ulong Hash { get; init; }

Property Value

ulong

Name

The section’s name (engine.time, scene[0]:PlayScene, game…).

C#
public string Name { get; init; }

Property Value

string

Methods

Deconstruct(out string, out ulong)

C#
public void Deconstruct(out string Name, out ulong Hash)

Parameters

Name string

Hash ulong

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(SectionHash)

C#
public bool Equals(SectionHash other)

Parameters

other SectionHash

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(SectionHash, SectionHash)

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

Parameters

left SectionHash

right SectionHash

Returns

bool

operator !=(SectionHash, SectionHash)

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

Parameters

left SectionHash

right SectionHash

Returns

bool